RemoteWorkContinuation
public
abstract
class
RemoteWorkContinuation
extends Object
java.lang.Object | |
↳ | androidx.work.multiprocess.RemoteWorkContinuation |
Provides a subset of WorkContinuation
APIs that are available for apps
that use multiple processes.
Summary
Public methods | |
---|---|
static
RemoteWorkContinuation
|
combine(List<RemoteWorkContinuation> continuations)
Combines multiple |
abstract
ListenableFuture<Void>
|
enqueue()
Enqueues the instance of |
final
RemoteWorkContinuation
|
then(OneTimeWorkRequest work)
Adds new |
abstract
RemoteWorkContinuation
|
then(List<OneTimeWorkRequest> work)
Adds new |
Inherited methods | |
---|---|
Public methods
combine
public static RemoteWorkContinuation combine (List<RemoteWorkContinuation> continuations)
Combines multiple RemoteWorkContinuation
s as prerequisites for a new
RemoteWorkContinuation to allow for complex chaining.
Parameters | |
---|---|
continuations |
List : One or more RemoteWorkContinuation s that are
prerequisites for the return value |
Returns | |
---|---|
RemoteWorkContinuation |
A RemoteWorkContinuation that allows further chaining
|
enqueue
public abstract ListenableFuture<Void> enqueue ()
Enqueues the instance of RemoteWorkContinuation
on the background thread.
Returns | |
---|---|
ListenableFuture<Void> |
An ListenableFuture that can be used to determine when the enqueue
has completed
|
then
public final RemoteWorkContinuation then (OneTimeWorkRequest work)
Adds new OneTimeWorkRequest
items that depend on the successful completion of
all previously added OneTimeWorkRequest
s.
Parameters | |
---|---|
work |
OneTimeWorkRequest : One or more OneTimeWorkRequest s to add as dependents |
Returns | |
---|---|
RemoteWorkContinuation |
A RemoteWorkContinuation that allows for further chaining of dependent
OneTimeWorkRequest s
|
then
public abstract RemoteWorkContinuation then (List<OneTimeWorkRequest> work)
Adds new OneTimeWorkRequest
items that depend on the successful completion
of all previously added OneTimeWorkRequest
s.
Parameters | |
---|---|
work |
List : One or more OneTimeWorkRequest to add as dependents |
Returns | |
---|---|
RemoteWorkContinuation |
A RemoteWorkContinuation that allows for further chaining of dependent
OneTimeWorkRequest s
|