接口 AsyncTask<T>


public interface AsyncTask<T>
异步封装
从以下版本开始:
1.0.0
作者:
mhuang
  • 方法概要

    修饰符和类型
    方法
    说明
    任务执行接口
    void
    任务执行失败的操作
    void
    onSuccess(T result)
    任务成功执行的操作
  • 方法详细资料

    • onSuccess

      void onSuccess(T result)
      任务成功执行的操作
      参数:
      result - 成功的数据
    • onFailed

      void onFailed(Throwable t)
      任务执行失败的操作
      参数:
      t - 失败的异常
    • execute

      T execute()
      任务执行接口
      返回:
      T 执行任务的接口