Chaining Worker With Android WorkManager
| | | | |

Chaining Worker With Android WorkManager

Chaining the Worker is the most attractive features of WorkManager. With the work manager, we can easily chain multiple workers together and the run workers in a particular order. I’ve written some pretty good articles on WorkManager before. In these articles, I briefly explain how to use the work manager, setting input and output data,…

InputMerger and ArrayCreatingInputMerger with WorkManager
| | | | | | |

InputMerger and ArrayCreatingInputMerger with WorkManager

In the last article, we discussed how we can set input and output data with WorkManager API. (If you haven’t read the previous article I highly recommended you to read before proceeding.)  In this article, we’re going to learn how we can convert multiple output results into one input using InputMerger. I also wrote a pretty…

Setting Input Data And Output Data With WorkManager
| | | | | |

Setting Input Data And Output Data With WorkManager

When working with WorkManager you may need to pass the argument for your task and also need some result to return. To pass the arguments to a task you need to setInputData to when creating the WorkRequest object.  The input data method takes a Data object. Note: By the way, I wrote a pretty good…

Android WorkManager Example
| | | |

Android WorkManager Example

Hi, guys today I’m gonna talked to you about a new library Google released is WorkManager. WorkManager is a part of AndroidJetpack and an Architecture Component for a background work. WorkManager chooses an appropriate way to schedule a background task depending on the device API level and including dependencies. It might use JobScheduler, Firebase JobDispatcher, or AlarmManager. …