本文整理匯總了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();
}