# GARSessionConfiguration(CloudAnchors)

Category adding Cloud Anchor functionality to `https://developers.google.com/ar/reference/ios/interface/GARSessionConfiguration#interface_g_a_r_session_configuration`.

## Summary

| ### Properties ||
|---|---|
| `https://developers.google.com/ar/reference/ios/category/GARSessionConfiguration(CloudAnchors)#cloudanchormode` | `https://developers.google.com/ar/reference/ios/group/GARCloudAnchorMode#garcloudanchormode` Describes the desired behavior of the ARCore Cloud Anchor API. |

## Properties

### cloudAnchorMode

```
@property(nonatomic) https://developers.google.com/ar/reference/ios/group/GARCloudAnchorMode#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](https://developers.google.com/ar/develop/ios/cloud-anchors/developer-guide) for more information.

The default value is `https://developers.google.com/ar/reference/ios/group/GARCloudAnchorMode#garcloudanchormodedisabled`. If the mode is changed, existing Cloud Anchors will have their `https://developers.google.com/ar/reference/ios/category/GARAnchor(CloudAnchors)#cloudstate` set to `https://developers.google.com/ar/reference/ios/group/GARCloudAnchorState#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.