~/talk

Lifecycle, LiveData, Viewmodels - The inner wiring

Talkat DroidKaigi 2019 · 2019-02-07..02-08· [android]
slides:none on file

Explains concrete internals: lifecycle owners are Activity, Fragment, Process (via a manifest provider) and Service; fragment view lifecycle is separate from fragment lifecycle; ProcessLifecycleOwner delays background events by 700 ms delay to avoid configuration-change noise. LiveData keeps a list of observers, emits on the main thread, offers MediatorLiveData for merging/transforms and a LiveDataReactiveStreams bridge to Rx. ViewModel survives config changes, calls onCleared cancels coroutines — use viewModelScope so launched coroutines are cancelled when the ViewModel is cleared.

AI-written summary · about

  1. 0:00Intro
  2. 2:08Lifecycle
  3. 6:13Fragments
  4. 8:50Process Lifecycle
  5. 11:27Lifecycle Service
  6. 13:00Lifecycle Owner
  7. 14:20LiveData
  8. 17:30LiveData transformations
  9. 18:56LiveData overview
~/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.