Stay organized with collections
Save and categorize content based on your preferences.
GARSessionConfiguration(CloudAnchors)
Category adding Cloud Anchor functionality to GARSessionConfiguration
.
Summary
Properties
|
cloudAnchorMode
|
Describes the desired behavior of the ARCore Cloud Anchor API.
|
Properties
cloudAnchorMode
Describes the desired behavior of the ARCore Cloud Anchor API.
The Cloud Anchor API uses feature maps to persist an anchor throughout sessions and across devices. See the Cloud Anchors developer guide for more information.
The default value is GARCloudAnchorModeDisabled
. If the mode is changed, existing Cloud Anchors will have their GARAnchor.cloudState
set to GARCloudAnchorStateNone
and cease being updated except for tracking state changes.
Remember to set a credential for authentication with Google Cloud before configuring, or you may receive auth errors.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-07-14 UTC.
[null,null,["Last updated 2025-07-14 UTC."],[[["\u003cp\u003e\u003ccode\u003eGARSessionConfiguration\u003c/code\u003e now includes \u003ccode\u003ecloudAnchorMode\u003c/code\u003e to enable Cloud Anchor functionality in ARCore.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003ecloudAnchorMode\u003c/code\u003e dictates how the Cloud Anchor API behaves, allowing for persistence of anchors across sessions and devices.\u003c/p\u003e\n"],["\u003cp\u003eFeature maps are utilized by the Cloud Anchor API to achieve anchor persistence.\u003c/p\u003e\n"],["\u003cp\u003eEnsure proper Google Cloud authentication is set up to avoid authorization errors when using Cloud Anchors.\u003c/p\u003e\n"],["\u003cp\u003eChanging the \u003ccode\u003ecloudAnchorMode\u003c/code\u003e will reset the \u003ccode\u003ecloudState\u003c/code\u003e of existing Cloud Anchors and stop updates except for tracking state.\u003c/p\u003e\n"]]],["`GARSessionConfiguration(CloudAnchors)` adds Cloud Anchor functionality, managed via the `cloudAnchorMode` property. This property controls the ARCore Cloud Anchor API's behavior, using feature maps to persist anchors across sessions and devices. The default mode is `GARCloudAnchorModeDisabled`. Changing the mode resets existing Cloud Anchors' `GARAnchor.cloudState` to `GARCloudAnchorStateNone`. It is required to set a credential for authentication with Google Cloud.\n"],null,[]]