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

schedule

fun schedule(worker: Class<out SyncWorker>, interval: Pair<Long, TimeUnit> = Pair(1, TimeUnit.DAYS)): Unit (source)

Schedule sync with the default constraints (once a day and charging)

Parameters

worker - worker class