ARCore is back at Google I/O on May 10! Register now.

VpsAvailabilityFuture

Stay organized with collections Save and categorize content based on your preferences.
public class VpsAvailabilityFuture

Handle to an async operation launched by Session.checkVpsAvailabilityAsync(double, double, Consumer).

Public Methods

boolean
cancel()
Tries to cancel the execution of this operation.
VpsAvailability
getResult()
Returns the result of the async operation.
FutureState
getState()
Get the current Future state.

Inherited Methods

Public Methods

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.

getResult

public VpsAvailability getResult()

Returns the result of the async operation. The returned result is only valid when getState() returns FutureState.DONE.

getState

public FutureState getState()

Get the current Future state.