当前位置: 首页>>代码示例>>Java>>正文


Java Router类代码示例

本文整理汇总了Java中cn.droidlover.xdroidmvp.router.Router的典型用法代码示例。如果您正苦于以下问题:Java Router类的具体用法?Java Router怎么用?Java Router使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


Router类属于cn.droidlover.xdroidmvp.router包,在下文中一共展示了Router类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: launch

import cn.droidlover.xdroidmvp.router.Router; //导入依赖的package包/类
public static void launch(Activity activity, String url, String desc) {
    Router.newIntent(activity)
            .to(WebActivity.class)
            .putString(PARAM_URL, url)
            .putString(PARAM_DESC, desc)
            .launch();
}
 
开发者ID:weiwenqiang,项目名称:GitHub,代码行数:8,代码来源:WebActivity.java

示例2: initData

import cn.droidlover.xdroidmvp.router.Router; //导入依赖的package包/类
@Override
public void initData(Bundle savedInstanceState) {
    Router.newIntent(context)
            .to(EndActivity.class)
            .putString("arg_name", "xdroid")
            .launch();

    Router.newIntent(context)
            .to(EndActivity.class)
            .putString("arg_name", "xdroid")
            .requestCode(100)
            .launch();

    int exitAnim = 0, enterAnim = 0;
    Router.newIntent(context)
            .to(EndActivity.class)
            .putString("arg_name", "xdroid")
            .anim(enterAnim, exitAnim)
            .launch();

    Router.newIntent(context)
            .to(EndActivity.class)
            .addFlags(Intent.FLAG_ACTIVITY_NEW_TASK)
            .launch();

    Router.newIntent(context)
            .to(EndActivity.class)
            .options(ActivityOptionsCompat.makeBasic())
            .launch();

}
 
开发者ID:weiwenqiang,项目名称:GitHub,代码行数:32,代码来源:StartActivity.java

示例3: launch

import cn.droidlover.xdroidmvp.router.Router; //导入依赖的package包/类
public static void launch(Activity activity, MediaDevice mediaDevice,boolean isEdit) {
    Router.newIntent(activity)
            .to(DeviceActivity.class)
            .data(new Bundle())
            .putParcelable("mediaDevice",mediaDevice)
            .putBoolean("isEdit",isEdit)
            .launch();
}
 
开发者ID:ruiqiao2017,项目名称:Renrentou,代码行数:9,代码来源:DeviceActivity.java

示例4: launch

import cn.droidlover.xdroidmvp.router.Router; //导入依赖的package包/类
public static void launch(Activity activity, User user) {
    Router.newIntent(activity)
            .to(RegActivity.class)
            .data(new Bundle())
            .putParcelable("user",user)
            .launch();
}
 
开发者ID:ruiqiao2017,项目名称:Renrentou,代码行数:8,代码来源:RegActivity.java

示例5: launch

import cn.droidlover.xdroidmvp.router.Router; //导入依赖的package包/类
public static void launch(Activity activity, Advertisement advertisement) {
    Router.newIntent(activity)
            .to(AdActivity.class)
            .data(new Bundle())
            .putParcelable("advertisement",advertisement)
            .launch();
}
 
开发者ID:ruiqiao2017,项目名称:Renrentou,代码行数:8,代码来源:AdActivity.java

示例6: launch

import cn.droidlover.xdroidmvp.router.Router; //导入依赖的package包/类
public static void launch(Activity activity,MediaDevice mediaDevice) {
    Router.newIntent(activity)
            .to(BidActivity.class)
            .data(new Bundle())
            .putParcelable("mediaDevice",mediaDevice)
            .launch();
}
 
开发者ID:ruiqiao2017,项目名称:Renrentou,代码行数:8,代码来源:BidActivity.java

示例7: launch

import cn.droidlover.xdroidmvp.router.Router; //导入依赖的package包/类
public static void launch(Activity activity,Order order) {
    Router.newIntent(activity)
            .to(BidResultActivity.class)
            .data(new Bundle())
            .putParcelable("order",order)
            .launch();
}
 
开发者ID:ruiqiao2017,项目名称:Renrentou,代码行数:8,代码来源:BidResultActivity.java

