Package-level declarations

Types

Link copied to clipboard
class DownloadManagerListener(coroutineScope: CoroutineScope, mediaDownloadLocalDataSource: MediaDownloadLocalDataSource, downloadProgressMonitor: DownloadProgressMonitor) : DownloadManager.Listener

Implementation of listener for DownloadManager events which can also get notified of DownloadService creation and destruction events.

Link copied to clipboard
class DownloadProgressMonitor(coroutineScope: CoroutineScope, mediaDownloadLocalDataSource: MediaDownloadLocalDataSource)

Monitors the progress of downloads, polling DownloadManager every specified interval and uses MediaDownloadLocalDataSource to persist the progress.

Link copied to clipboard
abstract class MediaDownloadService(foregroundNotificationId: Int, foregroundNotificationUpdateInterval: Long, channelId: String?, @StringRes channelNameResourceId: Int, @StringRes channelDescriptionResourceId: Int, @DrawableRes notificationIcon: Int) : DownloadService, LifecycleOwner

Implementation of DownloadService that: