subscribe method

Future<int> subscribe(
  1. String userId,
  2. RCRTCMediaType type, [
  3. bool tiny = true
])

Implementation

Future<int> subscribe(
  String userId,
  RCRTCMediaType type, [
  bool tiny = true,
]) async {
  Map<String, dynamic> arguments = {
    'id': userId,
    'type': type.index,
    'tiny': tiny,
  };
  int code = await _channel.invokeMethod('subscribe', arguments) ?? -1;
  return code;
}