net.tsz.afinal.http
类 AjaxCallBack<T>

java.lang.Object
  继承者 net.tsz.afinal.http.AjaxCallBack<T>
类型参数:
T - 目前泛型支持 String,File, 以后扩展:JSONObject,Bitmap,byte[],XmlDom

public abstract class AjaxCallBack<T>
extends java.lang.Object

作者:
michael

构造方法摘要
AjaxCallBack()
           
 
方法摘要
 int getRate()
           
 boolean isProgress()
           
 void onFailure(java.lang.Throwable t, java.lang.String strMsg)
           
 void onLoading(long count, long current)
          onLoading方法有效progress
 void onStart()
           
 void onSuccess(T t)
           
 AjaxCallBack<T> progress(boolean progress, int rate)
          设置进度,而且只有设置了这个了以后,onLoading才能有效。
 
从类 java.lang.Object 继承的方法
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

构造方法详细信息

AjaxCallBack

public AjaxCallBack()
方法详细信息

isProgress

public boolean isProgress()

getRate

public int getRate()

progress

public AjaxCallBack<T> progress(boolean progress,
                                int rate)
设置进度,而且只有设置了这个了以后,onLoading才能有效。

参数:
progress - 是否启用进度显示
rate - 进度更新频率

onStart

public void onStart()

onLoading

public void onLoading(long count,
                      long current)
onLoading方法有效progress

参数:
count -
current -

onSuccess

public void onSuccess(T t)

onFailure

public void onFailure(java.lang.Throwable t,
                      java.lang.String strMsg)