本文整理汇总了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();
}
示例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();
}
示例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();
}
示例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();
}
示例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();
}
示例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();
}
示例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();
}
示例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();
}
示例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();
}
示例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();
}
示例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();
}
示例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);
}
}
示例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);
}
}
示例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();
}
示例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();
}