Reminder
Manages reminders in calendars.
Used for creating, fetching and removing reminders from your calendars.
Properties
Section titled “Properties”calendar
Section titled “calendar”Calendar the reminder is stored in.
calendar: CalendarcompletionDate
Section titled “completionDate”Completion date of reminder.
completionDate: DateRead-only.
creationDate
Section titled “creationDate”Creation date of reminder.
creationDate: DateRead-only.
dueDate
Section titled “dueDate”Due date of reminder.
dueDate: DatedueDateIncludesTime
Section titled “dueDateIncludesTime”Whether the due date includes a time.
dueDateIncludesTime: boolWhen this is true, assignments to the dueDate property will include a time, when this is false, the time component of the date will be ignored. Defaults to true.
identifier
Section titled “identifier”Identifier of reminder.
identifier: stringRead-only.
isCompleted
Section titled “isCompleted”Whether the reminder is completed.
isCompleted: boolisOverdue
Section titled “isOverdue”Whether the reminder is overdue.
isOverdue: boolRead-only.
Notes associated with reminder.
notes: stringpriority
Section titled “priority”Priority of reminder.
priority: numberSpecifies the prirority of the reminder with 0 representing an undefined priority, 1 the highest priority, and 9 the lowest priority.
Title of reminder.
title: stringMethods
Section titled “Methods”
new Reminder()
Section titled “new Reminder()”Constructs a reminder.
new Reminder()In order to add the reminder to your calendar, you must call the save() function.
addRecurrenceRule(recurrenceRule)
Section titled “addRecurrenceRule(recurrenceRule)”Adds a recurrence rule.
addRecurrenceRule(recurrenceRule: RecurrenceRule)Recurrence rules specify when the reminder should be repeated. See the documentation of RecurrenceRule for more information on creating rules.
Parameters
Section titled “Parameters”recurrenceRule RecurrenceRule
Recurrence rule to add to the reminder.
all(calendars)
Section titled “all(calendars)”Fetches all reminders.
static all(calendars: [Calendar]): Promise<[Reminder]>For performance reasons iOS limits fetched results to events within a four year timespan.
Parameters
Section titled “Parameters”calendars [Calendar]
Calendars to fetch reminders for. Defaults to all calendars.
Return value
Section titled “Return value”Promise<[Reminder]>
Promise that provides the reminders when fulfilled.
allCompleted(calendars)
Section titled “allCompleted(calendars)”Fetches all completed reminders.
static allCompleted(calendars: [Calendar]): Promise<[Reminder]>For performance reasons iOS limits fetched results to events within a four year timespan.
Parameters
Section titled “Parameters”calendars [Calendar]
Calendars to fetch reminders for. Defaults to all calendars.
Return value
Section titled “Return value”Promise<[Reminder]>
Promise that provides the reminders when fulfilled.
allDueBetween(startDate, endDate, calendars)
Section titled “allDueBetween(startDate, endDate, calendars)”Fetches due reminders.
static allDueBetween(startDate: Date, endDate: Date, calendars: [Calendar]): Promise<[Reminder]>Fetches reminders that are due within the time interval constituted by the start and end dates.
Parameters
Section titled “Parameters”startDate Date
endDate Date
calendars [Calendar]
Calendars to fetch reminders for. Defaults to all calendars.
Return value
Section titled “Return value”Promise<[Reminder]>
Promise that provides the reminders when fulfilled.
allDueLastWeek(calendars)
Section titled “allDueLastWeek(calendars)”Fetches all reminders due last week.
static allDueLastWeek(calendars: [Calendar]): Promise<[Reminder]>Parameters
Section titled “Parameters”calendars [Calendar]
Calendars to fetch reminders for. Defaults to all calendars.
Return value
Section titled “Return value”Promise<[Reminder]>
Promise that provides the reminders when fulfilled.
allDueNextWeek(calendars)
Section titled “allDueNextWeek(calendars)”Fetches all reminders due next week.
static allDueNextWeek(calendars: [Calendar]): Promise<[Reminder]>Parameters
Section titled “Parameters”calendars [Calendar]
Calendars to fetch reminders for. Defaults to all calendars.
Return value
Section titled “Return value”Promise<[Reminder]>
Promise that provides the reminders when fulfilled.
allDueThisWeek(calendars)
Section titled “allDueThisWeek(calendars)”Fetches all reminders due this week.
static allDueThisWeek(calendars: [Calendar]): Promise<[Reminder]>Parameters
Section titled “Parameters”calendars [Calendar]
Calendars to fetch reminders for. Defaults to all calendars.
Return value
Section titled “Return value”Promise<[Reminder]>
Promise that provides the reminders when fulfilled.
allDueToday(calendars)
Section titled “allDueToday(calendars)”Fetches all reminders due today.
static allDueToday(calendars: [Calendar]): Promise<[Reminder]>Parameters
Section titled “Parameters”calendars [Calendar]
Calendars to fetch reminders for. Defaults to all calendars.
Return value
Section titled “Return value”Promise<[Reminder]>
Promise that provides the reminders when fulfilled.
allDueTomorrow(calendars)
Section titled “allDueTomorrow(calendars)”Fetches all reminders due tomorrow.
static allDueTomorrow(calendars: [Calendar]): Promise<[Reminder]>Parameters
Section titled “Parameters”calendars [Calendar]
Calendars to fetch reminders for. Defaults to all calendars.
Return value
Section titled “Return value”Promise<[Reminder]>
Promise that provides the reminders when fulfilled.
allDueYesterday(calendars)
Section titled “allDueYesterday(calendars)”Fetches all reminders due yesterday.
static allDueYesterday(calendars: [Calendar]): Promise<[Reminder]>Parameters
Section titled “Parameters”calendars [Calendar]
Calendars to fetch reminders for. Defaults to all calendars.
Return value
Section titled “Return value”Promise<[Reminder]>
Promise that provides the reminders when fulfilled.
allIncomplete(calendars)
Section titled “allIncomplete(calendars)”Fetches all incomplete reminders.
static allIncomplete(calendars: [Calendar]): Promise<[Reminder]>For performance reasons iOS limits fetched results to events within a four year timespan.
Parameters
Section titled “Parameters”calendars [Calendar]
Calendars to fetch reminders for. Defaults to all calendars.
Return value
Section titled “Return value”Promise<[Reminder]>
Promise that provides the reminders when fulfilled.
completedBetween(startDate, endDate, calendars)
Section titled “completedBetween(startDate, endDate, calendars)”Fetches completed reminders.
static completedBetween(startDate: Date, endDate: Date, calendars: [Calendar]): Promise<[Reminder]>Fetches reminders that were completed within the time interval constituted by the start and end dates.
Parameters
Section titled “Parameters”startDate Date
endDate Date
calendars [Calendar]
Calendars to fetch reminders for. Defaults to all calendars.
Return value
Section titled “Return value”Promise<[Reminder]>
Promise that provides the reminders when fulfilled.
completedDueBetween(startDate, endDate, calendars)
Section titled “completedDueBetween(startDate, endDate, calendars)”Fetches completed reminders.
static completedDueBetween(startDate: Date, endDate: Date, calendars: [Calendar]): Promise<[Reminder]>Fetches reminders that are completed and that were due within the time interval constituted by the start and end dates.
Parameters
Section titled “Parameters”startDate Date
endDate Date
calendars [Calendar]
Calendars to fetch reminders for. Defaults to all calendars.
Return value
Section titled “Return value”Promise<[Reminder]>
Promise that provides the reminders when fulfilled.
completedDueLastWeek(calendars)
Section titled “completedDueLastWeek(calendars)”Fetches completed reminders due last week.
static completedDueLastWeek(calendars: [Calendar]): Promise<[Reminder]>Parameters
Section titled “Parameters”calendars [Calendar]
Calendars to fetch reminders for. Defaults to all calendars.
Return value
Section titled “Return value”Promise<[Reminder]>
Promise that provides the reminders when fulfilled.
completedDueNextWeek(calendars)
Section titled “completedDueNextWeek(calendars)”Fetches completed reminders due next week.
static completedDueNextWeek(calendars: [Calendar]): Promise<[Reminder]>Parameters
Section titled “Parameters”calendars [Calendar]
Calendars to fetch reminders for. Defaults to all calendars.
Return value
Section titled “Return value”Promise<[Reminder]>
Promise that provides the reminders when fulfilled.
completedDueThisWeek(calendars)
Section titled “completedDueThisWeek(calendars)”Fetches completed reminders due this week.
static completedDueThisWeek(calendars: [Calendar]): Promise<[Reminder]>Parameters
Section titled “Parameters”calendars [Calendar]
Calendars to fetch reminders for. Defaults to all calendars.
Return value
Section titled “Return value”Promise<[Reminder]>
Promise that provides the reminders when fulfilled.
completedDueToday(calendars)
Section titled “completedDueToday(calendars)”Fetches completed reminders due today.
static completedDueToday(calendars: [Calendar]): Promise<[Reminder]>Parameters
Section titled “Parameters”calendars [Calendar]
Calendars to fetch reminders for. Defaults to all calendars.
Return value
Section titled “Return value”Promise<[Reminder]>
Promise that provides the reminders when fulfilled.
completedDueTomorrow(calendars)
Section titled “completedDueTomorrow(calendars)”Fetches completed reminders due tomorrow.
static completedDueTomorrow(calendars: [Calendar]): Promise<[Reminder]>Parameters
Section titled “Parameters”calendars [Calendar]
Calendars to fetch reminders for. Defaults to all calendars.
Return value
Section titled “Return value”Promise<[Reminder]>
Promise that provides the reminders when fulfilled.
completedDueYesterday(calendars)
Section titled “completedDueYesterday(calendars)”Fetches completed reminders due yesterday.
static completedDueYesterday(calendars: [Calendar]): Promise<[Reminder]>Parameters
Section titled “Parameters”calendars [Calendar]
Calendars to fetch reminders for. Defaults to all calendars.
Return value
Section titled “Return value”Promise<[Reminder]>
Promise that provides the reminders when fulfilled.
completedLastWeek(calendars)
Section titled “completedLastWeek(calendars)”Fetches reminders completed last week.
static completedLastWeek(calendars: [Calendar]): Promise<[Reminder]>Note that this does not take the due date into account. This will return all reminders that you have completed last week.
Parameters
Section titled “Parameters”calendars [Calendar]
Calendars to fetch reminders for. Defaults to all calendars.
Return value
Section titled “Return value”Promise<[Reminder]>
Promise that provides the reminders when fulfilled.
completedThisWeek(calendars)
Section titled “completedThisWeek(calendars)”Fetches reminders completed this week.
static completedThisWeek(calendars: [Calendar]): Promise<[Reminder]>Note that this does not take the due date into account. This will return all reminders that you have completed this week.
Parameters
Section titled “Parameters”calendars [Calendar]
Calendars to fetch reminders for. Defaults to all calendars.
Return value
Section titled “Return value”Promise<[Reminder]>
Promise that provides the reminders when fulfilled.
completedToday(calendars)
Section titled “completedToday(calendars)”Fetches reminders completed today.
static completedToday(calendars: [Calendar]): Promise<[Reminder]>Note that this does not take the due date into account. This will return all reminders that you have completed today.
Parameters
Section titled “Parameters”calendars [Calendar]
Calendars to fetch reminders for. Defaults to all calendars.
Return value
Section titled “Return value”Promise<[Reminder]>
Promise that provides the reminders when fulfilled.
incompleteDueBetween(startDate, endDate, calendars)
Section titled “incompleteDueBetween(startDate, endDate, calendars)”Fetches incomplete reminders.
static incompleteDueBetween(startDate: Date, endDate: Date, calendars: [Calendar]): Promise<[Reminder]>Fetches reminders that are incomplete and that were due within the time interval constituted by the start and end dates.
Parameters
Section titled “Parameters”startDate Date
endDate Date
calendars [Calendar]
Calendars to fetch reminders for. Defaults to all calendars.
Return value
Section titled “Return value”Promise<[Reminder]>
Promise that provides the reminders when fulfilled.
incompleteDueLastWeek(calendars)
Section titled “incompleteDueLastWeek(calendars)”Fetches incomplete reminders due last week.
static incompleteDueLastWeek(calendars: [Calendar]): Promise<[Reminder]>Parameters
Section titled “Parameters”calendars [Calendar]
Calendars to fetch reminders for. Defaults to all calendars.
Return value
Section titled “Return value”Promise<[Reminder]>
Promise that provides the reminders when fulfilled.
incompleteDueNextWeek(calendars)
Section titled “incompleteDueNextWeek(calendars)”Fetches incomplete reminders due next week.
static incompleteDueNextWeek(calendars: [Calendar]): Promise<[Reminder]>Parameters
Section titled “Parameters”calendars [Calendar]
Calendars to fetch reminders for. Defaults to all calendars.
Return value
Section titled “Return value”Promise<[Reminder]>
Promise that provides the reminders when fulfilled.
incompleteDueThisWeek(calendars)
Section titled “incompleteDueThisWeek(calendars)”Fetches incomplete reminders due this week.
static incompleteDueThisWeek(calendars: [Calendar]): Promise<[Reminder]>Parameters
Section titled “Parameters”calendars [Calendar]
Calendars to fetch reminders for. Defaults to all calendars.
Return value
Section titled “Return value”Promise<[Reminder]>
Promise that provides the reminders when fulfilled.
incompleteDueToday(calendars)
Section titled “incompleteDueToday(calendars)”Fetches incomplete reminders due today.
static incompleteDueToday(calendars: [Calendar]): Promise<[Reminder]>Parameters
Section titled “Parameters”calendars [Calendar]
Calendars to fetch reminders for. Defaults to all calendars.
Return value
Section titled “Return value”Promise<[Reminder]>
Promise that provides the reminders when fulfilled.
incompleteDueTomorrow(calendars)
Section titled “incompleteDueTomorrow(calendars)”Fetches incomplete reminders due tomorrow.
static incompleteDueTomorrow(calendars: [Calendar]): Promise<[Reminder]>Parameters
Section titled “Parameters”calendars [Calendar]
Calendars to fetch reminders for. Defaults to all calendars.
Return value
Section titled “Return value”Promise<[Reminder]>
Promise that provides the reminders when fulfilled.
incompleteDueYesterday(calendars)
Section titled “incompleteDueYesterday(calendars)”Fetches incomplete reminders due yesterday.
static incompleteDueYesterday(calendars: [Calendar]): Promise<[Reminder]>Parameters
Section titled “Parameters”calendars [Calendar]
Calendars to fetch reminders for. Defaults to all calendars.
Return value
Section titled “Return value”Promise<[Reminder]>
Promise that provides the reminders when fulfilled.
remove()
Section titled “remove()”Removes reminder from calendar.
remove()
removeAllRecurrenceRules()
Section titled “removeAllRecurrenceRules()”Removes all recurrence rules.
removeAllRecurrenceRules()
save()
Section titled “save()”Saves reminder.
save()Saves changes to a reminder, inserting it into the calendar if it is newly created.
scheduled(calendars)
Section titled “scheduled(calendars)”Fetches the schedule of reminders.
static scheduled(calendars: [Calendar]): Promise<[Reminder]>The fetched result contains reminders that are due today and reminders that are overdue. This is similar to the reminders shown in the Reminders apps “Scheduled” list. For performance reasons iOS limits fetched results to events within a four year timespan.
Parameters
Section titled “Parameters”calendars [Calendar]
Calendars to fetch reminders for. Defaults to all calendars.
Return value
Section titled “Return value”Promise<[Reminder]>
Promise that provides the reminders when fulfilled.