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)

 

你可能感兴趣的:(android-async-http cancelRequests)