public abstract static class ApolloPrefetch.Callback
extends java.lang.Object
Constructor and Description |
---|
Callback() |
Modifier and Type | Method and Description |
---|---|
void |
onCanceledError(ApolloCanceledException e)
Gets called when
ApolloCall has been canceled. |
abstract void |
onFailure(ApolloException e)
Gets called when an unexpected exception occurs while creating the request or processing the response.
|
void |
onHttpError(ApolloHttpException e)
Gets called when an http request error takes place.
|
void |
onNetworkError(ApolloNetworkException e)
Gets called when an http request error takes place due to network failures, timeouts etc.
|
abstract void |
onSuccess()
Gets called when the request has succeeded.
|
public abstract void onSuccess()
public abstract void onFailure(@Nonnull ApolloException e)
public void onHttpError(@Nonnull ApolloHttpException e)
public void onNetworkError(@Nonnull ApolloNetworkException e)
public void onCanceledError(@Nonnull ApolloCanceledException e)
ApolloCall
has been canceled.