R
- the type of the resultpublic interface Callback<R>
Modifier and Type | Method and Description |
---|---|
void |
onError(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(Exception e)
e
- the errorCopyright © 2019. All rights reserved.