T
- The type of the returning data.public static interface D1Task.Callback<T>
Modifier and Type | Method and Description |
---|---|
void |
onError(D1Exception exception)
The request failed while executing.
|
void |
onSuccess(T data)
The request has been successfully executed.
|
void onSuccess(T data)
data
- Result value of the request.
Check the actual using API to know if this argument is nullable or not; usually it is non-null.
When the type T is Void
, the returned argument is always null
.void onError(@NonNull D1Exception exception)
exception
- The cause of failure.