Hey all! Does it make any sense to use Inject (member injection) in a ViewModel or should be only used in Activities and Fragments?
g
gildor
04/12/2019, 10:05 AM
Not a Kotlin related question.
In general no, you should use constructor injection, same for FactoryProvider and multibindings, but I would instead just google it or ask on StackOverflow
j
Jemshit Iskenderov
04/15/2019, 12:05 PM
When sometimes you need late injection with parameters, i think there is no problem with that. In Koin, you implement interface and you can late inject with parameters (without involving android code)