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.


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.


Future<void> setCameraAutoFocusFaceModeEnabled(bool enabled) {
  return _invokeMethod('setCameraAutoFocusFaceModeEnabled', {
    'enabled': enabled,