public static interface

PDFViewCtrl.DocumentDownloadListener

com.pdftron.pdf.PDFViewCtrl.DocumentDownloadListener

Class Overview

Used for receiving updates from document downloading, which can be started by openUrlAsync(String, String, String, HTTPRequestOptions)

Summary

Public Methods
abstract void onDownloadEvent(PDFViewCtrl.DownloadState state, int page_num, int page_downloaded, int page_count, String message)
Called when an update is available.

Public Methods

public abstract void onDownloadEvent (PDFViewCtrl.DownloadState state, int page_num, int page_downloaded, int page_count, String message)

Called when an update is available.

Parameters
state the state of the update.
page_num the number of the page that was just downloaded. Meaningful if type is PAGE.
page_downloaded the total number of pages that have been downloaded
page_count the page count of the associated document
message error message in case the download has failed