enableCamera method

Future<int> enableCamera(
  1. bool enable, [
  2. RCRTCCamera? camera
])

Implementation

Future<int> enableCamera(
  bool enable, [
  RCRTCCamera? camera,
]) async {
  Map<String, dynamic> arguments = {
    'enable': enable,
    'camera': camera?.index,
  };
  int code = await _channel.invokeMethod('enableCamera', arguments) ?? -1;
  return code;
}