ARouter页面跳转参数函数生成插件
在使用ARouter
时在小模块内的页面跳转多个参数的页面传参构建也长长的 举个栗子…
ARouter.getInstance().build(Constants.PATH_TEST1)
.withString(Constants.PARAM_NAME, name)
.withInt("age", age)
.withInt("height", height)
.withBoolean("boy", girl)
.withChar("ch", ch)
.withFloat("fl", fl)
.withDouble("dou", dou)
.withObject("ser", ser)
.withParcelable("pac", pac)
.withObject("obj", obj)
.withObject("objList", objList)
.withObject("map", map)
.withString("url", url)
.navigation();
哇了个去,然后这个插件就诞生了
先上个效果图
插件githubARouterNavigateFunctionGenerator .jar也在github项目目录下
参考
https://cloud.tencent.com/developer/article/1348733
https://www.jianshu.com/p/5efcb354b473