ViewModel overview  |  Android Developers

ViewModel lets you manage your UI's data in a lifecycle-aware fashion.