FocusOptions

interface FocusOptions

Options for a focus metering operation via CameraController.focusTo(...)

Properties

adaptiveness?

optional adaptiveness: SceneAdaptiveness

The adaptiveness to changes in the scene.

See

SceneAdaptiveness

Default

'continuous'

autoResetAfter?

optional autoResetAfter: number | null
  • If set to a number, the focus will automatically reset itself to continuous auto focus again after it has been stable for the duration specified in autoResetAfter - in seconds.
  • If set to null, the focus stays locked until you manually call resetFocus(), or schedule another focus operation via focusTo(...)

Default

5

modes?

optional modes: MeteringMode[]

The metering modes to run this focus operation on.

By default, all MeteringModes that are supported on the device will be enabled - so ideally 3A.

When passing a custom value, you are responsible for ensuring that the given modes are compatible - e.g. when passing ['AF'] you must ensure that the CameraDevice supports focus metering - see CameraDevice.supportsFocusMetering.

See

MeteringMode

Default

['AE', 'AF', 'AWB']

responsiveness?

optional responsiveness: FocusResponsiveness

The responsiveness of the metering operation.

See

FocusResponsiveness

Default

'snappy'

On this page