GARCloudAnchorMode

Summary

Enumerations

GARCloudAnchorMode{
  GARCloudAnchorModeDisabled = 0,
  GARCloudAnchorModeEnabled = 1
}
enum
Describes the desired behavior of the ARCore Cloud Anchor API.

Enumerations

GARCloudAnchorMode

 GARCloudAnchorMode

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. Use GARSessionConfiguration.cloudAnchorMode to set the desired mode.

Properties
GARCloudAnchorModeDisabled

The Cloud Anchor API is disabled.

Calling hostCloudAnchor:TTLDays:completionHandler:error: (GARSession(CloudAnchors)) and resolveCloudAnchorWithIdentifier:completionHandler:error: (GARSession(CloudAnchors)) will result in GARSessionErrorCodeIllegalState.

This is the default mode.

GARCloudAnchorModeEnabled

The Cloud Anchor API is enabled.

hostCloudAnchor:TTLDays:completionHandler:error: (GARSession(CloudAnchors)) and resolveCloudAnchorWithIdentifier:completionHandler:error: (GARSession(CloudAnchors)) can be used to host and resolve Cloud Anchors.

Using this mode requires your app to configure Token authorization or API Key authorization.

Use GARSessionConfiguration.cloudAnchorMode to set this mode.