Notes: 06. Conclusion
The student materials have been reviewed and are updated as of SEPTEMBER 2022.
Well done! You’ve reached the end of the first part. This was an exciting first part! You’ve learned so much about the WorkManager API, by working on a small and simple app.
The WorkManager API revolves around building special Worker classes, which you can send data to, and receive results from. Each worker is a unit on its own, and while building Workers, you can specify when they will start, and if they have any special constraints.
Constraints can be simple and complex. You can constrain Workers to a specific Internet connection type, like WiFi or Metered. But you can also add more complex conditions, like avoiding low battery or low storage situations. You can also constrain the Workers to run only if the device is being charged!
Not only can you launch Workers, but you can return a result from a worker, chain Workers together, and propagate the results from one Worker to another! You can also observe the status of your work using LiveData objects!
[Remove slide]
The WorkManager API is really helpful and easy to use, for background tasks. This was just an introduction to the API on a smaller app.
In the next part of the course, you’ll repeat these concepts on a more complex app, with more use cases! See you in the next part! :]