Download Job
A task that can download a PDF document from a com.pspdfkit.document.download.source.DownloadSource. You can create and start a job using startDownload. To monitor the download progress you can either set a listener using setProgressListener or collect the progress.
Types
Factory for creating and starting DownloadJobs.
Definition of callback objects for observing downloads. These callbacks are called on the main thread.
An empty implementation of a ProgressListener.
Properties
true if the download has been successfully completed.
The output file as defined by the started DownloadRequest.
Returns a Flow emitting Progress events of the download. The latest progress is replayed to new collectors; the flow completes when the download finishes and throws the download error if it fails — always after the final progress event. Intermediate progress events may be conflated (latest wins).
Functions
Sets a ProgressListener for monitoring the download. Calling this method will replace any previously set listener. You may provide null to clear the listener.