Page Summary
-
ResolveAnchorOnRooftopFuture handles async operations for resolving rooftop anchors initiated by Earth.resolveAnchorOnRooftopAsync.
-
It provides methods to check the state of the operation, cancel it, and retrieve the resulting anchor and its state.
-
The resolved anchor is available when the future's state is DONE and the rooftop anchor state is SUCCESS.
-
The state of the rooftop anchor resolution can be retrieved when the future's state is DONE.
public class ResolveAnchorOnRooftopFuture
Handle to an async operation launched by Earth.resolveAnchorOnRooftopAsync(double, double, double, float, float, float, float, BiConsumer)
. See the Rooftop
anchors developer guide
for more information.
Public Methods
boolean
|
cancel
()
Tries to cancel the execution of this operation.
|
Anchor
|
getResultAnchor
()
Returns the resolved anchor, when
Future.getState()
returns FutureState.DONE
and getResultRooftopAnchorState()
returns Anchor.RooftopAnchorState.SUCCESS
. |
Anchor.RooftopAnchorState
|
getResultRooftopAnchorState
()
Returns the result status of the resolving 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 Anchor getResultAnchor ()
getResultAnchor
public Anchor getResultAnchor ()
Returns the resolved anchor, when Future.getState()
returns FutureState.DONE
and getResultRooftopAnchorState()
returns Anchor.RooftopAnchorState.SUCCESS
.
Otherwise, returns null
.
public Anchor.RooftopAnchorState getResultRooftopAnchorState ()
getResultRooftopAnchorState
public Anchor . RooftopAnchorState getResultRooftopAnchorState ()
Returns the result status of the resolving operation, when Future.getState()
returns FutureState.DONE
.
public FutureState getState ()
getState
public FutureState getState ()
Get the current state of the future.

