~/talk

Lifecycle, LiveData, ViewModels - The inner wiring

Talkat Android Makers 2018 · on Monday, 2018-04-23· [android]
slides:none on file

Explains how Lifecycle, LiveData and ViewModel actually work: LiveData is a lifecycle‑aware data holder that doesn’t handle errors, Transformations.map and MediatorLiveData do the heavy lifting, and switchMap removes the previous source automatically so UI isn’t polluted by old searches. ViewModel is kept in a retained fragment and survives configuration changes but not process death. Fragments expose two lifecycles (fragment and view). Notes that ProcessLifecycleOwner uses a ContentProvider and adds a 700 ms pause so background/foreground events aren’t noisy.

AI-written summary · about

  1. 0:00Intro
  2. 1:28Lifecycle
  3. 5:29Process Lifecycle
  4. 18:56Custom transformations
  5. 19:58LiveData vs RxJava
  6. 22:40ViewModel
  7. 24:29MVVM Architecture
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.