android-components / mozilla.components.feature.downloads

Package mozilla.components.feature.downloads


Name Summary
AbstractFetchDownloadService abstract class AbstractFetchDownloadService : CoroutineService
Service that performs downloads through a fetch Client rather than through the native Android download manager.
CoroutineService abstract class CoroutineService
Service that runs suspend functions in parallel. When all jobs are completed, the service is stopped automatically.
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.
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