當前位置: 首頁>>代碼示例>>Java>>正文


Java RxAppCompatActivity類代碼示例

本文整理匯總了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);
}
 
開發者ID:guzhigang001,項目名稱:Bailan,代碼行數:12,代碼來源:BaseApi.java

示例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);

}
 
開發者ID:guzhigang001,項目名稱:Bailan,代碼行數:8,代碼來源:AppIntroduceApi.java

示例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);

    }
 
開發者ID:guzhigang001,項目名稱:Bailan,代碼行數:8,代碼來源:AppDetailApi.java

示例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);
}
 
開發者ID:guzhigang001,項目名稱:Bailan,代碼行數:8,代碼來源:AppMoreRecommendApi.java

示例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);
}
 
開發者ID:wzgiceman,項目名稱:RxjavaRetrofitDemo-master,代碼行數:16,代碼來源:SubjectPostApi.java

示例6: setRxAppCompatActivity

import com.trello.rxlifecycle.components.support.RxAppCompatActivity; //導入依賴的package包/類
public void setRxAppCompatActivity(RxAppCompatActivity rxAppCompatActivity) {
    this.rxAppCompatActivity = new SoftReference(rxAppCompatActivity);
}
 
開發者ID:guzhigang001,項目名稱:Bailan,代碼行數:4,代碼來源:BaseApi.java

示例7: getRxAppCompatActivity

import com.trello.rxlifecycle.components.support.RxAppCompatActivity; //導入依賴的package包/類
public RxAppCompatActivity getRxAppCompatActivity() {
    return rxAppCompatActivity.get();
}
 
開發者ID:guzhigang001,項目名稱:Bailan,代碼行數:4,代碼來源:BaseApi.java

示例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);
}
 
開發者ID:guzhigang001,項目名稱:Bailan,代碼行數:7,代碼來源:AppRecommendApi.java

示例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");
}
 
開發者ID:guzhigang001,項目名稱:Bailan,代碼行數:6,代碼來源:CategorySubscribeApi.java

示例10: RecommendApi

import com.trello.rxlifecycle.components.support.RxAppCompatActivity; //導入依賴的package包/類
public RecommendApi(HttpOnNextListener listener, RxAppCompatActivity rxAppCompatActivity) {
    super(listener, rxAppCompatActivity);
    setCache(true);//設置緩存
    setMothed("appstore/recommend");//存入到數據庫,傳入的值要與接口參數一致
}
 
開發者ID:guzhigang001,項目名稱:Bailan,代碼行數:6,代碼來源:RecommendApi.java

示例11: CategoryApi

import com.trello.rxlifecycle.components.support.RxAppCompatActivity; //導入依賴的package包/類
public CategoryApi(HttpOnNextListener listener, RxAppCompatActivity rxAppCompatActivity) {
        super(listener, rxAppCompatActivity);
//        setCache(true);//設置緩存
        setMothed("appstore/category");//存入到數據庫,傳入的值要與接口參數一致
    }
 
開發者ID:guzhigang001,項目名稱:Bailan,代碼行數:6,代碼來源:CategoryApi.java

示例12: CategorySubjectApi

import com.trello.rxlifecycle.components.support.RxAppCompatActivity; //導入依賴的package包/類
public CategorySubjectApi(HttpOnNextListener listener, RxAppCompatActivity rxAppCompatActivity) {
    super(listener, rxAppCompatActivity);
    setCache(true);
    setMothed("categorydata/subject");
}
 
開發者ID:guzhigang001,項目名稱:Bailan,代碼行數:6,代碼來源:CategorySubjectApi.java

示例13: CategoryNewApi

import com.trello.rxlifecycle.components.support.RxAppCompatActivity; //導入依賴的package包/類
public CategoryNewApi(HttpOnNextListener listener, RxAppCompatActivity rxAppCompatActivity) {
    super(listener, rxAppCompatActivity);
}
 
開發者ID:guzhigang001,項目名稱:Bailan,代碼行數:4,代碼來源:CategoryNewApi.java

示例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);
}
 
開發者ID:guzhigang001,項目名稱:Bailan,代碼行數:7,代碼來源:AppCommentarieApi.java

示例15: TopApi

import com.trello.rxlifecycle.components.support.RxAppCompatActivity; //導入依賴的package包/類
public TopApi(HttpOnNextListener listener, RxAppCompatActivity rxAppCompatActivity) {
        super(listener, rxAppCompatActivity);
//        setCache(true);//設置緩存
        setMothed("appstore/top");//存入到數據庫,傳入的值要與接口參數一致
    }
 
開發者ID:guzhigang001,項目名稱:Bailan,代碼行數:6,代碼來源:TopApi.java


注:本文中的com.trello.rxlifecycle.components.support.RxAppCompatActivity類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。