The operation has been cancelled. Any associated callback will never be invoked.
public
static
final
FutureState
DONE
DONE
publicstaticfinalFutureStateDONE
The operation is complete and the result is available. If a callback was associated, it will
soon be invoked with the result on the main thread, if it hasn't been invoked already.
public
static
final
FutureState
PENDING
PENDING
publicstaticfinalFutureStatePENDING
The operation is still pending. The result of the operation isn't available yet, and any
associated callback hasn't yet been dispatched or invoked.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-10-31 UTC."],[[["\u003cp\u003e\u003ccode\u003eFutureState\u003c/code\u003e is an enum representing the state of an asynchronous operation in ARCore.\u003c/p\u003e\n"],["\u003cp\u003eIt has three possible states: \u003ccode\u003ePENDING\u003c/code\u003e, \u003ccode\u003eDONE\u003c/code\u003e, and \u003ccode\u003eCANCELLED\u003c/code\u003e, indicating the operation's progress.\u003c/p\u003e\n"],["\u003cp\u003eWhen the state is \u003ccode\u003eDONE\u003c/code\u003e, the result is available and any associated callback will be invoked.\u003c/p\u003e\n"],["\u003cp\u003eWhile \u003ccode\u003ePENDING\u003c/code\u003e signifies the operation is ongoing, it shouldn't be solely relied upon for cancellation checks due to potential race conditions.\u003c/p\u003e\n"]]],[],null,["# FutureState\n\n`\npublic final enum\n`**FutureState**`\n` \nThe state of an asynchronous operation. \n\nInherited Methods\n-----------------\n\nFrom `class\njava.lang.Enum` \n\n|--------------------------------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ` final `[Object](https://developer.android.com/reference/java/lang/Object)` ` | clone`()` |\n| ` final int ` | compareTo`(`[FutureState](/ar/reference/java/com/google/ar/core/FutureState)` arg0)` |\n| ` int ` | compareTo`(`[Object](https://developer.android.com/reference/java/lang/Object)` arg0)` |\n| ` final Optional\u003cEnumDesc\u003c`[FutureState](/ar/reference/java/com/google/ar/core/FutureState)`\u003e\u003e ` | describeConstable`()` |\n| ` final boolean ` | equals`(`[Object](https://developer.android.com/reference/java/lang/Object)` arg0)` |\n| ` final void ` | finalize`()` |\n| ` final `[Class](https://developer.android.com/reference/java/lang/Class)`\u003c`[FutureState](/ar/reference/java/com/google/ar/core/FutureState)`\u003e ` | getDeclaringClass`()` |\n| ` final int ` | hashCode`()` |\n| ` final `[String](https://developer.android.com/reference/java/lang/String)` ` | name`()` |\n| ` final int ` | ordinal`()` |\n| ` `[String](https://developer.android.com/reference/java/lang/String)` ` | toString`()` |\n| ` static \u003cT extends `[Enum](https://developer.android.com/reference/java/lang/Enum)`\u003cT\u003e\u003e T ` | valueOf`(`[Class](https://developer.android.com/reference/java/lang/Class)`\u003cT\u003e arg0, `[String](https://developer.android.com/reference/java/lang/String)` arg1)` |\n\nFrom `class\njava.lang.Object` \n\n|---------------------------------------------------------------------------------|-------------------------------------------------------------------------------------|\n| ` `[Object](https://developer.android.com/reference/java/lang/Object)` ` | clone`()` |\n| ` boolean ` | equals`(`[Object](https://developer.android.com/reference/java/lang/Object)` arg0)` |\n| ` void ` | finalize`()` |\n| ` final `[Class](https://developer.android.com/reference/java/lang/Class)`\u003c?\u003e ` | getClass`()` |\n| ` int ` | hashCode`()` |\n| ` final void ` | notify`()` |\n| ` final void ` | notifyAll`()` |\n| ` `[String](https://developer.android.com/reference/java/lang/String)` ` | toString`()` |\n| ` final void ` | wait`(long arg0, int arg1)` |\n| ` final void ` | wait`(long arg0)` |\n| ` final void ` | wait`()` |\n\nFrom `interface\njava.lang.constant.Constable` \n\n|-----------------------------------------------|-----------------------|\n| ` abstract Optional\u003c? extends ConstantDesc\u003e ` | describeConstable`()` |\n\nFrom `interface\njava.lang.Comparable` \n\n|------------------|--------------------------------------------------------------------------------------|\n| ` abstract int ` | compareTo`(`[FutureState](/ar/reference/java/com/google/ar/core/FutureState)` arg0)` |\n\nEnum Values\n-----------\n\n#### public\nstatic\nfinal\nFutureState\nCANCELLED\n\n### CANCELLED\n\n```java\npublic static final FutureState CANCELLED\n``` \nThe operation has been cancelled. Any associated callback will never be invoked.\n\n#### public\nstatic\nfinal\nFutureState\nDONE\n\n### DONE\n\n```java\npublic static final FutureState DONE\n``` \nThe operation is complete and the result is available. If a callback was associated, it will\nsoon be invoked with the result on the main thread, if it hasn't been invoked already.\n\n#### public\nstatic\nfinal\nFutureState\nPENDING\n\n### PENDING\n\n```java\npublic static final FutureState PENDING\n``` \nThe operation is still pending. The result of the operation isn't available yet, and any\nassociated callback hasn't yet been dispatched or invoked.\n\nDo not use this to check if the operation can be cancelled as the state can change from\nanother thread between the call to [VpsAvailabilityFuture.getState()](/ar/reference/java/com/google/ar/core/VpsAvailabilityFuture#getState()) and [VpsAvailabilityFuture.cancel()](/ar/reference/java/com/google/ar/core/VpsAvailabilityFuture#cancel())"]]