Page Summary
-
HostCloudAnchorFuture is a handle to an async operation launched by Session.hostCloudAnchorAsync.
-
You can cancel the hosting operation using the cancel() method.
-
The Cloud Anchor ID of the hosted anchor can be retrieved using getResultCloudAnchorId() when the operation is successful.
-
The result status of the hosting operation can be obtained using getResultCloudAnchorState() when the operation is done.
-
The current state of the future can be checked using the getState() method.
public class HostCloudAnchorFuture
Handle to an async operation launched by Session.hostCloudAnchorAsync(Anchor, int, BiConsumer)
. See the Cloud Anchors
developer guide
for more information.
Public Methods
boolean
|
cancel
()
Tries to cancel the execution of this operation.
|
String
|
getResultCloudAnchorId
()
Returns the Cloud Anchor ID of the hosted anchor.
|
Anchor.CloudAnchorState
|
getResultCloudAnchorState
()
Returns the result status of the hosting operation, when
Future.getState()
returns FutureState.DONE
. |
FutureState
|
getState
()
Get the current state of the future.
|
Inherited Methods
Public Methods
public boolean cancel ()
cancel
public boolean cancel ()
Tries to cancel the execution of this operation. If the operation was cancelled by this
invocation, this method returns true
and the associated callback (if any) will never be
invoked.
public String getResultCloudAnchorId ()
getResultCloudAnchorId
public String getResultCloudAnchorId ()
Returns the Cloud Anchor ID of the hosted anchor. The returned result is only valid when Future.getState()
returns FutureState.DONE
and getResultCloudAnchorState()
returns Anchor.CloudAnchorState.SUCCESS
.
public Anchor.CloudAnchorState getResultCloudAnchorState ()
getResultCloudAnchorState
public Anchor . CloudAnchorState getResultCloudAnchorState ()
Returns the result status of the hosting operation, when Future.getState()
returns FutureState.DONE
.
public FutureState getState ()
getState
public FutureState getState ()
Get the current state of the future.

