setCameraAutoFocusFaceModeEnabled method Null safety

Future<void> setCameraAutoFocusFaceModeEnabled(
  1. bool enabled
)

Sets whether to enable face autofocus.

The SDK disables face autofocus by default. To set face autofocus, call this method.

Note

Call this method after the camera is started.

Parameter enabled Sets whether to enable/disable the camera auto-face focus function:

  • true: Enable face autofocus.
  • false: Disable face autofocus.

Implementation

@override
Future<void> setCameraAutoFocusFaceModeEnabled(bool enabled) {
  return _invokeMethod('setCameraAutoFocusFaceModeEnabled', {
    'enabled': enabled,
  });
}