接口 Callback<T>


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

      所有方法 实例方法 抽象方法 
      修饰符和类型 方法 说明
      void onCancel()
      Callback when the request is cancelled.
      void onError​(java.lang.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​(java.lang.Throwable throwable)
        An error occurred during the request.
        参数:
        throwable - Throwable
      • onCancel

        void onCancel()
        Callback when the request is cancelled.