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

DownloadManager

interface DownloadManager (source)

Properties

Name Summary
onDownloadCompleted abstract var onDownloadCompleted: OnDownloadCompleted
permissions abstract val permissions: Array<String>

Functions

Name Summary
download abstract fun download(download: DownloadState, cookie: String = ""): Long?
Schedules a download through the DownloadManager.
unregisterListeners open fun unregisterListeners(): Unit

Extension Functions

Name Summary
validatePermissionGranted fun DownloadManager.validatePermissionGranted(context: <ERROR CLASS>): Unit

Inheritors

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