-
Notifications
You must be signed in to change notification settings - Fork 12
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
文章,有地方不理解。 #1
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
需要注意的是,如果不使用自动注入,那么可以不写 ARouter.getInstance().inject(this),但是需要取值的字段仍然需要标上 @Autowired 注解,因为 只有标上注解之后,ARouter才能知道以哪一种数据类型提取URL中的参数并放入Intent中,这样您才能在intent中获取到对应的参数。
我看源码,看到com.alibaba.android.arouter.launcher._ARouter#_navigation地方,不管有没有@Autowired都会放到intent的中。
``
final Context currentContext = null == context ? mContext : context;
``
The text was updated successfully, but these errors were encountered: