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()
Optional
Readonly
The date the alarm is schedule for, if it is a date-based alarm.
The relative offset in seconds for alarms scheduled relative to the event time.
Static
Alarm set to remind at a specific date/time.
Specific date time to assign trigger the alarm.
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.
Number seconds from now
Alarms are alerts which can be attached to Reminder and Event objects.
Example