示例8: launch

import cn.droidlover.xdroidmvp.router.Router; //导入依赖的package包/类
public static void launch(Activity activity) {
    Router.newIntent(activity)
            .to(MainActivity.class)
            .data(new Bundle())
            .addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP)
            .launch();
}
 
开发者ID:ruiqiao2017,项目名称:Renrentou,代码行数:8,代码来源:MainActivity.java

示例9: launch

import cn.droidlover.xdroidmvp.router.Router; //导入依赖的package包/类
public static void launch(Activity activity, Hot hot) {
    Router.newIntent(activity)
            .to(DeviceHotListActivityDeprecated.class)
            .data(new Bundle())
            .putParcelable("hot",hot)
            .launch();
}
 
开发者ID:ruiqiao2017,项目名称:Renrentou,代码行数:8,代码来源:DeviceHotListActivityDeprecated.java

示例10: launch

import cn.droidlover.xdroidmvp.router.Router; //导入依赖的package包/类
public static void launch(Activity activity, Order order,int requestCode) {
    Router.newIntent(activity)
            .to(OrderActivity.class)
            .data(new Bundle())
            .putParcelable("order",order)
            .requestCode(requestCode)
            .launch();
}
 
开发者ID:ruiqiao2017,项目名称:Renrentou,代码行数:9,代码来源:OrderActivity.java

示例11: launch

import cn.droidlover.xdroidmvp.router.Router; //导入依赖的package包/类
public static void launch(Activity activity, Hot hot) {
    Router.newIntent(activity)
            .to(DeviceHotListActivity.class)
            .data(new Bundle())
            .putParcelable("hot",hot)
            .launch();
}
 
开发者ID:ruiqiao2017,项目名称:Renrentou,代码行数:8,代码来源:DeviceHotListActivity.java

示例12: forward

import cn.droidlover.xdroidmvp.router.Router; //导入依赖的package包/类
/**
 * 跳转下一页
 */
private void forward(boolean isForce){
    if(isForward){
        return;
    }
    isForward = true;
    if(isWeekLogin){
        if(isLogin && isEndLogin){
            MainActivity.launch(this);
            Router.pop(this);
        }else if(!isLogin && isEndLogin){
            LoginActivity.launch(this);
            Router.pop(this);
        }else if(isForce && isLogin){
            MainActivity.launch(this);
            Router.pop(this);
        }else if(isForce){
            LoginActivity.launch(this);
            Router.pop(this);
        }else{
            isWaiteLogin = true;
        }
    }else{
        LoginActivity.launch(this);
        Router.pop(this);
    }
}
 
开发者ID:ruiqiao2017,项目名称:Renrentou,代码行数:30,代码来源:IndexActivity.java

示例13: afterLogin

import cn.droidlover.xdroidmvp.router.Router; //导入依赖的package包/类
private void afterLogin(){
    if(isWaiteLogin && isLogin){
        MainActivity.launch(this);
        Router.pop(this);
    }else if(isWaiteLogin){
        LoginActivity.launch(this);
        Router.pop(this);
    }
}
 
开发者ID:ruiqiao2017,项目名称:Renrentou,代码行数:10,代码来源:IndexActivity.java

示例14: launch

import cn.droidlover.xdroidmvp.router.Router; //导入依赖的package包/类
public static void launch(Activity activity , int reqcode) {
    Router.newIntent(activity)
            .to(AdCompanySearchActivity.class)
            .data(new Bundle())
            .requestCode(reqcode)
            .launch();
}
 
开发者ID:ruiqiao2017,项目名称:Renrentou,代码行数:8,代码来源:AdCompanySearchActivity.java

示例15: launch

import cn.droidlover.xdroidmvp.router.Router; //导入依赖的package包/类
public static void launch(Activity activity,int reqcode) {
    Router.newIntent(activity)
            .to(AdSelectActivity.class)
            .data(new Bundle())
            .requestCode(reqcode)
            .launch();
}
 
开发者ID:ruiqiao2017,项目名称:Renrentou,代码行数:8,代码来源:AdSelectActivity.java


注:本文中的cn.droidlover.xdroidmvp.router.Router类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。