# RemoteWorkContinuation

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

*** ** * ** ***

<br />

```
public abstract class RemoteWorkContinuation
```

<br />

*** ** * ** ***

Provides a subset of `https://developer.android.com/reference/androidx/work/WorkContinuation` APIs that are available for apps that use multiple processes.

## Summary

| ### Public methods |
|---|---|
| `static @https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/work/multiprocess/RemoteWorkContinuation` | `https://developer.android.com/reference/androidx/work/multiprocess/RemoteWorkContinuation#combine(java.util.List<androidx.work.multiprocess.RemoteWorkContinuation>)(@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/java/util/List.html<https://developer.android.com/reference/androidx/work/multiprocess/RemoteWorkContinuation> continuations)` Combines multiple `https://developer.android.com/reference/androidx/work/multiprocess/RemoteWorkContinuation`s as prerequisites for a new RemoteWorkContinuation to allow for complex chaining. |
| `abstract @https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html 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/androidx/work/multiprocess/RemoteWorkContinuation#enqueue()()` Enqueues the instance of `https://developer.android.com/reference/androidx/work/multiprocess/RemoteWorkContinuation` on the background thread. |
| `abstract @https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/work/multiprocess/RemoteWorkContinuation` | `https://developer.android.com/reference/androidx/work/multiprocess/RemoteWorkContinuation#then(java.util.List<androidx.work.OneTimeWorkRequest>)(@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/java/util/List.html<https://developer.android.com/reference/androidx/work/OneTimeWorkRequest> work)` Adds new `https://developer.android.com/reference/androidx/work/OneTimeWorkRequest` items that depend on the successful completion of all previously added `https://developer.android.com/reference/androidx/work/OneTimeWorkRequest`s. |
| `final @https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/work/multiprocess/RemoteWorkContinuation` | `https://developer.android.com/reference/androidx/work/multiprocess/RemoteWorkContinuation#then(androidx.work.OneTimeWorkRequest)(@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/work/OneTimeWorkRequest work)` Adds new `https://developer.android.com/reference/androidx/work/OneTimeWorkRequest` items that depend on the successful completion of all previously added `https://developer.android.com/reference/androidx/work/OneTimeWorkRequest`s. |

## Public methods

### combine

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

```
public static @NonNull RemoteWorkContinuation combine(@NonNull List<RemoteWorkContinuation> continuations)
```

Combines multiple `https://developer.android.com/reference/androidx/work/multiprocess/RemoteWorkContinuation`s as prerequisites for a new RemoteWorkContinuation to allow for complex chaining.

| Parameters |
|---|---|
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/java/util/List.html<https://developer.android.com/reference/androidx/work/multiprocess/RemoteWorkContinuation> continuations` | One or more `https://developer.android.com/reference/androidx/work/multiprocess/RemoteWorkContinuation`s that are prerequisites for the return value |

| Returns |
|---|---|
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/work/multiprocess/RemoteWorkContinuation` | A `https://developer.android.com/reference/androidx/work/multiprocess/RemoteWorkContinuation` that allows further chaining |

### enqueue

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

```
public abstract @NonNull ListenableFuture<Void> enqueue()
```

Enqueues the instance of `https://developer.android.com/reference/androidx/work/multiprocess/RemoteWorkContinuation` on the background thread.

| Returns |
|---|---|
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://guava.dev/releases/snapshot-android/api/docs/com/google/common/util/concurrent/ListenableFuture.html<https://developer.android.com/reference/java/lang/Void.html>` | An `https://guava.dev/releases/snapshot-android/api/docs/com/google/common/util/concurrent/ListenableFuture.html` that can be used to determine when the enqueue has completed |

### then

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

```
public abstract @NonNull RemoteWorkContinuation then(@NonNull List<OneTimeWorkRequest> work)
```

Adds new `https://developer.android.com/reference/androidx/work/OneTimeWorkRequest` items that depend on the successful completion of all previously added `https://developer.android.com/reference/androidx/work/OneTimeWorkRequest`s.

| Parameters |
|---|---|
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/java/util/List.html<https://developer.android.com/reference/androidx/work/OneTimeWorkRequest> work` | One or more `https://developer.android.com/reference/androidx/work/OneTimeWorkRequest` to add as dependents |

| Returns |
|---|---|
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/work/multiprocess/RemoteWorkContinuation` | A `https://developer.android.com/reference/androidx/work/multiprocess/RemoteWorkContinuation` that allows for further chaining of dependent `https://developer.android.com/reference/androidx/work/OneTimeWorkRequest`s |

### then

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

```
public final @NonNull RemoteWorkContinuation then(@NonNull OneTimeWorkRequest work)
```

Adds new `https://developer.android.com/reference/androidx/work/OneTimeWorkRequest` items that depend on the successful completion of all previously added `https://developer.android.com/reference/androidx/work/OneTimeWorkRequest`s.

| Parameters |
|---|---|
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/work/OneTimeWorkRequest work` | One or more `https://developer.android.com/reference/androidx/work/OneTimeWorkRequest`s to add as dependents |

| Returns |
|---|---|
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/work/multiprocess/RemoteWorkContinuation` | A `https://developer.android.com/reference/androidx/work/multiprocess/RemoteWorkContinuation` that allows for further chaining of dependent `https://developer.android.com/reference/androidx/work/OneTimeWorkRequest`s |