How to @Inject ViewModel to Activity using dagger2

后端 未结 0 1753
既然无缘
既然无缘 2021-02-07 03:24

I\'m trying to inject my ViewModel class to my Activity using dagger2. Same time, my ViewModel needs some args to be injected to the constructor, like SavedStateHandle and repos

相关标签:
回答
  • 消灭零回复
提交回复
热议问题