Assisted Injection in ViewModel using Hilt

assisted injection in viewmodel

You are using hilt for dependency injection in your android project. You may encounter a situation where you need to provide some dynamic dependencies to your ViewModel. In this situation you can use Assisted Injection in ViewModel. For the example I will take the project that we created in the last tutorial. You can check …

Read moreAssisted Injection in ViewModel using Hilt

Android ViewModel using Retrofit – ✅ A Simple Tutorial

Android ViewModel Tutorial

Heard about ViewModel in android? Android ViewModel is an architecture component that is designed to store UI related data. According to Android Developer Website. The ViewModel class is designed to store and manage UI-related data in a lifecycle conscious way. The ViewModel class allows data to survive configuration changes such as screen rotations. If you …

Read moreAndroid ViewModel using Retrofit – ✅ A Simple Tutorial