Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

kotlin 简洁用法 #912

Open
chengfan2017 opened this issue Apr 14, 2021 · 5 comments
Open

kotlin 简洁用法 #912

chengfan2017 opened this issue Apr 14, 2021 · 5 comments

Comments

@chengfan2017
Copy link

chengfan2017 commented Apr 14, 2021

image

@chengfan2017
Copy link
Author

image

@RDSunhy
Copy link

RDSunhy commented Apr 15, 2021

请教一下 bundle 如何管理呢? 比如 一个页面 从不同的地方跳转过来 bundle中的参数可能都不同 除了写注释标明 您有更好的办法吗?

@TianGuisen
Copy link

提供一个扩展方法

fun Context.start(path: String, func: Postcard.() -> Unit = {}) {
    ARouter.getInstance().build(path).apply(func).navigation()
}
   start("/test/Test2Act") {
                withString("key", "a")
            }

@AlbertZyc
Copy link

。。。。看得我害怕

@chengfan2017
Copy link
Author

chengfan2017 commented Feb 3, 2022 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants