Running Background Tasks in Android with WorkManager: Part 4
Too Long; Didn't Read
In this article, we will look at how to pass data to a task and how to get a result. The data is placed in the `Data` object using its builder. Next, we pass this object to the `setInputData` method of the WorkRequest builder. For the task to return data, you must pass it to the ‘setOutputData’ method.