com.trello.rxlifecycle.components.support.RxAppCompatActivity Java Examples
The following examples show how to use
com.trello.rxlifecycle.components.support.RxAppCompatActivity.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: AppDetailApi.java From Bailan with Apache License 2.0 | 5 votes |
public AppDetailApi(HttpOnNextListener listener, RxAppCompatActivity rxAppCompatActivity, String packageName) { super(listener, rxAppCompatActivity); this.packageName = packageName; // setCache(true); setMothed("appStore/app/introduce?packageName=" + packageName); }
Example #2
Source File: BaseApi.java From Bailan with Apache License 2.0 | 5 votes |
public BaseApi(HttpOnNextListener listener, RxAppCompatActivity rxAppCompatActivity) { setListener(listener); setRxAppCompatActivity(rxAppCompatActivity); setShowProgress(false); setCache(false); setCancel(true); setCookieNetWorkTime(60); setCookieNoNetWorkTime(24*60*60); }
Example #3
Source File: AppIntroduceApi.java From Bailan with Apache License 2.0 | 5 votes |
public AppIntroduceApi(HttpOnNextListener listener, RxAppCompatActivity rxAppCompatActivity, String packageName) { super(listener, rxAppCompatActivity); this.packgeName = packageName; setCache(true); setMothed("appStore/app/introduce?packageName=" + packageName); }
Example #4
Source File: SubjectPostApi.java From RxjavaRetrofitDemo-master with MIT License | 5 votes |
/** * 默认初始化需要给定回调和rx周期类 * 可以额外设置请求设置加载框显示,回调等(可扩展) * @param listener * @param rxAppCompatActivity */ public SubjectPostApi(HttpOnNextListener listener, RxAppCompatActivity rxAppCompatActivity) { super(listener,rxAppCompatActivity); setShowProgress(true); setCancel(true); setCache(true); setMethod("AppFiftyToneGraph/videoLink"); setCookieNetWorkTime(60); setCookieNoNetWorkTime(24*60*60); }
Example #5
Source File: AppMoreRecommendApi.java From Bailan with Apache License 2.0 | 5 votes |
public AppMoreRecommendApi(HttpOnNextListener listener, RxAppCompatActivity rxAppCompatActivity, String type, String packageName) { super(listener, rxAppCompatActivity); this.type = type; this.packageName = packageName; setCache(true); setMothed("appStore/app/" + type + "?packageName=" + packageName); }
Example #6
Source File: AppIntroduceApi.java From Bailan with Apache License 2.0 | 5 votes |
public AppIntroduceApi(HttpOnNextListener listener, RxAppCompatActivity rxAppCompatActivity, String packageName) { super(listener, rxAppCompatActivity); this.packgeName = packageName; setCache(true); setMothed("appStore/app/introduce?packageName=" + packageName); }
Example #7
Source File: AppDetailApi.java From Bailan with Apache License 2.0 | 5 votes |
public AppDetailApi(HttpOnNextListener listener, RxAppCompatActivity rxAppCompatActivity, String packageName) { super(listener, rxAppCompatActivity); this.packageName = packageName; // setCache(true); setMothed("appStore/app/introduce?packageName=" + packageName); }
Example #8
Source File: AppMoreRecommendApi.java From Bailan with Apache License 2.0 | 5 votes |
public AppMoreRecommendApi(HttpOnNextListener listener, RxAppCompatActivity rxAppCompatActivity, String type, String packageName) { super(listener, rxAppCompatActivity); this.type = type; this.packageName = packageName; setCache(true); setMothed("appStore/app/" + type + "?packageName=" + packageName); }
Example #9
Source File: BaseApi.java From Bailan with Apache License 2.0 | 5 votes |
public BaseApi(HttpOnNextListener listener, RxAppCompatActivity rxAppCompatActivity) { setListener(listener); setRxAppCompatActivity(rxAppCompatActivity); setShowProgress(false); setCache(false); setCancel(true); setCookieNetWorkTime(60); setCookieNoNetWorkTime(24*60*60); }
Example #10
Source File: CombinApi.java From RxjavaRetrofitDemo-string-master with MIT License | 4 votes |
public CombinApi(HttpOnNextListener onNextListener, RxAppCompatActivity appCompatActivity) { super(onNextListener, appCompatActivity); /*统一设置*/ setCache(true); }
Example #11
Source File: AppCommentarieApi.java From Bailan with Apache License 2.0 | 4 votes |
public AppCommentarieApi(HttpOnNextListener listener, RxAppCompatActivity rxAppCompatActivity, String packageName) { super(listener, rxAppCompatActivity); this.packageName = packageName; setCache(true); setMothed("app/comment??packageName=" + packageName); }
Example #12
Source File: TopApi.java From Bailan with Apache License 2.0 | 4 votes |
public TopApi(HttpOnNextListener listener, RxAppCompatActivity rxAppCompatActivity) { super(listener, rxAppCompatActivity); // setCache(true);//设置缓存 setMothed("appstore/top");//存入到数据库,传入的值要与接口参数一致 }
Example #13
Source File: CategoryNecessaryApi.java From Bailan with Apache License 2.0 | 4 votes |
public CategoryNecessaryApi(HttpOnNextListener listener, RxAppCompatActivity rxAppCompatActivity) { super(listener, rxAppCompatActivity); setCache(true); setMothed("appStore/categorydata/necessary"); }
Example #14
Source File: HttpManagerApi.java From RxjavaRetrofitDemo-string-master with MIT License | 4 votes |
public HttpManagerApi(HttpOnNextListener onNextListener, RxAppCompatActivity appCompatActivity) { manager = new HttpManager(onNextListener, appCompatActivity); }
Example #15
Source File: HttpManagerApi.java From RxjavaRetrofitDemo-string-master with MIT License | 4 votes |
public HttpManagerApi(HttpOnNextSubListener onNextSubListener, RxAppCompatActivity appCompatActivity) { manager = new HttpManager(onNextSubListener, appCompatActivity); }
Example #16
Source File: HttpManager.java From RxjavaRetrofitDemo-string-master with MIT License | 4 votes |
public HttpManager(HttpOnNextListener onNextListener, RxAppCompatActivity appCompatActivity) { this.onNextListener = new SoftReference(onNextListener); this.appCompatActivity = new SoftReference(appCompatActivity); }
Example #17
Source File: HttpManager.java From RxjavaRetrofitDemo-string-master with MIT License | 4 votes |
public HttpManager(HttpOnNextSubListener onNextSubListener, RxAppCompatActivity appCompatActivity) { this.onNextSubListener = new SoftReference(onNextSubListener); this.appCompatActivity = new SoftReference(appCompatActivity); }
Example #18
Source File: HttpManager.java From RxjavaRetrofitDemo-string-master with MIT License | 4 votes |
public HttpManager(RxAppCompatActivity appCompatActivity) { this.appCompatActivity = new SoftReference(appCompatActivity); }
Example #19
Source File: CategoryApi.java From Bailan with Apache License 2.0 | 4 votes |
public CategoryApi(HttpOnNextListener listener, RxAppCompatActivity rxAppCompatActivity) { super(listener, rxAppCompatActivity); // setCache(true);//设置缓存 setMothed("appstore/category");//存入到数据库,传入的值要与接口参数一致 }
Example #20
Source File: CombinApi.java From RxjavaRetrofitDemo-string-master with MIT License | 4 votes |
public CombinApi(HttpOnNextSubListener onNextSubListener, RxAppCompatActivity appCompatActivity) { super(onNextSubListener, appCompatActivity); /*统一设置*/ setCache(true); }
Example #21
Source File: BaseApi.java From RxjavaRetrofitDemo-master with MIT License | 4 votes |
public BaseApi(HttpOnNextListener listener, RxAppCompatActivity rxAppCompatActivity) { setListener(listener); setRxAppCompatActivity(rxAppCompatActivity); setShowProgress(true); setCache(true); }
Example #22
Source File: BaseApi.java From RxjavaRetrofitDemo-master with MIT License | 4 votes |
public void setRxAppCompatActivity(RxAppCompatActivity rxAppCompatActivity) { this.rxAppCompatActivity = new SoftReference(rxAppCompatActivity); }
Example #23
Source File: BaseApi.java From RxjavaRetrofitDemo-master with MIT License | 4 votes |
public RxAppCompatActivity getRxAppCompatActivity() { return rxAppCompatActivity.get(); }
Example #24
Source File: UploadApi.java From RxjavaRetrofitDemo-master with MIT License | 4 votes |
public UploadApi(HttpOnNextListener listener, RxAppCompatActivity rxAppCompatActivity) { super(listener, rxAppCompatActivity); setShowProgress(true); setMethod("AppFiftyToneGraph/videoLink"); }
Example #25
Source File: HttpManager.java From Rx-Retrofit with MIT License | 4 votes |
public HttpManager(HttpOnNextListener onNextListener, RxAppCompatActivity appCompatActivity) { this.onNextListener = new SoftReference(onNextListener); this.appCompatActivity = new SoftReference(appCompatActivity); }
Example #26
Source File: HttpManager.java From RxRetrofit-mvp with MIT License | 4 votes |
public HttpManager(HttpOnNextListener onNextListener, RxAppCompatActivity appCompatActivity) { this.onNextListener = new SoftReference(onNextListener); this.appCompatActivity = new SoftReference(appCompatActivity); }
Example #27
Source File: M.java From RxRetrofit-mvp with MIT License | 4 votes |
@Override public void startPost(RxAppCompatActivity rxAppCompatActivity, BaseApi baseApi) { HttpManager manager = new HttpManager(this, rxAppCompatActivity); manager.doHttpDeal(baseApi); }
Example #28
Source File: P.java From RxRetrofit-mvp with MIT License | 4 votes |
@Override public void startPost(RxAppCompatActivity rxAppCompatActivity, BaseApi baseApi) { vlistener.showProg(); mlistener.startPost(rxAppCompatActivity,baseApi); }
Example #29
Source File: AppCommentarieApi.java From Bailan with Apache License 2.0 | 4 votes |
public AppCommentarieApi(HttpOnNextListener listener, RxAppCompatActivity rxAppCompatActivity, String packageName) { super(listener, rxAppCompatActivity); this.packageName = packageName; setCache(true); setMothed("app/comment??packageName=" + packageName); }
Example #30
Source File: BaseApi.java From Bailan with Apache License 2.0 | 4 votes |
public void setRxAppCompatActivity(RxAppCompatActivity rxAppCompatActivity) { this.rxAppCompatActivity = new SoftReference(rxAppCompatActivity); }