public static interface MediaDownloadable.DownloadEventListener
| Modifier and Type | Method and Description |
|---|---|
void |
onDownloadCanceled(Video video)
This method will be invoked when the download request of a media has been cancelled.
|
void |
onDownloadCompleted(Video video,
DownloadStatus status)
This method will be invoked upon successful download of the requested media.
|
void |
onDownloadDeleted(Video video)
This method will be invoked when the fully downloaded copy of a media was deleted.
|
void |
onDownloadFailed(Video video,
DownloadStatus status)
This method will be invoked when the requested of a media cannot be downloaded due to an
error.
|
void |
onDownloadPaused(Video video,
DownloadStatus status)
This method will be invoked when the requested of a media cannot be downloaded due to an
error.
|
void |
onDownloadProgress(Video video,
DownloadStatus status)
This method will be called when the download request is currently running.
|
void |
onDownloadRequested(Video video)
This method will be called when download request begins to process.
|
void |
onDownloadStarted(Video video,
long estimatedSize,
java.util.Map<java.lang.String,java.io.Serializable> mediaProperties)
This method will be called after successfully placing all required assets for the
media in the download queue.
|
void onDownloadRequested(@NonNull
Video video)
video - the video that has started.void onDownloadStarted(@NonNull
Video video,
long estimatedSize,
@NonNull
java.util.Map<java.lang.String,java.io.Serializable> mediaProperties)
video - the video that was queued.estimatedSize - estimated total size of the download.mediaProperties - map of information related to the video being downloaded.void onDownloadProgress(@NonNull
Video video,
@NonNull
DownloadStatus status)
video - the video download that is being downloaded.status - the detailed status of the download.void onDownloadPaused(@NonNull
Video video,
@NonNull
DownloadStatus status)
video - the video download that has been paused.status - the detailed status of the download.void onDownloadCompleted(@NonNull
Video video,
@NonNull
DownloadStatus status)
video - the video that was downloaded.void onDownloadCanceled(@NonNull
Video video)
video - the video that was cancelled.void onDownloadDeleted(@NonNull
Video video)
video - the video that was deleted.void onDownloadFailed(@NonNull
Video video,
@NonNull
DownloadStatus status)
video - the video that failed.status - the detailed status of the download.