com.google.android.gms.common.api.PendingResult<R extends com.google.android.gms.common.api.Result, C> |
Represents a pending result from calling an API method in Google Play services. The final result
object from a PendingResult
Some method calls may hold resources that need to be closed (e.g. any
await()
, or await(long, TimeUnit)
, or
addResultCallback(C)
.
DataBuffer
in the
result). Resources can be released individually, or all resources that are part of the final
result can be released by calling release()
. Note it is safe to release resources
before the final results.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Add your callback here if you want the result to be delivered via a callback when the
result is ready.
| |||||||||||
Blocks until the task is completed.
| |||||||||||
Blocks until the task is completed or has timed out waiting for the result.
| |||||||||||
Releases any open resources.
|
[Expand]
Inherited Methods | |||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Add your callback here if you want the result to be delivered via a callback when the result is ready.
Blocks until the task is completed. This is not allowed on the UI thread. The returned
result object can have an additional failure mode of INTERRUPTED
.
Blocks until the task is completed or has timed out waiting for the result. This is not
allowed on the UI thread. The returned result object can have an additional failure mode of
INTERRUPTED
.
Releases any open resources. This is safe to call before results are ready.