public static final enum
Anchor.CloudAnchorState
Result of a Cloud Anchor hosting or resolving operation.
Public Methods
static
Anchor.CloudAnchorState
|
forNumber(int nativeCode)
|
boolean
|
isError()
|
static
Anchor.CloudAnchorState
|
|
final
static
CloudAnchorState[]
|
values()
|
Inherited Methods
class
java.lang.Enum
final
Object
|
clone()
|
final
int
|
compareTo(Anchor.CloudAnchorState arg0)
|
int
|
compareTo(Object arg0)
|
final
Optional<EnumDesc<E>>
|
describeConstable()
|
final
boolean
|
equals(Object arg0)
|
final
void
|
finalize()
|
final
Class<E>
|
getDeclaringClass()
|
final
int
|
hashCode()
|
final
String
|
name()
|
final
int
|
ordinal()
|
String
|
toString()
|
static
<T extends Enum<T>>
T
|
class
java.lang.Object
interface
java.lang.constant.Constable
abstract
Optional<? extends ConstantDesc>
|
describeConstable()
|
interface
java.lang.Comparable
abstract
int
|
compareTo(Anchor.CloudAnchorState arg0)
|
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 API 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
Not a valid value for a Cloud Anchor hosting or resolving operation.
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
This field was deprecated.
For async Cloud Anchor tasks, the task is in progress when Future.getState()
returns FutureState.PENDING
.
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 |
|
isError
public boolean isError()
valueOf
public static Anchor.CloudAnchorState valueOf( String name )
Details | |||
---|---|---|---|
Parameters |
|
values
public static final CloudAnchorState[] values()