# GARRooftopAnchorState

## Summary

| ### Enumerations ||
|---|---|
| `https://developers.google.com/ar/reference/ios/group/GARRooftopAnchorState#garrooftopanchorstate{ https://developers.google.com/ar/reference/ios/group/GARRooftopAnchorState#garrooftopanchorstatenone = 0, https://developers.google.com/ar/reference/ios/group/GARRooftopAnchorState#garrooftopanchorstatesuccess = 1, https://developers.google.com/ar/reference/ios/group/GARRooftopAnchorState#garrooftopanchorstateerrorinternal = -1, https://developers.google.com/ar/reference/ios/group/GARRooftopAnchorState#garrooftopanchorstateerrornotauthorized = -2, https://developers.google.com/ar/reference/ios/group/GARRooftopAnchorState#garrooftopanchorstateerrorunsupportedlocation = -3 }` | enumDescribes the state of an asynchronous operation launched by `https://developers.google.com/ar/reference/ios/category/GARSession(Geospatial)#createanchorwithcoordinate:altitudeaboverooftop:eastupsouthqanchor:completionhandler:error:`. |

## Enumerations

### GARRooftopAnchorState

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

Obtained by `https://developers.google.com/ar/reference/ios/interface/GARCreateAnchorOnRooftopFuture#resultrooftopanchorstate`.

| Properties ||
|---|---|
| `GARRooftopAnchorStateErrorInternal` | Internal error. No recommended mitigation. |
| `GARRooftopAnchorStateErrorNotAuthorized` | 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 /> |
| `GARRooftopAnchorStateErrorUnsupportedLocation` | There is no rooftop or terrain info at this location, such as the center of the ocean. |
| `GARRooftopAnchorStateNone` | This anchor is not a Rooftop anchor, or the Rooftop anchor has become invalid due to `https://developers.google.com/ar/reference/ios/group/GARGeospatialMode#gargeospatialmodedisabled` being configured on the `https://developers.google.com/ar/reference/ios/interface/GARSession#interface_g_a_r_session`. All Rooftop anchors transition to `https://developers.google.com/ar/reference/ios/group/GARRooftopAnchorState#garrooftopanchorstatenone` when `https://developers.google.com/ar/reference/ios/group/GARGeospatialMode#gargeospatialmodedisabled` becomes active on the `https://developers.google.com/ar/reference/ios/interface/GARSession#interface_g_a_r_session`. |
| `GARRooftopAnchorStateSuccess` | This anchor has been resolved successfully. |