android-components / mozilla.components.feature.downloads

Package mozilla.components.feature.downloads

Types

DownloadDialogFragment

abstract class DownloadDialogFragment : DialogFragment

This is a general representation of a dialog meant to be used in collaboration with DownloadsFeature to show a dialog before a download is triggered. If SimpleDownloadDialogFragment is not flexible enough for your use case you should inherit for this class. Be mindful to call onStartDownload when you want to start the download.

DownloadManager

class DownloadManager

Handles the interactions with the AndroidDownloadManager.

DownloadsFeature

class DownloadsFeature : SelectionAwareSessionObserver

Feature implementation for proving download functionality for the selected session. It will subscribe to the selected session and will listening for downloads.

SimpleDownloadDialogFragment

class SimpleDownloadDialogFragment : DownloadDialogFragment

A confirmation dialog to be called before a download is triggered. Meant to be used in collaboration with DownloadsFeature

Type Aliases

AndroidDownloadManager

typealias AndroidDownloadManager = DownloadManager

OnDownloadCompleted

typealias OnDownloadCompleted = (Download, Long) -> Unit

OnNeedToRequestPermissions

typealias OnNeedToRequestPermissions = (session: Session, download: Download) -> Unit