What is the lifecycle of Interactive Whiteboard?
2021-09-09
Products / Plugins:Interactive whiteboard
Platform / Framework:All
Problem Description
How many stages does the complete lifecycle of Interactive Whiteboard have? What are they respectively?
Solution
The lifecycle of Interactive Whiteboard is roughly divided into three stages:
Create whiteboard -> Whiteboard is active (can perform graffiti, data synchronization, etc.) -> Whiteboard is destroyed.
The specific lifecycle is described as follows:
- Create whiteboard: Call the
createWhiteboardViewinterface of theZegoWhiteboardManagerclass to createZegoWhiteboardView. After successful creation, users in the same room will receive theonWhiteboardAddeddelegate callback. - Whiteboard is active...
- Actively destroy whiteboard: Call the
destroyWhiteboardViewmethod of theZegoWhiteboardManagerclass to remove the whiteboard. After successful removal, users in the same room will receive theonWhiteboardRemovedcallback notification. - Whiteboard is destroyed by SDK after the room no longer exists. If all users exit the room and there are still whiteboards in the room (whiteboards that were not actively destroyed), the whiteboard will be retained for 15 minutes, after which the SDK will automatically destroy them.
Note
Prerequisites for normal whiteboard operation:
- Initialize ZegoExpress SDK and ZegoWhiteboardView SDK.
- Use the
loginRoominterface of ZegoExpress to log in to the room.
