~/talk

Basics for System Back

Talkat Google I/O 2022 · 2022-05-11..05-12· [android]
links:none on file
slides:none on file

Android 13 introduces an ahead-of-time System Back model with a new platform API, onBackInvokedCallback, and requires apps to opt in via enableOnBackInvoked=true in the manifest; when registered the system knows before the gesture whether the app will handle Back and shows a Launcher preview otherwise. Migrate using AndroidX Activity 1.6 (or Compose’s BackHandler), move per-view logic to register/unregister callbacks on state changes (drawer example), and expect legacy onBackPressed removal in Android 14.

AI-written summary · about

  1. 0:00Introduction to back gesture
  2. 0:15Predictive back goal
  3. 2:10Ahead-of-time model
  4. 3:11OnBackInvokedCallback API
  5. 4:22Opting into predictive back
  6. 5:15Jetpack libraries update
  7. 5:47OnBackPressedDispatcher
  8. 7:24Handling multiple callbacks
  9. 8:32Fragment back navigation
  10. 9:25BackHandler in Compose
  11. 10:02Migrating legacy back code
  12. 10:29Low-level API integration
  13. 10:59Implementing drawer layout
  14. 11:42Registering callbacks
  15. 12:27Updating callback state
  16. 13:10Future plans and resources
~/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.