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-02-28 UTC.
[null,null,["Last updated 2025-02-28 UTC."],[[["`GARSessionConfiguration` now includes `cloudAnchorMode` to enable Cloud Anchor functionality in ARCore."],["`cloudAnchorMode` dictates how the Cloud Anchor API behaves, allowing for persistence of anchors across sessions and devices."],["Feature maps are utilized by the Cloud Anchor API to achieve anchor persistence."],["Ensure proper Google Cloud authentication is set up to avoid authorization errors when using Cloud Anchors."],["Changing the `cloudAnchorMode` will reset the `cloudState` of existing Cloud Anchors and stop updates except for tracking state."]]],["`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"]]