ExistingPeriodicWorkPolicy
class ExistingPeriodicWorkPolicy
kotlin.Any | ||
↳ | kotlin.Enum<androidx.work.ExistingPeriodicWorkPolicy> | |
↳ | androidx.work.ExistingPeriodicWorkPolicy |
An enumeration of the conflict resolution policies available to unique PeriodicWorkRequest
s in case of a collision.
Summary
Enum values | |
---|---|
If there is existing pending (uncompleted) work with the same unique name, do nothing. |
|
If there is existing pending (uncompleted) work with the same unique name, cancel and delete it. |
Enum values
KEEP
enum val KEEP : ExistingPeriodicWorkPolicy
If there is existing pending (uncompleted) work with the same unique name, do nothing. Otherwise, insert the newly-specified work.
REPLACE
enum val REPLACE : ExistingPeriodicWorkPolicy
If there is existing pending (uncompleted) work with the same unique name, cancel and delete it. Then, insert the newly-specified work.