public final class AppSyncPrefetchCallback
extends AppSyncPrefetch.Callback
AppSyncPrefetch.Callback
to be operated on specified Handler
Constructor and Description |
---|
AppSyncPrefetchCallback(AppSyncPrefetch.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> AppSyncPrefetchCallback |
wrap(AppSyncPrefetch.Callback callback,
android.os.Handler handler)
Wraps
callback to be be operated on specified handler |
public AppSyncPrefetchCallback(AppSyncPrefetch.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> AppSyncPrefetchCallback wrap(AppSyncPrefetch.Callback callback, android.os.Handler handler)
callback
to be be operated on specified handler
callback
- 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)