android-components / mozilla.components.feature.downloads.manager / DownloadManager


interface DownloadManager (source)


Name Summary
onDownloadStopped abstract var onDownloadStopped: onDownloadStopped
permissions abstract val permissions: Array<String>


Name Summary
download abstract fun download(download: DownloadState, cookie: String = ""): String?
Schedules a download through the DownloadManager.
tryAgain abstract fun tryAgain(downloadId: String): Unit
Schedules another attempt at downloading the given download.
unregisterListeners open fun unregisterListeners(): Unit

Extension Functions

Name Summary
loadResourceAsString fun Any.loadResourceAsString(path: String): String
Loads a file from the resources folder and returns its content as a string object.
validatePermissionGranted fun DownloadManager.validatePermissionGranted(context: <ERROR CLASS>): Unit


Name Summary
AndroidDownloadManager class AndroidDownloadManager : DownloadManager
Handles the interactions with the AndroidDownloadManager.
FetchDownloadManager class FetchDownloadManager<T : AbstractFetchDownloadService> : DownloadManager
Handles the interactions with AbstractFetchDownloadService.