Interface ApolloInterceptor.CallBack

    • Method Detail

      • onResponse

        void onResponse​(@NotNull
                        ApolloInterceptor.InterceptorResponse response)
        Gets called when the interceptor returns a response after successfully performing operations on the request/response. May be called multiple times.
        Parameters:
        response - The response returned by the interceptor.
      • onFetch

        void onFetch​(ApolloInterceptor.FetchSourceType sourceType)
        Called when interceptor starts fetching response from source type
        Parameters:
        sourceType - type of source been used to fetch response from
      • onFailure

        void onFailure​(@NotNull
                       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. Will be called at most once.