![]() ![]() By default it will be downloaded to root of downloadFolder which would be user download's folder. This folder is relative to downloadFolder location set in the register function. Set a path to save all the bulk downloaded files. Url returns the url of the downloaded fileįilePath location of where the file was saved DownloadManager.bulkDownload(options, callback(error, finished, failed)) options urlsĪrray of url strings of the files to be downloaded path If the download was successful the callback's error will be null, otherwise it will contain the error message DownloadManager.download(options, callback(error, )Ĭallback to be called when the download has reached a "done" state, which could mean two things either it was successful, or it failed. If the file size on the disk is the same as the server it will not download and return a successful callback. E.G Downloading a 200MB file and only 100MB downloaded (app closed/crashed) it will resume the download from where it left off automatically. This is good for downloading large files. If the file already exists in the location it will check the file's size against the size on the server, if it is lower than the server it will attempt to resume downloading the file. Explained below in Download function.īy default, this "root" folder will be user's OS downloads folder It will also be the parent folder for individual folders of each download. Set a folder where all downloadItems will be downloaded to. } ) API DownloadManager.register() options downloadFolder
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |