ProgressUpdater


interface ProgressUpdater


Updates progress for a androidx.work.ListenableWorker.

Summary

Public functions

ListenableFuture<Void!>
updateProgress(context: Context, id: UUID, data: Data)

Public functions

updateProgress

Added in 2.3.0
fun updateProgress(context: Context, id: UUID, data: Data): ListenableFuture<Void!>
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 ListenableFuture does not cancel the writes to the database to update progress.