public final class ApolloPrefetchCallback
extends ApolloPrefetch.Callback
ApolloPrefetch.Callback to be operated on specified Handler| Constructor and Description |
|---|
ApolloPrefetchCallback(ApolloPrefetch.Callback callback,
android.os.Handler handler) |
| Modifier and Type | Method and Description |
|---|---|
void |
onFailure(ApolloException e) |
void |
onHttpError(ApolloHttpException e) |
void |
onNetworkError(ApolloNetworkException e) |
void |
onSuccess() |
static <T> ApolloPrefetchCallback |
wrap(ApolloPrefetch.Callback callback,
android.os.Handler handler)
Wraps
callback to be be operated on specified handler |
public ApolloPrefetchCallback(ApolloPrefetch.Callback callback,
android.os.Handler handler)
callback - original callback to delegates callshandler - the callback will be run on the thread to which this handler is attachedpublic static <T> ApolloPrefetchCallback wrap(ApolloPrefetch.Callback callback, android.os.Handler handler)
callback to be be operated on specified handlercallback - original callback to delegates callshandler - the callback will be run on the thread to which this handler is attachedpublic void onSuccess()
public void onFailure(ApolloException e)
public void onHttpError(ApolloHttpException e)
public void onNetworkError(ApolloNetworkException e)