本文整理匯總了Java中com.trello.rxlifecycle.components.support.RxAppCompatActivity類的典型用法代碼示例。如果您正苦於以下問題:Java RxAppCompatActivity類的具體用法?Java RxAppCompatActivity怎麽用?Java RxAppCompatActivity使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
RxAppCompatActivity類屬於com.trello.rxlifecycle.components.support包,在下文中一共展示了RxAppCompatActivity類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: BaseApi
import com.trello.rxlifecycle.components.support.RxAppCompatActivity; //導入依賴的package包/類
public BaseApi(HttpOnNextListener listener, RxAppCompatActivity rxAppCompatActivity) {
setListener(listener);
setRxAppCompatActivity(rxAppCompatActivity);
setShowProgress(false);
setCache(false);
setCancel(true);
setCookieNetWorkTime(60);
setCookieNoNetWorkTime(24*60*60);
}
示例2: AppIntroduceApi
import com.trello.rxlifecycle.components.support.RxAppCompatActivity; //導入依賴的package包/類
public AppIntroduceApi(HttpOnNextListener listener, RxAppCompatActivity rxAppCompatActivity, String packageName) {
super(listener, rxAppCompatActivity);
this.packgeName = packageName;
setCache(true);
setMothed("appStore/app/introduce?packageName=" + packageName);
}
示例3: AppDetailApi
import com.trello.rxlifecycle.components.support.RxAppCompatActivity; //導入依賴的package包/類
public AppDetailApi(HttpOnNextListener listener, RxAppCompatActivity rxAppCompatActivity, String packageName) {
super(listener, rxAppCompatActivity);
this.packageName = packageName;
// setCache(true);
setMothed("appStore/app/introduce?packageName=" + packageName);
}
示例4: AppMoreRecommendApi
import com.trello.rxlifecycle.components.support.RxAppCompatActivity; //導入依賴的package包/類
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);
}
示例5: SubjectPostApi
import com.trello.rxlifecycle.components.support.RxAppCompatActivity; //導入依賴的package包/類
/**
* 默認初始化需要給定回調和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);
}
示例6: setRxAppCompatActivity
import com.trello.rxlifecycle.components.support.RxAppCompatActivity; //導入依賴的package包/類
public void setRxAppCompatActivity(RxAppCompatActivity rxAppCompatActivity) {
this.rxAppCompatActivity = new SoftReference(rxAppCompatActivity);
}
示例7: getRxAppCompatActivity
import com.trello.rxlifecycle.components.support.RxAppCompatActivity; //導入依賴的package包/類
public RxAppCompatActivity getRxAppCompatActivity() {
return rxAppCompatActivity.get();
}
示例8: AppRecommendApi
import com.trello.rxlifecycle.components.support.RxAppCompatActivity; //導入依賴的package包/類
public AppRecommendApi(HttpOnNextListener listener, RxAppCompatActivity rxAppCompatActivity, String packageName) {
super(listener, rxAppCompatActivity);
this.packageName = packageName;
setCache(true);
setMothed("appStore/app/recommend?packageName=" + packageName);
}
示例9: CategorySubscribeApi
import com.trello.rxlifecycle.components.support.RxAppCompatActivity; //導入依賴的package包/類
public CategorySubscribeApi(HttpOnNextListener listener, RxAppCompatActivity rxAppCompatActivity) {
super(listener, rxAppCompatActivity);
setCache(true);
setMothed("appStore/categorydata/subscribe");
}
示例10: RecommendApi
import com.trello.rxlifecycle.components.support.RxAppCompatActivity; //導入依賴的package包/類
public RecommendApi(HttpOnNextListener listener, RxAppCompatActivity rxAppCompatActivity) {
super(listener, rxAppCompatActivity);
setCache(true);//設置緩存
setMothed("appstore/recommend");//存入到數據庫,傳入的值要與接口參數一致
}
示例11: CategoryApi
import com.trello.rxlifecycle.components.support.RxAppCompatActivity; //導入依賴的package包/類
public CategoryApi(HttpOnNextListener listener, RxAppCompatActivity rxAppCompatActivity) {
super(listener, rxAppCompatActivity);
// setCache(true);//設置緩存
setMothed("appstore/category");//存入到數據庫,傳入的值要與接口參數一致
}
示例12: CategorySubjectApi
import com.trello.rxlifecycle.components.support.RxAppCompatActivity; //導入依賴的package包/類
public CategorySubjectApi(HttpOnNextListener listener, RxAppCompatActivity rxAppCompatActivity) {
super(listener, rxAppCompatActivity);
setCache(true);
setMothed("categorydata/subject");
}
示例13: CategoryNewApi
import com.trello.rxlifecycle.components.support.RxAppCompatActivity; //導入依賴的package包/類
public CategoryNewApi(HttpOnNextListener listener, RxAppCompatActivity rxAppCompatActivity) {
super(listener, rxAppCompatActivity);
}
示例14: AppCommentarieApi
import com.trello.rxlifecycle.components.support.RxAppCompatActivity; //導入依賴的package包/類
public AppCommentarieApi(HttpOnNextListener listener, RxAppCompatActivity rxAppCompatActivity, String packageName) {
super(listener, rxAppCompatActivity);
this.packageName = packageName;
setCache(true);
setMothed("app/comment??packageName=" + packageName);
}
示例15: TopApi
import com.trello.rxlifecycle.components.support.RxAppCompatActivity; //導入依賴的package包/類
public TopApi(HttpOnNextListener listener, RxAppCompatActivity rxAppCompatActivity) {
super(listener, rxAppCompatActivity);
// setCache(true);//設置緩存
setMothed("appstore/top");//存入到數據庫,傳入的值要與接口參數一致
}