~/talk

5 Easy steps to build a Compose API

Talkat droidcon Berlin 2023 · 2023-07-05..07-07· [android, api-design]
github:jossiwolf
slides:none on file

Existing modifier.swipeable forces recompositions because anchors live in composition; the team refactors it into a state-driven design: anchor dragable state plus a light modifier anchorDragable, moves the API from material into foundation, and exposes the internal updateAnchors function so layout-dependent anchors update without recomposition. Prototypes iterate from swipeable v2 to the final API, the modifier approach reduces cancellations and is now used by M3 modal bottom sheets, showing the new API works in real components.

AI-written summary · about

  1. 0:00Introduction
  2. 1:27The Swipeable API problem
  3. 5:20What is an API?
  4. 8:59Step one: Define the goal
  5. 13:18Naming APIs matters
  6. 17:12Building scalable APIs
  7. 20:41Layering APIs in Compose
  8. 23:55Choosing Compose components
  9. 28:54Prototyping and iterating
  10. 31:03Do you need this API?
  11. 34:13Collecting feedback
  12. 34:55Closing thoughts
~/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.