ViewModel???s Internal working in Android. A full guide.

I will show you how view model work internally in Android. In this article, we are going to cover ViewModel and its working under the hood in the following sequence.

1. What is ViewModel ?

2. Advantages of ViewModel

3. How it works under the hood?

What is ViewModel?

View Model is a lifecycle aware class, designed to store and manage UI related data. It a main component in MVVM architecture. When a view model is created, it is stored inside activity or fragment manager.

Read More