ARCore is back at Google I/O on May 10! Register now.
Stay organized with collections Save and categorize content based on your preferences.

GARTerrainAnchorState

Summary

Enumerations

GARTerrainAnchorState{
  GARTerrainAnchorStateNone = 0,
  GARTerrainAnchorStateTaskInProgress = 1,
  GARTerrainAnchorStateSuccess = 2,
  GARTerrainAnchorStateErrorInternal = -1,
  GARTerrainAnchorStateErrorNotAuthorized = -2,
  GARTerrainAnchorStateErrorUnsupportedLocation = -3
}
enum
Possible values of GARAnchor.terrainState.

Enumerations

GARTerrainAnchorState

 GARTerrainAnchorState

Possible values of GARAnchor.terrainState.

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

This anchor is not a Terrain anchor, or the Terrain anchor has become invalid due to GARGeospatialModeDisabled being configured on the GARSession.

All Terrain anchors transition to GARTerrainAnchorStateNone when GARGeospatialModeDisabled becomes active on the GARSession.

GARTerrainAnchorStateSuccess

This anchor has been resolved successfully.

GARTerrainAnchorStateTaskInProgress

This anchor has started the process of resolving, but it is not complete.