The page event listener.
More...
◆ onPageChanged:currentIndex:
- (void) onPageChanged: |
|
(int) |
oldIndex |
currentIndex: |
|
(int) |
currentIndex |
|
|
| |
|
optional |
Triggered when current page is changed.
- Parameters
-
[in] | oldIndex | Old page index. Valid range: from 0 to (count-1). count is the page count. |
[in] | currentIndex | Current page index. Valid range: from 0 to (count-1). count is the page count. |
◆ onPageInvisible:
- (void) onPageInvisible: |
|
(int) |
index |
|
|
optional |
Triggered when the page becomes invisible.
- Parameters
-
[in] | index | Page index. Valid range: from 0 to (count-1). count is the page count. |
◆ onPageJumped
Triggered by the page navigation or link jump.
◆ onPagesFlattened:
- (void) onPagesFlattened: |
|
(int) |
index |
|
|
optional |
Triggered when page were flattened.
- Parameters
-
[in] | index | Page index array. Valid range of page index: from 0 to (count-1). count is the page count. |
◆ onPagesInsertedAtRange:
- (void) onPagesInsertedAtRange: |
|
(NSRange) |
range |
|
|
optional |
Triggered when pages were inserted.
- Parameters
-
[in] | range | Page index range. |
◆ onPagesMoved:dstIndex:
- (void) onPagesMoved: |
|
(NSArray< NSNumber * > *) |
indexes |
dstIndex: |
|
(int) |
dstIndex |
|
|
| |
|
optional |
Triggered when pages were moved to a new index.
- Parameters
-
[in] | indexes | Page index array. Valid range of page index: from 0 to (count-1). count is the page count. |
[in] | dstIndex | The destination page index, which the pages will be inserted before. |
◆ onPagesRemoved:
- (void) onPagesRemoved: |
|
(NSArray< NSNumber * > *) |
indexes |
|
|
optional |
Triggered when pages were removed.
- Parameters
-
[in] | indexes | Page index array. Valid range of page index: from 0 to (count-1). count is the page count. |
◆ onPagesRotated:rotation:
- (void) onPagesRotated: |
|
(NSArray< NSNumber * > *) |
indexes |
rotation: |
|
(int) |
rotation |
|
|
| |
|
optional |
Triggered when pages were rotated.
- Parameters
-
[in] | indexes | Page index array. Valid range of page index: from 0 to (count-1). count is the page count. |
[in] | rotation | The page rotation, valid value will be 0(0 degree), 1(90 degree), 2(180 degree), 3(270 degree). |
◆ onPagesWillFlatten:
- (void) onPagesWillFlatten: |
|
(int) |
index |
|
|
optional |
Triggered when page will be flattened.
- Parameters
-
[in] | index | Page index array. Valid range of page index: from 0 to (count-1). count is the page count. |
◆ onPagesWillMove:dstIndex:
- (void) onPagesWillMove: |
|
(NSArray< NSNumber * > *) |
indexes |
dstIndex: |
|
(int) |
dstIndex |
|
|
| |
|
optional |
Triggered when pages will be moved to a new index.
- Parameters
-
[in] | indexes | Page index array. Valid range of page index: from 0 to (count-1). count is the page count. |
[in] | dstIndex | The destination page index, which the pages will be inserted before. |
◆ onPagesWillRemove:
- (void) onPagesWillRemove: |
|
(NSArray< NSNumber * > *) |
indexes |
|
|
optional |
Triggered when pages will be removed.
- Parameters
-
[in] | indexes | Page index array. Valid range of page index: from 0 to (count-1). count is the page count. |
◆ onPagesWillRotate:rotation:
- (void) onPagesWillRotate: |
|
(NSArray< NSNumber * > *) |
indexes |
rotation: |
|
(int) |
rotation |
|
|
| |
|
optional |
Triggered when pages will be rotated.
- Parameters
-
[in] | indexes | Page index array. Valid range of page index: from 0 to (count-1). count is the page count. |
[in] | rotation | The page rotation, valid value will be 0(0 degree), 1(90 degree), 2(180 degree), 3(270 degree). |
◆ onPageVisible:
- (void) onPageVisible: |
|
(int) |
index |
|
|
optional |
Triggered when the page becomes visible.
- Parameters
-
[in] | index | Page index. Valid range: from 0 to (count-1). count is the page count. |