GARCloudAnchorState

Summary

Enumerations

GARCloudAnchorState{
  GARCloudAnchorStateNone = 0,
  GARCloudAnchorStateTaskInProgress = 1,
  GARCloudAnchorStateSuccess = 2,
  GARCloudAnchorStateErrorInternal = -1,
  GARCloudAnchorStateErrorNotAuthorized = -2,
  GARCloudAnchorStateErrorServiceUnavailable = -3,
  GARCloudAnchorStateErrorResourceExhausted = -4,
  GARCloudAnchorStateErrorHostingDatasetProcessingFailed = -5,
  GARCloudAnchorStateErrorCloudIdNotFound = -6,
  GARCloudAnchorStateErrorResolvingLocalizationNoMatch = -7,
  GARCloudAnchorStateErrorResolvingSdkVersionTooOld = -8,
  GARCloudAnchorStateErrorResolvingSdkVersionTooNew = -9,
  GARCloudAnchorStateErrorHostingServiceUnavailable = -10
}
enum
Result status of a Cloud Anchor hosting or resolving operation.

Enumerations

GARCloudAnchorState

 GARCloudAnchorState

Result status of a Cloud Anchor hosting or resolving operation.

Properties
GARCloudAnchorStateErrorCloudIdNotFound

Resolving failed, because the ARCore Cloud Anchor service could not find the provided cloud anchor ID.

GARCloudAnchorStateErrorHostingDatasetProcessingFailed

Hosting failed, because the server could not successfully process the dataset for the given anchor.

The developer should try again after the device has gathered more data from the environment.

GARCloudAnchorStateErrorHostingServiceUnavailable

The ARCore Cloud Anchor service was unreachable.

This can happen because of a number of reasons. For example, the device is in airplane mode or has no working network connection. A request sent to the server could have timed out with no response, there could be a bad network connection, DNS unavailability, firewall issues, or anything that could affect the device's ability to connect to the ARCore Cloud Anchor service.

GARCloudAnchorStateErrorInternal

Internal error.

No recommended mitigation.

GARCloudAnchorStateErrorNotAuthorized

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.

GARCloudAnchorStateErrorResolvingLocalizationNoMatch

The server could not match the visual features provided by ARCore against the localization dataset of the requested cloud anchor ID.

This means that the anchor being requested was likely not created in the user's surroundings.

Deprecated. This error will no longer occur in ARCore SDK 1.12 or later.

GARCloudAnchorStateErrorResolvingSdkVersionTooNew

The anchor could not be resolved because the SDK used to host the anchor was older than and incompatible with this one.

GARCloudAnchorStateErrorResolvingSdkVersionTooOld

The anchor could not be resolved because the SDK used to host the anchor was newer than and incompatible with this one.

GARCloudAnchorStateErrorResourceExhausted

The application has exhausted the request quota allotted to its Google Cloud project.

The developer should request additional quota for the project from the Google Developers Console.

GARCloudAnchorStateErrorServiceUnavailable

The ARCore Cloud Anchor service was unreachable.

This can happen because of a number of reasons. A request sent to the server could have timed out with no response, there could be a bad network connection, DNS unavailability, firewall issues, or anything that could affect the device's ability to connect to the ARCore Cloud Anchor service.

Deprecated. This error will no longer occur in ARCore SDK 1.12 or later. For hosted anchors, the new GARCloudAnchorStateErrorHostingServiceUnavailable state will be used instead.

GARCloudAnchorStateNone

Not a valid value for a Cloud Anchor hosting or resolving operation.

GARCloudAnchorStateSuccess

This anchor has been hosted or has resolved successfully.

The GARAnchor.cloudIdentifier property should now be valid.

GARCloudAnchorStateTaskInProgress

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