switchWhiteboardEngine abstract method
Switch whiteboard control object.
Parameter whiteboardId
whiteboard Id
Returns
- ResultCode.OK Success
- others: Failure
Note
- This interface is used for multiple whiteboard case.
- RtcEngineKit creates whiteboard with whiteboard Id "default" automatically
- RtcEngine will reserve whiteboard Id with "pano-" prefix, please don't use it.
- When call this interface with whiteboard Id not set before, RtcEngineKit will create new whiteboard internal.
- Call whiteboardEngine to get current whiteboard object after switch.
切换白板控制对象
Parameter whiteboardId
白板Id
Returns
- ResultCode.OK 成功
- 其他: 失败
Note
- 此接口用于多白板用例场景。
- RtcEngineKit会自动创建白板Id为"default"的白板
- RtcEngine会保留前缀为"pano-"的白板Id,请不要使用
- 当传入的whiteboardId之前没被设置过,RtcEngineKit会生成新的白板
- 切换后需要调用whiteboardEngine获得当前的白板控制对象。
Implementation
Future<ResultCode> switchWhiteboardEngine(String whiteboardId);