Public Member Functions | |
void | onPageChanged (int oldPageIndex, int curPageIndex) |
void | onPageInvisible (int index) |
void | onPageJumped () |
void | onPageMoved (boolean success, int index, int dstIndex) |
void | onPagesInserted (boolean success, int dstIndex, int[] pageRanges) |
void | onPagesRemoved (boolean success, int[] pageIndexes) |
void | onPagesRotated (boolean success, int[] pageIndexes, int rotation) |
void | onPagesWillInsert (int dstIndex, int[] pageRanges) |
void | onPagesWillRemove (int[] pageIndexes) |
void | onPagesWillRotate (int[] pageIndexes, int rotation) |
void | onPageVisible (int index) |
void | onPageWillMove (int index, int dstIndex) |
The interface for page event listener.
Note: Currently, this interface does not support xfa documents.
void com.foxit.sdk.PDFViewCtrl.IPageEventListener.onPageChanged | ( | int | oldPageIndex, |
int | curPageIndex | ||
) |
Triggered when current page is changed.
oldPageIndex | Old page index. Valid range: from 0 to (count -1). count is the page count. |
curPageIndex | Current page index. Valid range: from 0 to (count -1). count is the page count. |
void com.foxit.sdk.PDFViewCtrl.IPageEventListener.onPageInvisible | ( | int | index | ) |
Triggered when the page becomes invisible.
index | Page index. Valid range: from 0 to (count -1). count is the page count. |
void com.foxit.sdk.PDFViewCtrl.IPageEventListener.onPageJumped | ( | ) |
Triggered when function PDFViewCtrl#gotoPage(int) or PDFViewCtrl#gotoPage(int, float, float) is called.
void com.foxit.sdk.PDFViewCtrl.IPageEventListener.onPageMoved | ( | boolean | success, |
int | index, | ||
int | dstIndex | ||
) |
Triggered when function
success | true means success, while false means failure. |
index | The original index of page which has be moved. |
dstIndex | The destination index. |
void com.foxit.sdk.PDFViewCtrl.IPageEventListener.onPagesInserted | ( | boolean | success, |
int | dstIndex, | ||
int [] | pageRanges | ||
) |
Triggered when function
success | true means success, while false means failure. |
dstIndex | A page index in current PDF document. This is used to specify where the imported pages will be inserted. If parameter dstIndex is less than 0, the imported pages will be inserted to the first. If parameter dstIndex is equal to or larger than current page count, the imported pages will be inserted to the end. |
pageRanges | An integer array which contains the page ranges of source PDF document, to be imported. In this array, 2 numbers are a pair: the first integer is the starting page index, and the second integer is the page count. This parameter is not null , it should contains at least 2 numbers, and the count of elements should be a multiples of 2. |
void com.foxit.sdk.PDFViewCtrl.IPageEventListener.onPagesRemoved | ( | boolean | success, |
int [] | pageIndexes | ||
) |
Triggered when function
success | true means success, while false means failure. |
pageIndexes | An integer array specify which pages have be removed. |
void com.foxit.sdk.PDFViewCtrl.IPageEventListener.onPagesRotated | ( | boolean | success, |
int [] | pageIndexes, | ||
int | rotation | ||
) |
Triggered when function
success | true means success, while false means failure. |
pageIndexes | An integer array specify which pages have be rotated. |
rotation | The destination rotation value. Please refer to Constants.e_rotationXXX values and this should be one of these values. |
void com.foxit.sdk.PDFViewCtrl.IPageEventListener.onPagesWillInsert | ( | int | dstIndex, |
int [] | pageRanges | ||
) |
Triggered when insert some pages.
dstIndex | A page index in current PDF document. This is used to specify where the imported pages will be inserted. If parameter dstIndex is less than 0, the imported pages will be inserted to the first. If parameter dstIndex is equal to or larger than current page count, the imported pages will be inserted to the end. |
pageRanges | An integer array which contains the page ranges of source PDF document, to be imported. In this array, 2 numbers are a pair: the first integer is the starting page index, and the second integer is the page count. If this parameter is set to null , all pages in the source document will be imported. If this parameter is not null , it should contains at least 2 numbers, and the count of elements should be a multiples of 2. |
void com.foxit.sdk.PDFViewCtrl.IPageEventListener.onPagesWillRemove | ( | int [] | pageIndexes | ) |
Triggered when pages will be removed.
pageIndexes | An integer array specify which pages will be removed. |
void com.foxit.sdk.PDFViewCtrl.IPageEventListener.onPagesWillRotate | ( | int [] | pageIndexes, |
int | rotation | ||
) |
Triggered when pages will be rotated.
pageIndexes | An integer array specify which pages will be rotated. |
rotation | New page rotation value. Please refer to Constants.e_rotationXXX values and this should be one of these values. |
void com.foxit.sdk.PDFViewCtrl.IPageEventListener.onPageVisible | ( | int | index | ) |
Triggered when the page becomes visible.
index | Page index. Valid range: from 0 to (count -1). count is the page count. |
void com.foxit.sdk.PDFViewCtrl.IPageEventListener.onPageWillMove | ( | int | index, |
int | dstIndex | ||
) |
Triggered when page will be moved.
index | The index of page which will be moved. |
dstIndex | The destination index. |