ProgressUpdater
public
interface
ProgressUpdater
androidx.work.ProgressUpdater |
Updates progress for a ListenableWorker
.
Summary
Public methods | |
---|---|
abstract
ListenableFuture<Void>
|
updateProgress(Context context, UUID id, Data data)
|
Public methods
updateProgress
public abstract ListenableFuture<Void> updateProgress (Context context, UUID id, Data data)
Parameters | |
---|---|
context |
Context : The application Context . |
id |
UUID : The UUID identifying the ListenableWorker |
data |
Data : The progress Data |
Returns | |
---|---|
ListenableFuture<Void> |
The ListenableFuture which resolves after progress is persisted.
Cancelling this |