- Type Parameters:
T - The type of the result object.
- Enclosing interface:
- PendingResult<T>
public static interface PendingResult.Callback<T>
The callback interface the API client code needs to implement to handle API results.
-
Method Summary
| Modifier and Type |
Method |
Description |
void |
onFailure(java.lang.Throwable e) |
Called when there was an error performing the request.
|
void |
onResult(T result) |
Called when the request was successfully completed.
|
-
Method Details
-
Called when the request was successfully completed.
- Parameters:
result - The result of the call.
-
void onFailure(java.lang.Throwable e)
Called when there was an error performing the request.
- Parameters:
e - The exception describing the failure.