schedule

fun schedule(minDelayMinutes: Int = 15, replaceExisting: Boolean = true)

Schedule (or reschedule) the app refresh task.

Parameters

minDelayMinutes

Minimum delay before the system may run the task. Apple recommends ≥15 minutes.

replaceExisting

If true, attempt to cancel existing requests before submitting.