~/talk

Working with WorkManager

Talkat Android Dev Summit 2018 · 2018-11-07..11-08· [android]
links:none on file
slides:none on file

WorkManager explains concrete APIs and guarantees: it wraps JobScheduler/AlarmManager, supports API 14+, and has had 11 releases since I/O with beta imminent. It stores work and dependencies in a local database, exposes lifecycle states (enqueued, running, succeeded/failed/cancelled), and supports chaining, unique work with keep/replace/append policies, and periodic work semantics. Async work uses ListenableWorker and ResolvableFuture/ListenableFuture so callbacks run off-thread; customization uses a WorkerFactory and a custom Configuration that replaces the default initializer.

AI-written summary · about

  1. 0:00Intro
  2. 0:32Overview
  3. 0:55State of the Union
  4. 6:50Chaining
  5. 9:33Signalling async work completion
  6. 10:55Worker is a simple Listenable Worker
  7. 14:28Operations
  8. 15:26When is work stopped?
  9. 15:59How do we stop work?
  10. 16:51Polling for stoppages
  11. 19:20Life of One Time Work
  12. 20:22Life of Periodic Work
  13. 21:15Life of a Chain of Work
  14. 22:23What's wrong with this code?
  15. 23:10Unique work syntax
  16. 23:32Existing WorkPolicy
  17. 24:43WorkManager Configuration
  18. 25:27Setting a custom Configuration
  19. 26:35Advice for library developers
  20. 28:04Get WorkManager
  21. 28:25Helpful links
~/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.