joinRoom method

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

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;
}