unsubscribe method

Future<int> unsubscribe(
  1. String userId,
  2. RCRTCMediaType type
)

Implementation

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