RemoteWorkContinuation
abstract class RemoteWorkContinuation
Provides a subset of androidx.work.WorkContinuation APIs that are available for apps that use multiple processes.
Summary
Public functions |
|
|---|---|
java-static RemoteWorkContinuation |
combine(continuations: (Mutable)List<RemoteWorkContinuation!>)Combines multiple |
abstract ListenableFuture<Void!> |
enqueue()Enqueues the instance of |
abstract RemoteWorkContinuation |
then(work: (Mutable)List<OneTimeWorkRequest!>)Adds new |
RemoteWorkContinuation |
then(work: OneTimeWorkRequest)Adds new |
Public functions
combine
java-static fun combine(continuations: (Mutable)List<RemoteWorkContinuation!>): RemoteWorkContinuation
Combines multiple RemoteWorkContinuations as prerequisites for a new RemoteWorkContinuation to allow for complex chaining.
| Parameters | |
|---|---|
continuations: (Mutable)List<RemoteWorkContinuation!> |
One or more |
| Returns | |
|---|---|
RemoteWorkContinuation |
A |
enqueue
abstract fun enqueue(): ListenableFuture<Void!>
Enqueues the instance of RemoteWorkContinuation on the background thread.
| Returns | |
|---|---|
ListenableFuture<Void!> |
An |
then
abstract fun then(work: (Mutable)List<OneTimeWorkRequest!>): RemoteWorkContinuation
Adds new OneTimeWorkRequest items that depend on the successful completion of all previously added OneTimeWorkRequests.
| Parameters | |
|---|---|
work: (Mutable)List<OneTimeWorkRequest!> |
One or more |
| Returns | |
|---|---|
RemoteWorkContinuation |
A |
then
fun then(work: OneTimeWorkRequest): RemoteWorkContinuation
Adds new OneTimeWorkRequest items that depend on the successful completion of all previously added OneTimeWorkRequests.
| Parameters | |
|---|---|
work: OneTimeWorkRequest |
One or more |
| Returns | |
|---|---|
RemoteWorkContinuation |
A |