intercept

abstract fun <D : Operation.Data?> intercept(@NotNull request: ApolloRequest<D>, @NotNull chain: ApolloInterceptorChain, @NotNull callback: ApolloCallback<D>)

Intercepts the outgoing request and performs non-blocking operations on the request or the response returned by the next set of interceptors in the chain.

Parameters

request

outgoing request object.

chain

the ApolloInterceptorChain object containing the next set of interceptors.

callback

the Callback which will handle the interceptor's response or failure exception.