R - the type of the resultpublic interface Callback<R>
| Modifier and Type | Method and Description |
|---|---|
void |
onError(java.lang.Exception e)
If the underlying operation fails this method will be called with the exception.
|
void |
onResult(R result)
If the underlying operation succeeds this method will be called with the result.
|
void onResult(R result)
result - the resultvoid onError(java.lang.Exception e)
e - the error