public static abstract class

DownloadJob.ProgressListenerAdapter

extends Object
implements DownloadJob.ProgressListener
java.lang.Object
   ↳ com.pspdfkit.document.download.DownloadJob.ProgressListenerAdapter

Class Overview

An empty implementation of a DownloadJob.ProgressListener.

Summary

Public Constructors
ProgressListenerAdapter()
Public Methods
void onComplete(File output)
Called when download successfully finished.
void onError(Throwable exception)
Called when an error occurred during download.
void onProgress(Progress progress)
Called when download progressed.
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.pspdfkit.document.download.DownloadJob.ProgressListener

Public Constructors

public ProgressListenerAdapter ()

Public Methods

public 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 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 void onProgress (Progress progress)

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

Parameters
progress Progress information for the running download.