Join Slack
Powered by
Hey all! How can I injected in `val`-field of Frag...
# android
a
adolgiy
08/19/2017, 8:29 AM
Hey all! How can I injected in
val
-field of Fragment/Activity?
r
russhwolf
08/19/2017, 2:32 PM
It depends on your injection framework. Kodein lets you do this without too much trouble. With Dagger I haven't found a good way other than a
val
whose getter reads a separate
@Inject
-annotated
lateinit var
a
adolgiy
08/19/2017, 3:05 PM
i’ve found strange way, not sure it works well: we can use
get
-methods from component
Open in Slack
Previous
Next