GARSessionConfiguration(CloudAnchors)

Category adding Cloud Anchor functionality to GARSessionConfiguration.

Summary

Properties

cloudAnchorMode
Describes the desired behavior of the ARCore Cloud Anchor API.

Properties

cloudAnchorMode

@property(nonatomic) GARCloudAnchorMode 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.