How to pass runtime parameters to a ViewModel's constructor when using Hilt for dependency injection?

前端 未结 0 1555
隐瞒了意图╮
隐瞒了意图╮ 2020-12-14 03:43

I\'m wondering how to pass runtime parameters to a ViewModel\'s constructor while using Hilt for DI? Prior to using Hilt, I have a ViewModel that looks like this:

<         


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