-
- All Implemented Interfaces:
-
androidx.media3.exoplayer.offline.DownloadManager.Listener
public final class DownloadManagerListener implements DownloadManager.ListenerImplementation of listener for DownloadManager events which can also get notified of DownloadServicecreation and destruction events.
Uses MediaDownloadLocalDataSource to persist the DownloadManager events.
Uses DownloadProgressMonitor to monitor progress of downloads.
-
-
Constructor Summary
Constructors Constructor Description DownloadManagerListener(CoroutineScope coroutineScope, MediaDownloadLocalDataSource mediaDownloadLocalDataSource, DownloadProgressMonitor downloadProgressMonitor)
-
Method Summary
Modifier and Type Method Description UnitonInitialized(DownloadManager downloadManager)UnitonIdle(DownloadManager downloadManager)UnitonDownloadChanged(DownloadManager downloadManager, Download download, Exception finalException)UnitonDownloadRemoved(DownloadManager downloadManager, Download download)-
Methods inherited from class com.google.android.horologist.media.data.service.download.DownloadManagerListener
onDownloadsPausedChanged, onRequirementsStateChanged, onWaitingForRequirementsChanged -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
DownloadManagerListener
DownloadManagerListener(CoroutineScope coroutineScope, MediaDownloadLocalDataSource mediaDownloadLocalDataSource, DownloadProgressMonitor downloadProgressMonitor)
-
-
Method Detail
-
onInitialized
Unit onInitialized(DownloadManager downloadManager)
-
onDownloadChanged
Unit onDownloadChanged(DownloadManager downloadManager, Download download, Exception finalException)
-
onDownloadRemoved
Unit onDownloadRemoved(DownloadManager downloadManager, Download download)
-
-
-
-