Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Simplifying Backgound Tasks with WorkManager

Simplifying Backgound Tasks with WorkManager

A short intro to the WorkManager Android library. I gave this talk at the Google I/O Extended 2019 Budapest event (https://www.meetup.com/GDG-Budapest/events/260007215/)

E8168a08862631072b2e82e7b662dc07?s=128

István Juhos

May 07, 2019
Tweet

More Decks by István Juhos

Other Decks in Programming

Transcript

  1. Juhos István juhos.istvan@autsoft.hu Simplifying Background Tasks with WorkManager 2019. 05.

    07.
  2. 2019. 05. 07. Opportunistic Guaranteed Background Execution Deferred

  3. 2019. 05. 07. Opportunistic

  4. 2019. 05. 07. Guaranteed Opportunistic

  5. 2019. 05. 07. Deferred Opportunistic Guaranteed

  6. 2019. 05. 07. Background Opportunistic Guaranteed Deferred

  7. 2019. 05. 07. Opportunistic Guaranteed Background Execution Deferred

  8. Enter WorkManager Part of Android Jetpack Part of Architecture Components

    2019. 05. 07.
  9. Enter WorkManager API 14-22 AlarmManager + BroadcastReceivers API 23+: JobScheduler

    2019. 05. 07.
  10. Defining a Work 2019. 05. 07.

  11. Defining a Work 2019. 05. 07.

  12. Defining a Work 2019. 05. 07.

  13. Constraints 2019. 05. 07.

  14. Constraints 2019. 05. 07.

  15. OneTimeWorkRequest 2019. 05. 07.

  16. OneTimeWorkRequest 2019. 05. 07.

  17. Enqueue Work 2019. 05. 07.

  18. Enqueue Work 2019. 05. 07.

  19. Enqueue Periodic Work 2019. 05. 07.

  20. Enqueue Periodic Work 2019. 05. 07.

  21. Enqueue Periodic Work 2019. 05. 07.

  22. And So Much More… Parameterized Works Work hierarchy, passing down

    results Configurable Executor Monitoring the state of Works (LiveData!) Kotlin Coroutines and Rx support Testing library 2019. 05. 07.
  23. None
  24. None
  25. None
  26. https://developer.android.com/guide/background/

  27. juhos.istvan@autsoft.hu Any questions? @stewemetal