Documentation
SuperBoard_backup Super Board (Full version)
Documentation
Demo APP
SDK Center
API Center
FAQ
Code Market
Console
Sign Up
Log In
中文站 English
  • Documentation
  • Super Board (Full version)
  • Guides
  • Get whiteboard list

Get the whiteboard list

Last updated:2022-03-28 14:59

This document describes how to obtain the list of whiteboards that are being shared in a room.

Prerequisites

Create a whiteboard by referring to Getting started.

Implementation process

  1. If you enter a room for the first time, you can proactively fetch the list of whiteboards created in the room.
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. */
        }
    }
});
  1. If you are already in a room, you will need to obtain the list of all whiteboards.
// Call the getSuperBoardSubViewModelList() method.
List<ZegoSuperBoardSubViewModel> modelList = ZegoSuperBoardManager.getInstance().getSuperBoardSubViewModelList();
// Process the corresponding service logic.
Page Directory
  • Free trial
  • 提交工单
    咨询集成、功能及报价等问题
    电话咨询
    400 1006 604
    Get Consulting
    Scan Wechat QR code