Enum ArFutureState
The state of an asynchronous operation. Refer to Google's ARCore developer guide for more information: https://developers.google.com/ar/reference/c/group/ar-future#ar_future_state_pending
Namespace: UnityEngine.XR.ARCore
Assembly: Unity.XR.ARCore.dll
Syntax
public enum ArFutureState
Fields
Name | Description |
---|---|
AR_FUTURE_STATE_CANCELLED | The operation has been cancelled. Any associated callback will never be invoked. |
AR_FUTURE_STATE_DONE | The operation is complete and the result is available. If a callback was associated with this future, it will soon be invoked with the result on the main thread, if it hasn't been invoked already. |
AR_FUTURE_STATE_PENDING | 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. Do not use this to check if the operation can be cancelled as the state can change from another thread between the calls to ArFuture_getState and ArFuture_cancel. |