Turn pages
This document describes how to turn pages on a displayed whiteboard.
Prerequisite
Create a whiteboard by referring to Create a super board.
Implementation steps
Set up a page-scrolling event listener
Call the onSuperBoardSubViewScrollChanged interface to listen for page-scrolling events.
// Set up a page-scrolling event listener
ZegoSuperBoardManager.onSuperBoardSubViewScrollChanged = ((uniqueID, page, pageCount) {
// After the user scrolling pages, SuperBoardView would return this event.
// You can refresh the current page number and the total page number on UI according to the currentSuperBoardSubView properties.
}); Flip pages
You can call the flipToPrePage, flipToNextPage, and flipToPage methods to flip to the previous page, next page, and jump to a specific page, respectively.
// Flip to the previous page
await ZegoSuperBoardManager.instance.flipToPrePage();
// Flip to the next page
await ZegoSuperBoardManager.instance.flipToNextPage();
// Flip to a specified page
await ZegoSuperBoardManager.instance.flipToPage(targetPage: 3); 
