Android architecture components are the building blocks to a robust, clean, and scalable app. They are responsible for managing UI components and Data persistence. One of the classes in the android architecture components is the ViewModel class. This class is designed to store and manage any UI-related data in a lifecycle conscious way.
Read on to learn more about the ViewModel class of Android architecture component here: https://www.systango.com/blog/what-is-viewmodel-in-android-architecture-component/