Closed aiceking closed 7 years ago
public interface HttpRequestListener { void cancle(); }
@AndroidCloud 1.手动取消的话参考 https://github.com/RuffianZhong/Rx-Mvp/blob/master/app/src/main/java/com/rx/mvp/cn/test/RetrofitTest.java 2.RxLifecycle2会根据生命周期自动取消网络请求 eg: onCreate(调用)->onStop(取消)
public interface HttpRequestListener { void cancle(); }