E - The result type.public abstract class Callback<E>
extends java.lang.Object
As always, keep a strong reference to the callback
in your Activity/Fragment. Don't forget
to call cancel() and revoke the reference to this callback
when your Activity/Fragment gets destroyed.
| Constructor and Description |
|---|
Callback() |
| Modifier and Type | Method and Description |
|---|---|
void |
cancel()
Cancel this callback.
|
abstract void |
success(E result)
Method used to deliver results.
|
public void cancel()
success(Object) won't be called.public abstract void success(E result)
Will be invoked on the main thread.
result - The result.