Anchor.CloudAnchorState

public static final enum Anchor.CloudAnchorState

Enumeration of all Cloud Anchor States

Public Methods

static Anchor.CloudAnchorState
forNumber(int nativeCode)
boolean
static Anchor.CloudAnchorState
valueOf(String name)
final static CloudAnchorState[]
values()

Inherited Methods

Enum Values

ERROR_CLOUD_ID_NOT_FOUND

public static final Anchor.CloudAnchorState ERROR_CLOUD_ID_NOT_FOUND

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

ERROR_HOSTING_DATASET_PROCESSING_FAILED

public static final Anchor.CloudAnchorState ERROR_HOSTING_DATASET_PROCESSING_FAILED

Hosting failed because the server could not successfully process the dataset for the given anchor. Try again after the device has gathered more data from the environment.

ERROR_HOSTING_SERVICE_UNAVAILABLE

public static final Anchor.CloudAnchorState ERROR_HOSTING_SERVICE_UNAVAILABLE

The ARCore Cloud Anchor service was unreachable. This can happen for a number of reasons. The device might be in airplane mode or may not have a working internet connection. The request sent to the server might have timed out with no response, or there might be a bad network connection, DNS unavailability, firewall issues, or anything else that might affect the device's ability to connect to the ARCore Cloud Anchor service.

ERROR_INTERNAL

public static final Anchor.CloudAnchorState ERROR_INTERNAL

A hosting/resolving task for this anchor finished with an internal error. The app should not attempt to recover from this error.

ERROR_NOT_AUTHORIZED

public static final Anchor.CloudAnchorState ERROR_NOT_AUTHORIZED

The app cannot communicate with the ARCore Cloud Anchor service. When using API key authentication, this will happen if the API key in the manifest is invalid, unauthorized or missing.

ERROR_RESOLVING_LOCALIZATION_NO_MATCH

public static final Anchor.CloudAnchorState ERROR_RESOLVING_LOCALIZATION_NO_MATCH

This field was deprecated.
ERROR_RESOLVING_LOCALIZATION_NO_MATCH is deprecated in ARCore SDK 1.12. See release notes to learn more.

ERROR_RESOLVING_LOCALIZATION_NO_MATCH

ERROR_RESOLVING_SDK_VERSION_TOO_NEW

public static final Anchor.CloudAnchorState ERROR_RESOLVING_SDK_VERSION_TOO_NEW

The Cloud Anchor could not be resolved because the SDK version used to resolve the anchor is newer than and incompatible with the version used to host it.

ERROR_RESOLVING_SDK_VERSION_TOO_OLD

public static final Anchor.CloudAnchorState ERROR_RESOLVING_SDK_VERSION_TOO_OLD

The Cloud Anchor could not be resolved because the SDK version used to resolve the anchor is older than and incompatible with the version used to host it.

ERROR_RESOURCE_EXHAUSTED

public static final Anchor.CloudAnchorState ERROR_RESOURCE_EXHAUSTED

The application has exhausted the request quota allotted to the given Google Cloud project. You should request additional quota for the ARCore Cloud Anchor service for your project from the Google Developers Console.

ERROR_SERVICE_UNAVAILABLE

public static final Anchor.CloudAnchorState ERROR_SERVICE_UNAVAILABLE

This field was deprecated.
ERROR_SERVICE_UNAVAILABLE is deprecated in ARCore SDK 1.12. See release notes to learn more.

ERROR_SERVICE_UNAVAILABLE

NONE

public static final Anchor.CloudAnchorState NONE

The anchor is purely local. It has never been hosted using Session.hostCloudAnchor(Anchor), and has not been resolved using Session.resolveCloudAnchor(String).

SUCCESS

public static final Anchor.CloudAnchorState SUCCESS

A hosting/resolving task for this anchor completed successfully.

TASK_IN_PROGRESS

public static final Anchor.CloudAnchorState TASK_IN_PROGRESS

A hosting/resolving task for the anchor is in progress. Once the task completes in the background, the anchor will get a new cloud state after the next Session.update() call.

Public Methods

forNumber

public static Anchor.CloudAnchorState forNumber(
  int nativeCode
)

Details
Parameters
nativeCode

isError

public boolean isError()

valueOf

public static Anchor.CloudAnchorState valueOf(
  String name
)

Details
Parameters
name

values

public static final CloudAnchorState[] values()