Hello guys. i use downloader for my apk. mys code is:
var req: DownloadRequest = {
uri: 'https://xyz.com',
title: 'TryMe' ,
description: 'TryMe',
mimeType: "video/mp4",
visibleInDownloadsUi: true,
notificationVisibility: NotificationVisibility.VisibleNotifyCompleted,
destinationInExternalFilesDir: {
dirType: 'Downloads',
subPath: 'MyFile.apk',
}
};
this.dwn.download(req)
.then((location: string) => {
alert(location)
}).catch((err) => {
alert("DWN ser Err 42: " + JSON.stringify(err))
return "";
})
i want to stop another functions when file is downloading. The program and functions are continue when downloading is finish. how can i do it?
1 post - 1 participant