# GARTerrainAnchorState

## Summary

| ### Enumerations ||
|---|---|
| `https://developers.google.com/ar/reference/ios/group/GARTerrainAnchorState#garterrainanchorstate{ https://developers.google.com/ar/reference/ios/group/GARTerrainAnchorState#garterrainanchorstatenone = 0, https://developers.google.com/ar/reference/ios/group/GARTerrainAnchorState#garterrainanchorstatetaskinprogress = 1, https://developers.google.com/ar/reference/ios/group/GARTerrainAnchorState#garterrainanchorstatesuccess = 2, https://developers.google.com/ar/reference/ios/group/GARTerrainAnchorState#garterrainanchorstateerrorinternal = -1, https://developers.google.com/ar/reference/ios/group/GARTerrainAnchorState#garterrainanchorstateerrornotauthorized = -2, https://developers.google.com/ar/reference/ios/group/GARTerrainAnchorState#garterrainanchorstateerrorunsupportedlocation = -3 }` | enumDescribes the state of an asynchronous operation launched by `https://developers.google.com/ar/reference/ios/category/GARSession(Geospatial)#createanchorwithcoordinate:altitudeaboveterrain:eastupsouthqanchor:completionhandler:error:`. |

## Enumerations

### GARTerrainAnchorState

```
 GARTerrainAnchorState
```
Describes the state of an asynchronous operation launched by `https://developers.google.com/ar/reference/ios/category/GARSession(Geospatial)#createanchorwithcoordinate:altitudeaboveterrain:eastupsouthqanchor:completionhandler:error:`.

| Properties ||
|---|---|
| `GARTerrainAnchorStateErrorInternal` | Internal error. No recommended mitigation. |
| `GARTerrainAnchorStateErrorNotAuthorized` | The operation failed due to an authentication or authorization error. This may occur due to a number of reasons: - The Google Cloud project may not have enabled the ARCore API. - If the session was created with an API Key, the API Key may be invalid or deleted, or restricted to exclude the app's bundle Id. - If the session was not created with an API Key, a token may not have been provided, or the provided token may be invalid. - The requested operation may not be permitted. <br /> |
| `GARTerrainAnchorStateErrorUnsupportedLocation` | There is no terrain info at this location, such as the center of the ocean. |
| `GARTerrainAnchorStateNone` | Not a valid value for a Terrain anchor operation. |
| `GARTerrainAnchorStateSuccess` | This anchor has been resolved successfully. |
| `GARTerrainAnchorStateTaskInProgress` | This anchor has started the process of resolving, but it is not complete. |