~/talk

Designing scalable Compose APIs

Talkat droidcon London 2024 · 2024-10-31..11-01· [android]
slides:none on file

Guidelines for building a reusable Jetpack Compose chip: design for one problem, split variants into low-level basic and higher-level opinionated layers, and prefer stateless composables with state hoisting so callers control enabled/selected values. Expose a single Modifier as first optional parameter (default Modifier) and use slotted content with scoped layout (row scope) for icon+label. Provide public componentDefaults object for styling, hoist InteractionSource for press testing, and merge semantics with semantics mergeDescendants = true so accessibility and tests work reliably.

AI-written summary · about

  1. 0:00Introduction
  2. 3:32New Compose API decision
  3. 10:20Structuring Compose API
  4. 25:05State and events in APIs
  5. 29:20Accessibility and testability
  6. 36:45Summary
~/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.