Stay organized with collections
Save and categorize content based on your preferences.
public static final enum
Config.FocusMode
On supported devices, selects the desired camera focus mode. On these devices, the default
desired focus mode is currently FIXED, although this default might
change in the future. See the ARCore
supported devices page for a list of devices on which ARCore does not support changing the
desired focus mode.
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 Config.setFocusMode(Config.FocusMode) using FIXED before enabling the AR session. This ensures that your app always uses
fixed focus, even if the default camera config focus mode changes in a future release.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-10-31 UTC."],[[["`Config.FocusMode` allows you to select the desired camera focus mode on supported ARCore devices."],["For best AR tracking, use the default focus mode; for capturing pictures or videos, use `AUTO`; and for fixed focus, use `FIXED`."],["`AUTO` enables auto focus, while `FIXED` maintains a fixed focus."]]],[]]