Alarms are alerts which can be attached to Reminder and [[Event objects.
// create reminder with alarmlet list = ReminderList.findOrCreate("Errands");let reminder = list.createReminder();reminder.title = "Get more paper towels";let alarm = Alarm.alarmWithDate((3).days().fromNow());reminder.addAlarm(alarm);reminder.update(); Copy
// create reminder with alarmlet list = ReminderList.findOrCreate("Errands");let reminder = list.createReminder();reminder.title = "Get more paper towels";let alarm = Alarm.alarmWithDate((3).days().fromNow());reminder.addAlarm(alarm);reminder.update();
Static
Alarm set to remind at a specific date/time.
Alarm set to remind at a specific number of seconds relative to the start date of the event. Note that alarms created with this methods are only supported on Event objects, not [[Reminder objects.
Generated using TypeDoc
Alarms are alerts which can be attached to Reminder and [[Event objects.
Example