~/talk

Peeling Back the Layers: Unmasking the UI-nknown!

Talkat Droidcon London 2023 · 2023-10-26..10-27· [android, frontend-architecture]
slides:none on file

Concrete guidance: expose screen UI as an observable holder such as StateFlow or Compose state (or LiveData) and convert external Flows with stateIn using whileSubscribed(5000) to avoid wasted work; keep business logic in a screen-scoped ViewModel using viewModelScope so operations survive configuration changes; collect state lifecycle-aware with APIs like collectAsStateWithLifecycle / repeatOnLifecycle; use SavedState for transient process-death survival and persistent storage (Room) for long-term data.

AI-written summary · about

  1. 0:00Introduction
  2. 3:17Understanding the UI layer
  3. 10:18Modeling UI state
  4. 17:41State holders explained
  5. 27:29Plain class state holders
  6. 32:47Hoisting state correctly
  7. 34:53Saving UI state
  8. 36:18Q&A and closing
~/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.