java.lang.Object | ||
↳ | com.google.android.gms.common.api.PendingResult<R extends com.google.android.gms.common.api.Result> | |
↳ | com.google.android.gms.common.api.OptionalPendingResult<R extends com.google.android.gms.common.api.Result> |
OptionalPendingResults are PendingResult
s with additional support for non-blocking
accessors. The result of an OptionalPendingResult may be available immediately. If the result is
available isDone()
will return true.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Returns the
Result immediately if it is available. | |||||||||||
Returns true if the result is available immediately, false otherwise.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() |
Returns the Result
immediately if it is available. If the result is not available,
an exception will be thrown. This method should only be called after checking that
isDone()
returns true.
After the result has been retrieved using get()
, await()
, or has been delivered
to the result callback, it is an error to attempt to retrieve the result again. It is the
responsibility of the caller or callback receiver to release any resources associated with
the returned result. Some result types may implement Releasable
, in which case
release()
should be used to free the associated resources.
Returns | |
---|---|
R |
Throws | |
---|---|
IllegalStateException |
when the result is not isDone() .
|
Returns true if the result is available immediately, false otherwise.
Returns | |
---|---|
boolean |