public static interface

DownloadJob.ProgressListener

com.pspdfkit.document.download.DownloadJob.ProgressListener
Known Indirect Subclasses

Class Overview

Definition of callback objects for observing downloads.

Summary

Public Methods
abstract void onComplete(File output)
Called when download successfully finished.
abstract void onError(Throwable exception)
Called when an error occurred during download.
abstract void onProgress(Progress progress)
Called when download progressed.

Public Methods

public abstract void onComplete (File output)

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

Parameters
output Downloaded file on the local device filesystem.

public abstract void onError (Throwable exception)

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

Parameters
exception Exception containing the error reason.

public abstract void onProgress (Progress progress)

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

Parameters
progress Progress information for the running download.