public static interface ApolloInterceptor.CallBack
ApolloInterceptor
Modifier and Type | Method and Description |
---|---|
void |
onFailure(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 |
onResponse(ApolloInterceptor.InterceptorResponse response)
Gets called when the interceptor returns a response after successfully performing operations on the
request/response.
|
void onResponse(@Nonnull ApolloInterceptor.InterceptorResponse response)
response
- The response returned by the interceptor.void onFailure(@Nonnull ApolloException e)