How to inject AppViewModel(whose ViewModelStore is application) with hilt?

后端 未结 0 495
你的背包
你的背包 2021-02-02 04:22

Common way is to construct viewModel with "@ViewModelInject" and get with "by activityViewModels()".

But I cannot find a way to create the AppViewMode

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