T - Type of the object that will be passed to onSuccess(T).public interface SuccessListener<T>
| Modifier and Type | Method and Description |
|---|---|
default void |
onError(ErrorInfo error)
Callback to report error status of an asynchronous call to the back end.
|
void |
onSuccess(T result)
Callback to report successful status of an asynchronous call to the back end.
|
void onSuccess(T result)
result - Successful return value.default void onError(ErrorInfo error)
error - Object containing error information.