enableCameraAutoFocus method

Future<int?> enableCameraAutoFocus(
  1. bool enable
)

Set whether to enable the automatic recognition of face position (supports only the Android and iOS platforms)

Parameters:

enable true: enabled; false: disabled. Default value: true

Return: 0: success; negative number: failure

Implementation

Future<int?> enableCameraAutoFocus(bool enable) async {
  var result = await _channel.invokeMethod('enableCameraAutoFocus', {
    "enable": enable,
  });
  return V2TXLiveFlutterResult.intValue(result);
}