AndroidViewModel class is Similar to ViewModel Class but it provides Application object in constructor so any task which requires some context like opening a Database or Saving data in shared preferences can be done in it. In this video we will learn difference between AndroidViewModel and ViewModel, when to use AndroidViewModel and how to create it.
Don't forget to subscribe to the channel for quality tutorial videos on android application development.
Connect with AndroidDevSunny on other social media Platforms to get latest updates:
Facebook: / androiddevsunny
Twitter: / androiddevsunny
Instagram: / androiddevsunny