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

关于使用Dagger2注入presenter的问题 #138

Open
FunnyLee opened this issue Oct 17, 2018 · 1 comment
Open

关于使用Dagger2注入presenter的问题 #138

FunnyLee opened this issue Oct 17, 2018 · 1 comment

Comments

@FunnyLee
Copy link

在BaseFragment和BaseActivity中都通过inject得到presenter对象
@Inject protected T mPresenter;

但是我没有找到有module中有提供presenter的方法,请问presenter是如何注入到activity和fragment中的了?

@happySteveQi
Copy link

image
参考这里,@Inject 注解到了具体的实现类中。

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

2 participants