接口 PendingResult.Callback<T>

类型参数:
T - The type of the result object.
封闭接口:
PendingResult<T>

public static interface PendingResult.Callback<T>
The callback interface the API client code needs to implement to handle API results.
  • 方法概要

    修饰符和类型 方法 说明
    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.
  • 方法详细资料

    • onResult

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

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