GARRooftopAnchorState

Summary

Enumerations

GARRooftopAnchorState{
  GARRooftopAnchorStateNone = 0,
  GARRooftopAnchorStateSuccess = 1,
  GARRooftopAnchorStateErrorInternal = -1,
  GARRooftopAnchorStateErrorNotAuthorized = -2,
  GARRooftopAnchorStateErrorUnsupportedLocation = -3
}
enum

Enumerations

GARRooftopAnchorState

 GARRooftopAnchorState

Describes the state of an asynchronous operation launched by createAnchorWithCoordinate:altitudeAboveRooftop:eastUpSouthQAnchor:completionHandler:error: (GARSession(Geospatial)).

Obtained by 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.

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 GARGeospatialModeDisabled being configured on the GARSession.

All Rooftop anchors transition to GARRooftopAnchorStateNone when GARGeospatialModeDisabled becomes active on the GARSession.

GARRooftopAnchorStateSuccess

This anchor has been resolved successfully.