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