android-components / mozilla.components.service.fretboard.scheduler.workmanager / WorkManagerSyncScheduler

WorkManagerSyncScheduler

class WorkManagerSyncScheduler (source)

Class used to schedule sync of experiment configuration from the server using WorkManager

Constructors

Name Summary
<init> WorkManagerSyncScheduler(context: <ERROR CLASS>)
Class used to schedule sync of experiment configuration from the server using WorkManager

Functions

Name Summary
schedule fun schedule(worker: Class<out SyncWorker>, interval: Pair<Long, TimeUnit> = Pair(1, TimeUnit.DAYS)): Unit
Schedule sync with the default constraints (once a day and charging)

Extension Functions

Name Summary
loadResourceAsString fun Any.loadResourceAsString(path: String): String
Loads a file from the resources folder and returns its content as a string object.