Interface DownloadJob.ProgressListener

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      abstract void onProgress(@NonNull() Progress progress) Called when download progressed.
      abstract void onComplete(@NonNull() File output) Called when download successfully finished.
      abstract 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

    • Method Detail

      • onProgress

         abstract 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

         abstract 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

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