setCameraAutoFocusFaceModeEnabled abstract method

Future<void> setCameraAutoFocusFaceModeEnabled(
  1. bool enabled
)

Sets whether to enable face auto-focus.

By default, the SDK disables face auto-focus on Android and enables it on iOS. If you want to manually set face auto-focus, call this method. This method is applicable to Android and iOS only.

  • enabled Whether to enable face auto-focus: true : Enable face auto-focus. false : Disable face auto-focus.

Returns When the method call succeeds, there is no return value; when fails, the AgoraRtcException exception is thrown. You need to catch the exception and handle it accordingly. See Error Codes for details and resolution suggestions.

Implementation

Future<void> setCameraAutoFocusFaceModeEnabled(bool enabled);