Get whiteboard list
This document describes how to obtain the list of whiteboards that are being shared in a room.
Prerequisites
Create a whiteboard by referring to Create a super board.
Implementation steps
- When entering the room for the first time, you can call the querySuperBoardSubViewList method to actively retrieve the list of whiteboards already created in the room.
ZegoQuerySuperBoardSubViewResult result = await ZegoSuperBoardManager.instance.querySuperBoardSubViewList();
if (kDebugMode) {
print('[Flutter][querySuperBoardSubViewList]: ${result.subViewModelList}');
} - When already in the room, you can call the getSuperBoardSubViewModelList to retrieve the list of all current whiteboards.
// Get the list of all exisiting white boards
List subViewModelList = await ZegoSuperBoardManager.instance.getSuperBoardSubViewModelList() ??
[];
if (kDebugMode) {
print('[Flutter][getSuperBoardSubViewModelList]: $subViewModelList');
}
// Your business logic ... 
