-
-
Notifications
You must be signed in to change notification settings - Fork 690
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
Assisted injection? #6
Comments
Hi Jeevuz! Thanks :) I think, you have 2 ways to do it:
Or if you use an MVP approach, you could directly set your id on your MyPresenter, by your fragment. Once your presenter is injected, fill your value try the first one if it fits your needs. |
Thanks for the quick response! |
Properties cannot be dropped for now. But you overwrite existing property, each time you use |
Ок, I got it. Thanks again! |
Hi! Nice library, really like it!
But I can't get how we can do so called assisted injection. Imagine I have
MyPresenter(val someId: Int, val interactor: SomeInteractor)
, wheresomeId
is dynamic parameter that is known only by the timeMyView (a Fragment)
is created.How I can provide the MyPresenter in this case?
The text was updated successfully, but these errors were encountered: