public interface AsyncCallback<T>
Modifier and Type | Method and Description |
---|---|
void |
onFailure(int code,
java.lang.String msg)
This is called when the async task is executed failed.
|
void |
onSuccess(T result)
This is called when the async task is executed successfully.
|
void onSuccess(T result)
result
- The result of the task execution.void onFailure(int code, java.lang.String msg)
code
- The error code of the task execution.msg
- The error message of the task execution.