接口 Callback<T>


public interface Callback<T>
Http callback.
作者:
liaochuntao
  • 方法概要

    修饰符和类型
    方法
    说明
    void
    Callback when the request is cancelled.
    void
    onError​(Throwable throwable)
    An error occurred during the request.
    void
    onReceive​(RestResult<T> result)
    Callback after the request is responded.
  • 方法详细资料

    • onReceive

      void onReceive(RestResult<T> result)
      Callback after the request is responded.
      参数:
      result - RestResult
    • onError

      void onError(Throwable throwable)
      An error occurred during the request.
      参数:
      throwable - Throwable
    • onCancel

      void onCancel()
      Callback when the request is cancelled.