Package 

Interface MediaDownloadable.DownloadEventListener


  • 
    public interface MediaDownloadable.DownloadEventListener
    
                        

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

    • Method Summary

      Modifier and Type Method Description
      abstract void onDownloadRequested(@NonNull() Video video) This method will be called when download request begins to process.
      abstract void onDownloadStarted(@NonNull() Video video, long estimatedSize, @NonNull() Map<String, Serializable> mediaProperties) This method will be called after successfully placing all required assets for themedia in the download queue.
      abstract void onDownloadProgress(@NonNull() Video video, @NonNull() DownloadStatus status) This method will be called when the download request is currently running.
      abstract void onDownloadPaused(@NonNull() Video video, @NonNull() DownloadStatus status) This method will be invoked when the requested of a media cannot be downloaded due to anerror.
      abstract void onDownloadCompleted(@NonNull() Video video, @NonNull() DownloadStatus status) This method will be invoked upon successful download of the requested media.
      abstract void onDownloadCanceled(@NonNull() Video video) This method will be invoked when the download request of a media has been cancelled.
      abstract void onDownloadDeleted(@NonNull() Video video) This method will be invoked when the fully downloaded copy of a media was deleted.
      abstract void onDownloadFailed(@NonNull() Video video, @NonNull() DownloadStatus status) This method will be invoked when the requested of a media cannot be downloaded due to anerror.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • onDownloadRequested

         abstract void onDownloadRequested(@NonNull() Video video)

        This method will be called when download request begins to process.

        Parameters:
        video - the video that has started.
      • onDownloadStarted

         abstract void onDownloadStarted(@NonNull() Video video, long estimatedSize, @NonNull() Map<String, Serializable> mediaProperties)

        This method will be called after successfully placing all required assets for themedia in the download queue.

        Parameters:
        video - the video that was queued.
        estimatedSize - estimated total size of the download.
        mediaProperties - map of information related to the video being downloaded.
      • onDownloadProgress

         abstract void onDownloadProgress(@NonNull() Video video, @NonNull() DownloadStatus status)

        This method will be called when the download request is currently running.

        Parameters:
        video - the video download that is being downloaded.
        status - the detailed status of the download.
      • onDownloadPaused

         abstract void onDownloadPaused(@NonNull() Video video, @NonNull() DownloadStatus status)

        This method will be invoked when the requested of a media cannot be downloaded due to anerror.

        Parameters:
        video - the video download that has been paused.
        status - the detailed status of the download.
      • onDownloadCompleted

         abstract void onDownloadCompleted(@NonNull() Video video, @NonNull() DownloadStatus status)

        This method will be invoked upon successful download of the requested media.

        Parameters:
        video - the video that was downloaded.
      • onDownloadCanceled

         abstract void onDownloadCanceled(@NonNull() Video video)

        This method will be invoked when the download request of a media has been cancelled.

        Parameters:
        video - the video that was cancelled.
      • onDownloadDeleted

         abstract void onDownloadDeleted(@NonNull() Video video)

        This method will be invoked when the fully downloaded copy of a media was deleted.

        Parameters:
        video - the video that was deleted.
      • onDownloadFailed

         abstract void onDownloadFailed(@NonNull() Video video, @NonNull() DownloadStatus status)

        This method will be invoked when the requested of a media cannot be downloaded due to anerror.

        Parameters:
        video - the video that failed.
        status - the detailed status of the download.