~/talk

Coroutine-Driven Android Billing- Use Cases, Fallbacks, and Functional Programming

Talkat droidcon New York 2023 · 2023-09-14..09-15· [android]
links:none on file
slides:none on file

Coroutine-based wrappers convert the listener APIs into suspending calls so the billing client is withGoogleBillingClient wrapper that guarantees a connected client behind a mutex and simple retry logic; purchases become suspending via a completableDeferred awaitPurchaseResult that the purchases-updated listener completes. A small functional try sealed class mapping standardizes success/failure; product pricing falls back from ProductDetails to SKU details, products are cached in Room, and unacknowledged purchases get background reconciliation before the 3-day revoke window.

AI-written summary · about

  1. 0:00Introduction
  2. 1:25Billing library overview
  3. 7:25Functional programming techniques
  4. 11:59Use cases for purchases
  5. 16:54Fallback mechanisms
  6. 19:03Architecture with use cases
  7. 21:13Monitoring billing flow
  8. 22:15Key learnings summary
~/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.