# ProgressUpdater

Artifact: [androidx.work:work-runtime](https://developer.android.com/jetpack/androidx/releases/work) [View Source](https://cs.android.com/search?q=file:androidx/work/ProgressUpdater.java+class:androidx.work.ProgressUpdater) Added in [2.3.0](https://developer.android.com/jetpack/androidx/releases/work#2.3.0)

*** ** * ** ***

<br />

```
interface ProgressUpdater
```

<br />

*** ** * ** ***

Updates progress for a `https://developer.android.com/reference/kotlin/androidx/work/ListenableWorker`.

## Summary

| ### Public functions |
|---|---|
| `https://guava.dev/releases/snapshot-android/api/docs/com/google/common/util/concurrent/ListenableFuture.html<https://developer.android.com/reference/java/lang/Void.html!>` | `https://developer.android.com/reference/kotlin/androidx/work/ProgressUpdater#updateProgress(android.content.Context,java.util.UUID,androidx.work.Data)(context: https://developer.android.com/reference/android/content/Context.html, id: https://developer.android.com/reference/java/util/UUID.html, data: https://developer.android.com/reference/kotlin/androidx/work/Data)` |

## Public functions

### updateProgress

Added in [2.3.0](https://developer.android.com/jetpack/androidx/releases/work#2.3.0)

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

| Parameters |
|---|---|
| `context: https://developer.android.com/reference/android/content/Context.html` | The application `https://developer.android.com/reference/android/content/Context.html`. |
| `id: https://developer.android.com/reference/java/util/UUID.html` | The `https://developer.android.com/reference/java/util/UUID.html` identifying the `https://developer.android.com/reference/kotlin/androidx/work/ListenableWorker` |
| `data: https://developer.android.com/reference/kotlin/androidx/work/Data` | The progress `https://developer.android.com/reference/kotlin/androidx/work/Data` |

| Returns |
|---|---|
| `https://guava.dev/releases/snapshot-android/api/docs/com/google/common/util/concurrent/ListenableFuture.html<https://developer.android.com/reference/java/lang/Void.html!>` | The `https://guava.dev/releases/snapshot-android/api/docs/com/google/common/util/concurrent/ListenableFuture.html` which resolves after progress is persisted. Cancelling this `https://guava.dev/releases/snapshot-android/api/docs/com/google/common/util/concurrent/ListenableFuture.html` does not cancel the writes to the database to update progress. |