6

I want to inject View Model in Service , how can it possible.

I recently started using DI in my project through Dagger Hilt. I'm having no problems when injecting viewModel instances into Activity/Fragment. But I am not sure how to inject this in service

Ahmad Bhatti
  • 189
  • 1
  • 8
  • Check https://stackoverflow.com/questions/48716548/android-viewmodel-inside-service-alternative. – ADM Jan 21 '22 at 10:58

0 Answers0