Package com.pspdfkit.document.download
Class DownloadJob.ProgressListenerAdapter
-
- All Implemented Interfaces:
-
com.pspdfkit.document.download.DownloadJob.ProgressListener
public abstract class DownloadJob.ProgressListenerAdapter implements DownloadJob.ProgressListener
An empty implementation of a ProgressListener.
-
-
Constructor Summary
Constructors Constructor Description DownloadJob.ProgressListenerAdapter()
-
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. -
-
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.
-
-
-
-