GARTerrainAnchorState

Summary

Enumerations

GARTerrainAnchorState{
  GARTerrainAnchorStateNone = 0,
  GARTerrainAnchorStateTaskInProgress = 1,
  GARTerrainAnchorStateSuccess = 2,
  GARTerrainAnchorStateErrorInternal = -1,
  GARTerrainAnchorStateErrorNotAuthorized = -2,
  GARTerrainAnchorStateErrorUnsupportedLocation = -3
}
enum

Enumerations

GARTerrainAnchorState

 GARTerrainAnchorState

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

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.

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.