java.lang.Object | |
↳ | com.google.android.gms.common.api.PendingResults |
Provides factory methods for PendingResult
instances, primarily for use in tests.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Returns a
PendingResult that has been canceled. | |||||||||||
Returns a
PendingResult that has been canceled. | |||||||||||
Returns a
PendingResult with the specified result. | |||||||||||
Returns a
PendingResult with the specified Status . |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Returns a PendingResult
that has been canceled.
Returns | |
---|---|
PendingResult<Status> |
Returns a PendingResult
that has been canceled.
Parameters | |
---|---|
result |
R :
The canceled result. Must have a status code of
CANCELED .
|
Returns | |
---|---|
PendingResult<R> |
Returns a PendingResult
with the specified result.
If setResultCallback(ResultCallback super R>)
is called on the returned PendingResult then
onResult(R)
will immediately be called on the main thread. If
await()
is called it will immediate return result
.
Calling cancel()
on the returned PendingResult is not supported.
Parameters | |
---|---|
result |
R
|
Returns | |
---|---|
OptionalPendingResult<R> |
Returns a PendingResult
with the specified Status
.
If setResultCallback(ResultCallback super R>)
is called on the returned PendingResult then
onResult(R)
will immediately be called on the main thread. If
await()
is called it will immediate return result
.
Parameters | |
---|---|
result |
Status
|
Returns | |
---|---|
PendingResult<Status> |