scheduleWithAlarm

inline fun <T> Context.scheduleWithAlarm(enabled: Boolean, interval: Long)

Schedule a repeating alarm that has inexact trigger time requirements.

Parameters

enabled

schedules or cancels the scheduled task

interval

duration between each alarm event in milliseconds