publish method

Future<int> publish(
  1. RCRTCMediaType type
)

Implementation

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