Skip to content

Glossary: Android with Jetpack Compose

ViewModel

Also written: view model, viewModel()

A class that holds a screen's state and logic and survives rotation. It is cleared when the user leaves for good, but not saved through process death.

Where the book teaches it

Related terms

StateFlowSavedStateHandleviewModelScope