switchSuperBoardSubViewWithSheetIndex method

Future<ZegoSuperBoardError> switchSuperBoardSubViewWithSheetIndex({
  1. required String? uniqueID,
  2. required int sheetIndex,
})

Switch to the specified SuperBoardSubView.

Supported version: 2.0.0 and above

Description: Switch to the specified SuperBoardSubView on multiple clients.

Related callbacks: ZegoSuperBoardSwitchBlock

@param uniqueID Unique ID of SuperBoardSubView @return ZegoSuperBoardError

Implementation

Future<ZegoSuperBoardError> switchSuperBoardSubViewWithSheetIndex(
    {required String? uniqueID, required int sheetIndex}) async {
  var map =
      await _channel.invokeMethod('switchSuperBoardSubViewWithSheetIndex', {
    'uniqueID': uniqueID,
    'sheetIndex': sheetIndex,
  });
  return ZegoSuperBoardError(map['errorCode']);
}