提交工单
咨询集成、功能及报价等问题
This document describes how to obtain the list of whiteboards that are being shared in a room.
Create a whiteboard by referring to Getting started.
ZegoSuperBoardManager.getInstance().querySuperBoardSubViewList(new IZegoSuperBoardQueryListCallback() {
@Override
public void onQuery(int errorCode, ZegoSuperBoardSubViewModel[] subViewModelList, HashMap<String, String> extraInfo) {
if (errorCode == ZegoSuperBoardError.ZegoSuperBoardSuccess) {
/** The whiteboard list is obtained. */
// After subViewModelList is obtained, update the whiteboard list on the interface.
// For example, update them to the recyclerView list.
} else {
/** Failed to obtain the whiteboard list. Check the cause based on the error code. */
}
}
});
// Call the getSuperBoardSubViewModelList() method.
List<ZegoSuperBoardSubViewModel> modelList = ZegoSuperBoardManager.getInstance().getSuperBoardSubViewModelList();
// Process the corresponding service logic.