DownloadEventListener

Interface definition for a callback to be invoked when a media download is either completed, cancelled or failed because an error has occurred.

Functions

Link copied to clipboard
abstract fun onDownloadCanceled(video: Video)
This method will be invoked when the download request of a media has been cancelled.
Link copied to clipboard
abstract fun onDownloadCompleted(video: Video, status: DownloadStatus)
This method will be invoked upon successful download of the requested media.
Link copied to clipboard
abstract fun onDownloadDeleted(video: Video)
This method will be invoked when the fully downloaded copy of a media was deleted.
Link copied to clipboard
abstract fun onDownloadFailed(video: Video, status: DownloadStatus)
This method will be invoked when the requested of a media cannot be downloaded due to an error.
Link copied to clipboard
abstract fun onDownloadPaused(video: Video, status: DownloadStatus)
This method will be invoked when the requested of a media cannot be downloaded due to an error.
Link copied to clipboard
abstract fun onDownloadProgress(video: Video, status: DownloadStatus)
This method will be called when the download request is currently running.
Link copied to clipboard
abstract fun onDownloadRequested(video: Video)
This method will be called when download request begins to process.
Link copied to clipboard
abstract fun onDownloadStarted(video: Video, estimatedSize: Long, mediaProperties: Map<String, Serializable>)
This method will be called after successfully placing all required assets for the media in the download queue.