Kotlin theorytheory 0/50 · 0%
Android · medium

29. ViewModel and LiveData

Managing UI state.

ViewModels survive configuration changes (like rotation). LiveData provides observable data that is lifecycle-aware.

Check your understanding

  1. 1. Why use ViewModel?

  2. 2. Does LiveData update inactive observers?