switchWhiteboardEngine method

  1. @override
Future<ResultCode> switchWhiteboardEngine(
  1. String whiteboardId
)

Switch whiteboard control object.

Parameter whiteboardId whiteboard Id

Returns

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

Note

  • 此接口用于多白板用例场景。
  • RtcEngineKit会自动创建白板Id为"default"的白板
  • RtcEngine会保留前缀为"pano-"的白板Id,请不要使用
  • 当传入的whiteboardId之前没被设置过,RtcEngineKit会生成新的白板
  • 切换后需要调用whiteboardEngine获得当前的白板控制对象。

Implementation

@override
Future<ResultCode> switchWhiteboardEngine(String whiteboardId) {
  return _invokeCodeMethod(
      'switchWhiteboardEngine', {'whiteboardId': whiteboardId});
}