android_download_manager

Creator: coderz1093

Last updated:

0 purchases

android_download_manager Image
android_download_manager Images

Languages

Categories

Add to Cart

Description:

android download manager

android_download_manager #
This package lets you download files via Android Native Download Manager.

#
Getting Started #
This package lets you download files via Android Native Download Manager.
This package is made available only for android.
Permissions #

WRITE_EXTERNAL_STORAGE
READ_EXTERNAL_STORAGE

How to download? #
AndroidDownloadManager.enqueue(
downloadUrl: "https://raw.githubusercontent.com/ableco/test-files/master/images/test-image-png_4032x3024.png",
downloadPath: Directory.systemTemp.path,
fileName: "test.png",
);
copied to clipboard




Type
Description




downloadUrl
String
The url of the file to be downloaded


downloadPath
String
The location where the downloaded file to be saved


fileName
String
Name of the downloaded file with extension


description (optional)
String
Description for the download manager


headers (optional)
Map<String, String>
Headers for the download url


allowScanningByMediaScanner (optional)
bool
Whether allow download manager to scan by MediaScanner


notificationVisibility (optional)
NotificationVisibility
VISIBILITY_VISIBLE VISIBILITY_VISIBLE_NOTIFY_COMPLETEDNETWORK_MOBILENETWORK_WIFIVISIBILITY_HIDDENVISIBILITY_VISIBLE_NOTIFY_ONLY_COMPLETION



Listen to completed downloads #
AndroidDownloadManager.listen((data) {
String id = data["id"];
log("Download complete");
});
copied to clipboard
Here we receive IDs of the completed downloads.

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.