Selects the desired behavior of the camera focus subsystem. Currently, the default focus mode
is FIXED
, but this default might change in the future. Note, on
devices where ARCore does not support Auto Focus due to the use of a fixed focus camera,
setting AUTO
will be ignored. See the ARCore supported devices
page for a list of affected devices.
For optimal AR tracking performance, use the focus mode provided by the default session
config. While capturing pictures or video, use AUTO
. For optimal AR
tracking, revert to the default focus mode once auto focus behavior is no longer needed. If
your app requires fixed focus camera, call setFocusMode(Config.FocusMode)
(FIXED
) before enabling the AR session. This will ensure that your app always
uses fixed focus, even if the default camera config focus mode changes in a future release.
Inherited Methods
Enum Values
public static final Config.FocusMode AUTO
Auto focus mode.
public static final Config.FocusMode FIXED
Fixed focus mode.