android-async-http cancelRequests

github地址:https://github.com/loopj/android-async-http

使用上:官方建议使用一个静态的AsyncHttpClient:

1、AsyncHttpClient 中:

1 cancelRequests(Context context, boolean mayInterruptIfRunning);
1 cancelAllRequests(boolean mayInterruptIfRunning);

2、RequestHandle 中:

1 cancel(boolean mayInterruptIfRunning)

 

posted @ 2016-01-30 12:12  晕菜一员  阅读(435)  评论(0编辑  收藏  举报