~/talk

Effortless Notifications and Permissions with Kotlin-friendly APIs

Talkat droidcon Berlin 2023 · 2023-07-05..07-07· [android, kotlin]
slides:none on file

NotificationCompat ballooned to 25× larger (now ~10,000 lines) with over 86 public methods on the builder and 500+ symbols, which makes posting a notification error-prone; posting requires a channel ID and a small icon and since Android 13 it also requires a runtime permission. A Kotlin-first solution is presented: a concise notification DSL, inline ChannelId typing, coroutines-based ensurePermission that handles rationale, settings flow and edge cases, and a Compose-friendly rememberPermissionRequestState — prototypes compile and demo successfully.

AI-written summary · about

  1. 0:00Introduction and poll
  2. 3:02Speaker introduction
  3. 4:08Notifications API challenges
  4. 7:30Kotlin-friendly notification API
  5. 11:09Notification requirements on API 30
  6. 13:35Live demo of Kotlin API
  7. 17:58Runtime permissions overview
  8. 20:47Permission request as a function
  9. 23:16Ensure permission function
  10. 29:20Activity result contracts
  11. 31:09Live demo of permission API
  12. 34:24Compose permission request state
  13. 39:02Q&A session
  14. 41:30Where to find the APIs
  15. 43:56Future of split libraries
~/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.