logo
On this page

Get the whiteboard list


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

Prerequisites

Creat a whiteboard by referring to Create a super board.

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().then(function(zegoSuperBoardSubViewModelList){
    // After ZegoSuperBoardSubViewModel is obtained, update the whiteboard list on the page.
    // For example, update them to the UI list.
})
  1. If you are already in a room, you will need to obtain the list of all whiteboards.
ZegoSuperBoardManager.getInstance().querySuperBoardSubViewList().then(function(zegoSuperBoardSubViewModelList){
    // After ZegoSuperBoardSubViewModel is obtained, update the whiteboard list on the page.
    // Process the corresponding service logic.
})

Previous

Switch a whiteboard

Next

Create and switch between multiple whiteboards

On this page

Back to top