Package 

Class DownloadManagerListener

  • All Implemented Interfaces:
    androidx.media3.exoplayer.offline.DownloadManager.Listener

    
    public final class DownloadManagerListener
     implements DownloadManager.Listener
                        

    Implementation 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.

    • Method Summary

      Modifier and Type Method Description
      Unit onInitialized(DownloadManager downloadManager)
      Unit onIdle(DownloadManager downloadManager)
      Unit onDownloadChanged(DownloadManager downloadManager, Download download, Exception finalException)
      Unit onDownloadRemoved(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