PeriodicWorkRequest.Builder

public static final class PeriodicWorkRequest.Builder
extends Builder<PeriodicWorkRequest.BuilderPeriodicWorkRequest>

java.lang.Object
   ↳ androidx.work.WorkRequest.Builder<androidx.work.PeriodicWorkRequest.Builderandroidx.work.PeriodicWorkRequest>
     ↳ androidx.work.PeriodicWorkRequest.Builder


Builder for PeriodicWorkRequests.

Summary

Public constructors

Builder(Class<? extends ListenableWorker> workerClass, long repeatInterval, TimeUnit repeatIntervalTimeUnit)

Creates a PeriodicWorkRequest to run periodically once every interval period.

Builder(Class<? extends ListenableWorker> workerClass, Duration repeatInterval)

Creates a PeriodicWorkRequest to run periodically once every interval period.

Builder(Class<? extends ListenableWorker> workerClass, long repeatInterval, TimeUnit repeatIntervalTimeUnit, long flexInterval, TimeUnit flexIntervalTimeUnit)

Creates a PeriodicWorkRequest to run periodically once within the flex period of every interval period.

Builder(Class<? extends ListenableWorker> workerClass, Duration repeatInterval, Duration flexInterval)

Creates a PeriodicWorkRequest to run periodically once within the flex period of every interval period.

Inherited methods