public abstract static class ApolloCall.Callback<T>
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.
|
void |
onParseError(ApolloParseException e)
Gets called when the network request succeeds but there was an error parsing the response.
|
abstract void |
onResponse(com.apollographql.apollo.api.Response<T> response)
Gets called when GraphQl response is received and parsed successfully.
|
public abstract void onResponse(@Nonnull
com.apollographql.apollo.api.Response<T> response)
response - the GraphQl responsepublic abstract void onFailure(@Nonnull
ApolloException e)
public void onHttpError(@Nonnull
ApolloHttpException e)
public void onNetworkError(@Nonnull
ApolloNetworkException e)
public void onParseError(@Nonnull
ApolloParseException e)
public void onCanceledError(@Nonnull
ApolloCanceledException e)
ApolloCall has been canceled.