public static interface

PDFViewCtrl.PageChangeListener

com.pdftron.pdf.PDFViewCtrl.PageChangeListener

Class Overview

Used for receiving notifications in UI thread when the current page changes.

Summary

Public Methods
abstract void onPageChange(int old_page, int cur_page, PDFViewCtrl.PageChangeState state)
Called in UI thread when the current page changes.

Public Methods

public abstract void onPageChange (int old_page, int cur_page, PDFViewCtrl.PageChangeState state)

Called in UI thread when the current page changes.

Note: If state is BEGIN or END, values of old_page and cur_page are the same, which is the current page number. In continuous page presentation mode, state parameter is always END.

Parameters
old_page the old page number
cur_page the current (new) page number
state in non-continuous page presentation modes and when the built-in page sliding is in process, this flag is used to indicate the state of page change.