react-native-vision-cameraInterfaces
FocusOptions
interface FocusOptionsOptions for a focus metering operation via
CameraController.focusTo(...)
Properties
adaptiveness?
optional adaptiveness: SceneAdaptivenessThe adaptiveness to changes in the scene.
See
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 inautoResetAfter- in seconds. - If set to
null, the focus stays locked until you manually callresetFocus(), or schedule another focus operation viafocusTo(...)
Default
5modes?
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
Default
['AE', 'AF', 'AWB']responsiveness?
optional responsiveness: FocusResponsivenessThe responsiveness of the metering operation.
See
Default
'snappy'