Package com.pspdfkit.document.download
Interface DownloadJob.ProgressListener
-
- All Implemented Interfaces:
public interface DownloadJob.ProgressListener
Definition of callback objects for observing downloads.
-
-
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. -
-
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.
-
-
-
-