ProgressListener

Definition of callback objects for observing downloads. These callbacks are called on the main thread.

See also

Inheritors

Functions

Link copied to clipboard
abstract fun onComplete(@NonNull output: File)
Called when download successfully finished.
Link copied to clipboard
abstract fun onError(@NonNull exception: Throwable)
Called when an error occurred during download.
Link copied to clipboard
abstract fun onProgress(@NonNull progress: Progress)
Called when download progressed.