Reader Kit has integrated the tap and swipe page turning. You can use the manual page-turning API to implement other page-turning methods such as earphone-controlled page turning.
This function involves one API. See the following table for detailed API information.
| API | Description |
|---|---|
| flipPage(isNext: boolean): void | Triggers ReadPageComponent to turn pages. |
Before calling the page-turning API, construct a scenario where page turning needs to be manually triggered, for example, earphone-controlled page turning.
Call the flipPage API to implement page turning when page turning is triggered.
let isNext: boolean = true; // true indicates the next page, and false indicates the previous page. this.readerComponentController.flipPage(isNext);