switchCamera method

Future<int> switchCamera()

ZH

切换摄像头 @return 0: 成功, 非0: 失败

EN

Switch camera @return 0: success, non-zero: failed

Implementation

Future<int> switchCamera() async {
  int code = await _channel.invokeMethod('switchCamera') ?? -1;
  return code;
}