public static interface ApolloInterceptor.CallBack
ApolloInterceptor| Modifier and Type | Method and Description |
|---|---|
void |
onCompleted()
Called after the last call to
onResponse(com.apollographql.apollo.interceptor.ApolloInterceptor.InterceptorResponse). |
void |
onFailure(com.apollographql.apollo.exception.ApolloException e)
Gets called when an unexpected exception occurs while performing operations on the request or processing the
response returned by the next set of interceptors.
|
void |
onFetch(ApolloInterceptor.FetchSourceType sourceType)
Called when interceptor starts fetching response from source type
|
void |
onResponse(ApolloInterceptor.InterceptorResponse response)
Gets called when the interceptor returns a response after successfully performing operations on the
request/response.
|
void onResponse(@NotNull
ApolloInterceptor.InterceptorResponse response)
response - The response returned by the interceptor.void onFetch(ApolloInterceptor.FetchSourceType sourceType)
sourceType - type of source been used to fetch response fromvoid onFailure(@NotNull
com.apollographql.apollo.exception.ApolloException e)
void onCompleted()
onResponse(com.apollographql.apollo.interceptor.ApolloInterceptor.InterceptorResponse). Do not call after onFailure(ApolloException).