Interface PendingResult.Callback<T>

  • Type Parameters:
    T - The type of the result object.
    Enclosing interface:
    PendingResult<T>

    public static interface PendingResult.Callback<T>
    The callback interface the API client code needs to implement to handle API results.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void onFailure​(java.lang.Throwable e)
      Called when there was an error performing the request.
      void onResult​(T result)
      Called when the request was successfully completed.
    • Method Detail

      • onResult

        void onResult​(T result)
        Called when the request was successfully completed.
        Parameters:
        result - The result of the call.
      • onFailure

        void onFailure​(java.lang.Throwable e)
        Called when there was an error performing the request.
        Parameters:
        e - The exception describing the failure.