O Google tem o compromisso de promover a igualdade racial para as comunidades negras. Saiba como.

RemoteWorkManager

abstract class RemoteWorkManager
kotlin.Any
   ↳ androidx.work.multiprocess.RemoteWorkManager

A subset of androidx.work.WorkManager APIs that are available for apps that use multiple processes.

Summary

Public methods
RemoteWorkContinuation
beginUniqueWork(@NonNull uniqueWorkName: String, @NonNull existingWorkPolicy: ExistingWorkPolicy, @NonNull work: OneTimeWorkRequest)

This method allows you to begin unique chains of work for situations where you only want one chain with a given name to be active at a time.

abstract RemoteWorkContinuation
beginUniqueWork(@NonNull uniqueWorkName: String, @NonNull existingWorkPolicy: ExistingWorkPolicy, @NonNull work: MutableList<OneTimeWorkRequest!>)

This method allows you to begin unique chains of work for situations where you only want one chain with a given name to be active at a time.

RemoteWorkContinuation
beginWith(@NonNull work: OneTimeWorkRequest)

Begins a chain with one or more OneTimeWorkRequests, which can be enqueued together in the future using RemoteWorkContinuation#enqueue().

abstract RemoteWorkContinuation

Begins a chain with one or more OneTimeWorkRequests, which can be enqueued together in the future using RemoteWorkContinuation#enqueue().

abstract ListenableFuture<Void!>

Cancels all unfinished work.

abstract ListenableFuture<Void!>
cancelAllWorkByTag(@NonNull tag: String)

Cancels all unfinished work with the given tag.

abstract ListenableFuture<Void!>
cancelUniqueWork(@NonNull uniqueWorkName: String)

Cancels all unfinished work in the work chain with the given name.

abstract ListenableFuture<Void!>
cancelWorkById(@NonNull id: UUID)

Cancels work with the given id if it isn't finished.

abstract ListenableFuture<Void!>
enqueue(@NonNull request: WorkRequest)

Enqueues one item for background processing.

abstract ListenableFuture<Void!>
enqueue(@NonNull requests: MutableList<WorkRequest!>)

Enqueues one or more items for background processing.

abstract ListenableFuture<Void!>
enqueueUniquePeriodicWork(@NonNull uniqueWorkName: String, @NonNull existingPeriodicWorkPolicy: ExistingPeriodicWorkPolicy, @NonNull periodicWork: PeriodicWorkRequest)

This method allows you to enqueue a uniquely-named PeriodicWorkRequest, where only one PeriodicWorkRequest of a particular name can be active at a time.

ListenableFuture<Void!>
enqueueUniqueWork(@NonNull uniqueWorkName: String, @NonNull existingWorkPolicy: ExistingWorkPolicy, @NonNull work: OneTimeWorkRequest)

This method allows you to enqueue work requests to a uniquely-named RemoteWorkContinuation, where only one continuation of a particular name can be active at a time.

abstract ListenableFuture<Void!>
enqueueUniqueWork(@NonNull uniqueWorkName: String, @NonNull existingWorkPolicy: ExistingWorkPolicy, @NonNull work: MutableList<OneTimeWorkRequest!>)

This method allows you to enqueue work requests to a uniquely-named RemoteWorkContinuation, where only one continuation of a particular name can be active at a time.

open static RemoteWorkManager
getInstance(@NonNull context: Context)

Gets the instance of RemoteWorkManager which provides a subset of WorkManager APIs that are safe to use for apps that use multiple processes.

abstract ListenableFuture<