joinRoom method

Future<int> joinRoom(
  1. String roomId,
  2. RCRTCRoomSetup setup
)

ZH

加入房间 @param roomId @param setup @return 0: 成功, 非0: 失败

EN

Join a room @param roomId @param setup @return 0: success, non-zero: failure

Implementation

Future<int> joinRoom(String roomId, RCRTCRoomSetup setup) async {
  Map<String, dynamic> arguments = {'id': roomId, 'setup': setup.toJson()};
  int code = await _channel.invokeMethod('joinRoom', arguments) ?? -1;
  return code;
}