Google is committed to advancing racial equity for Black communities. See how.

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

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.

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.

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.

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.

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.

public static final Anchor.CloudAnchorState ERROR_RESOLVING_LOCALIZATION_NO_MATCH

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

ERROR_RESOLVING_LOCALIZATION_NO_MATCH

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.

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.

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.

public static final Anchor.CloudAnchorState ERROR_SERVICE_UNAVAILABLE

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

ERROR_SERVICE_UNAVAILABLE

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).

public static final Anchor.CloudAnchorState SUCCESS

A hosting/resolving task for this anchor completed successfully.

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

public static Anchor.CloudAnchorState forNumber (int nativeCode)

Parameters
nativeCode

public boolean isError ()

public static Anchor.CloudAnchorState valueOf (String name)

Parameters
name

public static final CloudAnchorState[] values ()