setSmoothAutoFocusEnabled method

Future<void> setSmoothAutoFocusEnabled({
  1. required bool enabled,
})

A Boolean value that determines whether smooth autofocus is in an enabled state on the device.

On capable devices, you can enable a “smooth” focusing mode in which the camera makes lens movements more slowly. This mode make focus transitions less visually intrusive, a behavior that you may want for video capture.

Before changing the value of this property, you must call lockForConfiguration to acquire exclusive access to the device’s configuration properties. Otherwise, setting the value of this property raises an exception. When you finish configuring the device, call unlockForConfiguration to release the lock and allow other devices to configure the settings.

Implementation

Future<void> setSmoothAutoFocusEnabled({required bool enabled}) {
  return _channel.$setSmoothAutoFocusEnabled(this, enabled);
}