android-components / mozilla.components.feature.downloads

Package mozilla.components.feature.downloads


Name Summary
AbstractFetchDownloadService abstract class AbstractFetchDownloadService
Service that performs downloads through a fetch Client rather than through the native Android download manager.
DownloadDialogFragment abstract class DownloadDialogFragment : AppCompatDialogFragment
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.
DownloadMiddleware class DownloadMiddleware : Middleware<BrowserState, BrowserAction>
Middleware implementation for managing downloads via the provided download service. Its purpose is to react to global download state changes (e.g. of BrowserState.queuedDownloads) and notify the download service, as needed.
DownloadsFeature class DownloadsFeature : LifecycleAwareFeature, PermissionsFeature
Feature implementation to provide download functionality for the selected session. The feature will subscribe to the selected session and listen for downloads.
DownloadsUseCases class DownloadsUseCases
Contains use cases related to the downloads feature.
SimpleDownloadDialogFragment class SimpleDownloadDialogFragment : DownloadDialogFragment
A confirmation dialog to be called before a download is triggered. Meant to be used in collaboration with DownloadsFeature

Extensions for External Classes

Name Summary