Fixed
Status Update
Comments
pa...@gmail.com <pa...@gmail.com> #2
Can you change the type of this issue to Feature Request?
pa...@gmail.com <pa...@gmail.com> #3
Any news here?
pm...@google.com <pm...@google.com> #4
You can observe the WorkManager status of your work requesting a LiveData for the Work's WorkInfo: https://developer.android.com/topic/libraries/architecture/workmanager/how-to/states-and-observation
This gives you information about the status of your work (Blocked, Enqueued, Cancelled, etc).
To get information about the status of the task you're doing inside a worker (like, as you wrote, getting the progress for a file update) you should handle this information yourself between the worker and the UI.
WorkManager only provides support to pass information from the worker when the task is complete through the Result.succes(data) or Result.failure(data) calls.
This gives you information about the status of your work (Blocked, Enqueued, Cancelled, etc).
To get information about the status of the task you're doing inside a worker (like, as you wrote, getting the progress for a file update) you should handle this information yourself between the worker and the UI.
WorkManager only provides support to pass information from the worker when the task is complete through the Result.succes(data) or Result.failure(data) calls.
pa...@gmail.com <pa...@gmail.com> #5
Manual handling of progress is what i am doing right now.
But I think will be better if progress report is supported natively by WorkManager.
But I think will be better if progress report is supported natively by WorkManager.
Description
Version used: 1.0.0-alpha01
Devices/Android versions reproduced on: n/a
Will be very usefull to be possible to report a progress from the Worker to the UI.
For instance, to show the user the progress of the upload of a file,
Thanks and keep the good work.