setFocusMode method

Future<void> setFocusMode(
  1. int mode
)

The capture device’s focus mode.

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.

See CaptureFocusMode for possible values.

Implementation

Future<void> setFocusMode(int mode) {
  return _channel.$setFocusMode(this, mode);
}