| java.lang.Object | |
| ↳ | com.google.android.gms.tasks.Tasks |
Task utility methods.
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Blocks until the specified Task is complete.
| |||||||||||
Blocks until the specified Task is complete.
| |||||||||||
Returns a Task that will be completed with the result of the specified Callable.
| |||||||||||
Returns a Task that will be completed with the result of the specified Callable.
| |||||||||||
Returns a completed Task with the specified exception.
| |||||||||||
Returns a completed Task with the specified result.
| |||||||||||
Returns a Task that completes successfully when all of the specified
Tasks complete successfully.
| |||||||||||
Returns a Task that completes successfully when all of the specified
Tasks complete successfully.
| |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
Blocks until the specified Task is complete.
| ExecutionException | if the Task fails |
|---|---|
| InterruptedException | if an interrupt occurs while waiting for the Task to complete |
| TimeoutException | if the specified timeout is reached before the Task completes |
Blocks until the specified Task is complete.
| ExecutionException | if the Task fails |
|---|---|
| InterruptedException | if an interrupt occurs while waiting for the Task to complete |
Returns a Task that will be completed with the result of the specified Callable.
The Callable will be called on the main application thread.
Returns a Task that will be completed with the result of the specified Callable.
| executor | the Executor to use to call the Callable |
|---|
Returns a completed Task with the specified exception.
Returns a completed Task with the specified result.
Returns a Task that completes successfully when all of the specified Tasks complete successfully. Does not accept nulls.
| NullPointerException | if any of the provided Tasks are null |
|---|
Returns a Task that completes successfully when all of the specified Tasks complete successfully. Does not accept nulls.
| NullPointerException | if any of the provided Tasks are null |
|---|