Class DownloadJob.ProgressListenerAdapter

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      void onProgress(@NonNull() Progress progress) Called when download progressed.
      void onComplete(@NonNull() File output) Called when download successfully finished.
      void onError(@NonNull() Throwable exception) Called when an error occurred during download.
      • Methods inherited from class java.lang.Object

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

      • DownloadJob.ProgressListenerAdapter

        DownloadJob.ProgressListenerAdapter()
    • Method Detail

      • onProgress

         void onProgress(@NonNull() Progress progress)

        Called when download progressed. This method is called on the main thread.

        Parameters:
        progress - Progress information for the running download.
      • onComplete

         void onComplete(@NonNull() File output)

        Called when download successfully finished. This method is called on the main thread.

        Parameters:
        output - Downloaded file on the local device filesystem.
      • onError

         void onError(@NonNull() Throwable exception)

        Called when an error occurred during download. This method is called on the main thread.

        Parameters:
        exception - Exception containing the error reason.