ViewModels survive configuration changes (like rotation). LiveData provides observable data that is lifecycle-aware.
← Kotlin theorytheory 0/50 · 0%
Android · medium
29. ViewModel and LiveData
Managing UI state.
Check your understanding
1. Why use ViewModel?
2. Does LiveData update inactive observers?