currentCamera method

Future<RCCallCamera> currentCamera()

ZH

获取当前摄像头

return 当前摄像头

EN

Get the current camera

return Current camera

Implementation

Future<RCCallCamera> currentCamera() async {
  int code = await _channel.invokeMethod('currentCamera');
  if (code < 0 || code >= RCCallCamera.values.length)
    return RCCallCamera.none;
  return RCCallCamera.values[code];
}