Slide 51
Slide 51 text
val periodicRefreshRequest = PeriodicWorkRequest.Builder(
SyncWorker::class.java, // the worker class
30, // repeating interval
TimeUnit.Minutes,
15, // flex interval - worker will run somehow within
this period of time, but at the end of repeating interval
TimeUnit.MINUTES
)