BackoffPolicy

public final enum BackoffPolicy
extends Enum<BackoffPolicy>

java.lang.Object
   ↳ java.lang.Enum<androidx.work.BackoffPolicy>
     ↳ androidx.work.BackoffPolicy


An enumeration of backoff policies when retrying work. These policies are used when you have a return ListenableWorker.Result.retry() from a worker to determine the correct backoff time. Backoff policies are set in WorkRequest.Builder.setBackoffCriteria(BackoffPolicy, long, TimeUnit) or one of its variants.

Summary

Enum values

BackoffPolicy  EXPONENTIAL

Used to indicate that WorkManager should increase the backoff time exponentially  

BackoffPolicy  LINEAR

Used to indicate that WorkManager should increase the backoff time linearly  

Public methods

static BackoffPolicy valueOf(String name)
static final BackoffPolicy[] values()

Inherited methods