@ebarooni/capacitor-calendar 7.2.0 → 7.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/EbarooniCapacitorCalendar.podspec +1 -1
- package/Package.swift +2 -2
- package/README.md +901 -466
- package/android/src/main/java/dev/barooni/capacitor/calendar/CapacitorCalendarPlugin.kt +57 -7
- package/android/src/main/java/dev/barooni/capacitor/calendar/PluginError.kt +35 -19
- package/android/src/main/java/dev/barooni/capacitor/calendar/implementation/CapacitorCalendar.kt +312 -85
- package/android/src/main/java/dev/barooni/capacitor/calendar/models/data/CalendarEvent.kt +4 -0
- package/android/src/main/java/dev/barooni/capacitor/calendar/models/data/EventDeleteInfo.kt +8 -0
- package/android/src/main/java/dev/barooni/capacitor/calendar/models/data/EventRecurrenceRule.kt +135 -0
- package/android/src/main/java/dev/barooni/capacitor/calendar/models/enums/EventSpan.kt +13 -0
- package/android/src/main/java/dev/barooni/capacitor/calendar/models/inputs/CheckPermissionInput.kt +0 -4
- package/android/src/main/java/dev/barooni/capacitor/calendar/models/inputs/CreateCalendarInput.kt +3 -1
- package/android/src/main/java/dev/barooni/capacitor/calendar/models/inputs/CreateEventInput.kt +1 -0
- package/android/src/main/java/dev/barooni/capacitor/calendar/models/inputs/CreateEventWithPromptInput.kt +5 -0
- package/android/src/main/java/dev/barooni/capacitor/calendar/models/inputs/DeleteCalendarInput.kt +4 -1
- package/android/src/main/java/dev/barooni/capacitor/calendar/models/inputs/DeleteEventInput.kt +4 -1
- package/android/src/main/java/dev/barooni/capacitor/calendar/models/inputs/DeleteEventWithPromptInput.kt +4 -1
- package/android/src/main/java/dev/barooni/capacitor/calendar/models/inputs/DeleteEventsByIdInput.kt +2 -0
- package/android/src/main/java/dev/barooni/capacitor/calendar/models/inputs/GetDefaultCalendarInput.kt +9 -0
- package/android/src/main/java/dev/barooni/capacitor/calendar/models/inputs/ModifyCalendarInput.kt +10 -1
- package/android/src/main/java/dev/barooni/capacitor/calendar/models/inputs/ModifyEvent.kt +3 -1
- package/android/src/main/java/dev/barooni/capacitor/calendar/models/inputs/ModifyEventWithPromptInput.kt +3 -0
- package/android/src/main/java/dev/barooni/capacitor/calendar/models/inputs/RequestPermissionInput.kt +3 -5
- package/android/src/main/java/dev/barooni/capacitor/calendar/models/results/CheckAllPermissionsResult.kt +3 -2
- package/android/src/main/java/dev/barooni/capacitor/calendar/models/results/CreateEventResult.kt +1 -0
- package/android/src/main/java/dev/barooni/capacitor/calendar/models/results/CreateEventWithPromptResult.kt +1 -0
- package/android/src/main/java/dev/barooni/capacitor/calendar/models/results/GetDefaultCalendarResult.kt +1 -0
- package/android/src/main/java/dev/barooni/capacitor/calendar/models/results/ListCalendarsResult.kt +1 -0
- package/android/src/main/java/dev/barooni/capacitor/calendar/models/results/ListEventsInRangeResult.kt +4 -0
- package/android/src/main/java/dev/barooni/capacitor/calendar/models/results/RequestAllPermissionsResult.kt +1 -1
- package/android/src/main/java/dev/barooni/capacitor/calendar/models/templates/PluginCompletion.kt +8 -0
- package/android/src/main/java/dev/barooni/capacitor/calendar/utils/ImplementationHelper.kt +468 -39
- package/dist/docs.json +3046 -1048
- package/dist/esm/definitions.d.ts +5 -5
- package/dist/esm/definitions.js.map +1 -1
- package/dist/esm/index.d.ts +71 -48
- package/dist/esm/index.js +17 -17
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/schemas/enums/attendee-role.js.map +1 -1
- package/dist/esm/schemas/enums/attendee-status.js.map +1 -1
- package/dist/esm/schemas/enums/attendee-type.js.map +1 -1
- package/dist/esm/schemas/enums/calendar-permission-scope.d.ts +9 -1
- package/dist/esm/schemas/enums/calendar-permission-scope.js +9 -1
- package/dist/esm/schemas/enums/calendar-permission-scope.js.map +1 -1
- package/dist/esm/schemas/enums/event-span.d.ts +4 -0
- package/dist/esm/schemas/enums/event-span.js +4 -0
- package/dist/esm/schemas/enums/event-span.js.map +1 -1
- package/dist/esm/schemas/enums/event-status.js.map +1 -1
- package/dist/esm/schemas/enums/reminder-recurrence-frequency.d.ts +5 -5
- package/dist/esm/schemas/enums/reminder-recurrence-frequency.js +5 -5
- package/dist/esm/schemas/enums/reminder-recurrence-frequency.js.map +1 -1
- package/dist/esm/schemas/interfaces/calendar-event.d.ts +145 -70
- package/dist/esm/schemas/interfaces/calendar-event.js.map +1 -1
- package/dist/esm/schemas/interfaces/calendar-source.d.ts +4 -1
- package/dist/esm/schemas/interfaces/calendar-source.js.map +1 -1
- package/dist/esm/schemas/interfaces/calendar.d.ts +22 -4
- package/dist/esm/schemas/interfaces/calendar.js.map +1 -1
- package/dist/esm/schemas/interfaces/check-permission-options.d.ts +19 -0
- package/dist/esm/schemas/interfaces/check-permission-options.js +2 -0
- package/dist/esm/schemas/interfaces/check-permission-options.js.map +1 -0
- package/dist/esm/schemas/interfaces/create-calendar-options.d.ts +19 -6
- package/dist/esm/schemas/interfaces/create-calendar-options.js.map +1 -1
- package/dist/esm/schemas/interfaces/create-calendar-result.d.ts +12 -0
- package/dist/esm/schemas/interfaces/create-calendar-result.js +2 -0
- package/dist/esm/schemas/interfaces/create-calendar-result.js.map +1 -0
- package/dist/esm/schemas/interfaces/create-event-options.d.ts +86 -51
- package/dist/esm/schemas/interfaces/create-event-options.js.map +1 -1
- package/dist/esm/schemas/interfaces/create-event-result.d.ts +22 -0
- package/dist/esm/schemas/interfaces/create-event-result.js +2 -0
- package/dist/esm/schemas/interfaces/create-event-result.js.map +1 -0
- package/dist/esm/schemas/interfaces/create-event-with-prompt-options.d.ts +73 -36
- package/dist/esm/schemas/interfaces/create-event-with-prompt-options.js.map +1 -1
- package/dist/esm/schemas/interfaces/create-event-with-prompt-result.d.ts +23 -0
- package/dist/esm/schemas/interfaces/create-event-with-prompt-result.js +2 -0
- package/dist/esm/schemas/interfaces/create-event-with-prompt-result.js.map +1 -0
- package/dist/esm/schemas/interfaces/create-reminder-options.d.ts +42 -12
- package/dist/esm/schemas/interfaces/create-reminder-options.js.map +1 -1
- package/dist/esm/schemas/interfaces/create-reminder-result.d.ts +12 -0
- package/dist/esm/schemas/interfaces/create-reminder-result.js +2 -0
- package/dist/esm/schemas/interfaces/create-reminder-result.js.map +1 -0
- package/dist/esm/schemas/interfaces/create-reminders-list-options.d.ts +46 -0
- package/dist/esm/schemas/interfaces/create-reminders-list-options.js +2 -0
- package/dist/esm/schemas/interfaces/create-reminders-list-options.js.map +1 -0
- package/dist/esm/schemas/interfaces/create-reminders-list-result.d.ts +12 -0
- package/dist/esm/schemas/interfaces/create-reminders-list-result.js +2 -0
- package/dist/esm/schemas/interfaces/create-reminders-list-result.js.map +1 -0
- package/dist/esm/schemas/interfaces/delete-calendar-options.d.ts +1 -0
- package/dist/esm/schemas/interfaces/delete-calendar-options.js.map +1 -1
- package/dist/esm/schemas/interfaces/delete-event-options.d.ts +29 -4
- package/dist/esm/schemas/interfaces/delete-event-options.js.map +1 -1
- package/dist/esm/schemas/interfaces/delete-event-with-prompt-options.d.ts +39 -14
- package/dist/esm/schemas/interfaces/delete-event-with-prompt-options.js.map +1 -1
- package/dist/esm/schemas/interfaces/delete-events-by-id-options.d.ts +16 -4
- package/dist/esm/schemas/interfaces/delete-events-by-id-options.js.map +1 -1
- package/dist/esm/schemas/interfaces/delete-reminder-options.d.ts +10 -0
- package/dist/esm/schemas/interfaces/delete-reminder-options.js.map +1 -1
- package/dist/esm/schemas/interfaces/delete-reminder-with-prompt-result.d.ts +12 -0
- package/dist/esm/schemas/interfaces/delete-reminder-with-prompt-result.js +2 -0
- package/dist/esm/schemas/interfaces/delete-reminder-with-prompt-result.js.map +1 -0
- package/dist/esm/schemas/interfaces/delete-reminders-by-id-result.d.ts +13 -0
- package/dist/esm/schemas/interfaces/delete-reminders-by-id-result.js +2 -0
- package/dist/esm/schemas/interfaces/delete-reminders-by-id-result.js.map +1 -0
- package/dist/esm/schemas/interfaces/delete-reminders-list-options.d.ts +23 -0
- package/dist/esm/schemas/interfaces/delete-reminders-list-options.js +2 -0
- package/dist/esm/schemas/interfaces/delete-reminders-list-options.js.map +1 -0
- package/dist/esm/schemas/interfaces/event-recurrence-rule.d.ts +96 -0
- package/dist/esm/schemas/interfaces/event-recurrence-rule.js +2 -0
- package/dist/esm/schemas/interfaces/event-recurrence-rule.js.map +1 -0
- package/dist/esm/schemas/interfaces/fetch-all-calendar-sources-result.d.ts +13 -0
- package/dist/esm/schemas/interfaces/fetch-all-calendar-sources-result.js +2 -0
- package/dist/esm/schemas/interfaces/fetch-all-calendar-sources-result.js.map +1 -0
- package/dist/esm/schemas/interfaces/get-default-calendar-options.d.ts +13 -0
- package/dist/esm/schemas/interfaces/get-default-calendar-options.js +2 -0
- package/dist/esm/schemas/interfaces/get-default-calendar-options.js.map +1 -0
- package/dist/esm/schemas/interfaces/get-default-reminders-list-result.d.ts +13 -0
- package/dist/esm/schemas/interfaces/get-default-reminders-list-result.js +2 -0
- package/dist/esm/schemas/interfaces/get-default-reminders-list-result.js.map +1 -0
- package/dist/esm/schemas/interfaces/get-reminder-by-id-result.d.ts +13 -0
- package/dist/esm/schemas/interfaces/get-reminder-by-id-result.js +2 -0
- package/dist/esm/schemas/interfaces/get-reminder-by-id-result.js.map +1 -0
- package/dist/esm/schemas/interfaces/get-reminders-from-lists-result.d.ts +13 -0
- package/dist/esm/schemas/interfaces/get-reminders-from-lists-result.js +2 -0
- package/dist/esm/schemas/interfaces/get-reminders-from-lists-result.js.map +1 -0
- package/dist/esm/schemas/interfaces/get-reminders-lists-result.d.ts +13 -0
- package/dist/esm/schemas/interfaces/get-reminders-lists-result.js +2 -0
- package/dist/esm/schemas/interfaces/get-reminders-lists-result.js.map +1 -0
- package/dist/esm/schemas/interfaces/list-calendars-result.d.ts +13 -0
- package/dist/esm/schemas/interfaces/list-calendars-result.js +2 -0
- package/dist/esm/schemas/interfaces/list-calendars-result.js.map +1 -0
- package/dist/esm/schemas/interfaces/list-events-in-range-options.d.ts +7 -2
- package/dist/esm/schemas/interfaces/list-events-in-range-options.js.map +1 -1
- package/dist/esm/schemas/interfaces/list-events-in-range-result.d.ts +13 -0
- package/dist/esm/schemas/interfaces/list-events-in-range-result.js +2 -0
- package/dist/esm/schemas/interfaces/list-events-in-range-result.js.map +1 -0
- package/dist/esm/schemas/interfaces/modify-calendar-options.d.ts +13 -2
- package/dist/esm/schemas/interfaces/modify-calendar-options.js.map +1 -1
- package/dist/esm/schemas/interfaces/modify-event-options.d.ts +61 -44
- package/dist/esm/schemas/interfaces/modify-event-options.js.map +1 -1
- package/dist/esm/schemas/interfaces/modify-event-with-prompt-options.d.ts +77 -2
- package/dist/esm/schemas/interfaces/modify-event-with-prompt-options.js.map +1 -1
- package/dist/esm/schemas/interfaces/modify-reminder-options.d.ts +77 -13
- package/dist/esm/schemas/interfaces/modify-reminder-options.js.map +1 -1
- package/dist/esm/schemas/interfaces/open-calendar-options.d.ts +5 -1
- package/dist/esm/schemas/interfaces/open-calendar-options.js.map +1 -1
- package/dist/esm/schemas/interfaces/recurrence-rule.d.ts +8 -2
- package/dist/esm/schemas/interfaces/recurrence-rule.js.map +1 -1
- package/dist/esm/schemas/interfaces/reminder-recurrence-rule.d.ts +1 -1
- package/dist/esm/schemas/interfaces/reminder-recurrence-rule.js.map +1 -1
- package/dist/esm/schemas/interfaces/reminder.d.ts +4 -1
- package/dist/esm/schemas/interfaces/reminder.js.map +1 -1
- package/dist/esm/schemas/interfaces/reminders-list.d.ts +8 -2
- package/dist/esm/schemas/interfaces/reminders-list.js.map +1 -1
- package/dist/esm/schemas/interfaces/request-permission-options.d.ts +16 -0
- package/dist/esm/schemas/interfaces/request-permission-options.js +2 -0
- package/dist/esm/schemas/interfaces/request-permission-options.js.map +1 -0
- package/dist/esm/schemas/interfaces/select-calendars-with-prompt-options.d.ts +1 -1
- package/dist/esm/schemas/interfaces/select-calendars-with-prompt-options.js.map +1 -1
- package/dist/esm/schemas/interfaces/select-calendars-with-prompt-result.d.ts +14 -0
- package/dist/esm/schemas/interfaces/select-calendars-with-prompt-result.js +2 -0
- package/dist/esm/schemas/interfaces/select-calendars-with-prompt-result.js.map +1 -0
- package/dist/esm/schemas/interfaces/update-reminders-list-options.d.ts +43 -0
- package/dist/esm/schemas/interfaces/update-reminders-list-options.js +2 -0
- package/dist/esm/schemas/interfaces/update-reminders-list-options.js.map +1 -0
- package/dist/esm/schemas/interfaces/update-reminders-list-result.d.ts +12 -0
- package/dist/esm/schemas/interfaces/update-reminders-list-result.js +2 -0
- package/dist/esm/schemas/interfaces/update-reminders-list-result.js.map +1 -0
- package/dist/esm/schemas/types/event-edit-action.d.ts +1 -1
- package/dist/esm/schemas/types/event-edit-action.js.map +1 -1
- package/dist/esm/schemas/types/recurrence-frequency.d.ts +4 -0
- package/dist/esm/schemas/types/recurrence-frequency.js +2 -0
- package/dist/esm/schemas/types/recurrence-frequency.js.map +1 -0
- package/dist/esm/schemas/types/system-color-name.d.ts +6 -0
- package/dist/esm/schemas/types/system-color-name.js +2 -0
- package/dist/esm/schemas/types/system-color-name.js.map +1 -0
- package/dist/esm/sub-definitions/calendar-access.d.ts +26 -14
- package/dist/esm/sub-definitions/calendar-access.js.map +1 -1
- package/dist/esm/sub-definitions/calendar-operations.d.ts +68 -21
- package/dist/esm/sub-definitions/calendar-operations.js.map +1 -1
- package/dist/esm/sub-definitions/event-operations.d.ts +46 -25
- package/dist/esm/sub-definitions/event-operations.js.map +1 -1
- package/dist/esm/sub-definitions/reminders-access.d.ts +6 -2
- package/dist/esm/sub-definitions/reminders-access.js.map +1 -1
- package/dist/esm/sub-definitions/reminders-operations.d.ts +78 -43
- package/dist/esm/sub-definitions/reminders-operations.js.map +1 -1
- package/dist/esm/web/download-ics-file.d.ts +18 -0
- package/dist/esm/web/download-ics-file.js +33 -0
- package/dist/esm/web/download-ics-file.js.map +1 -0
- package/dist/esm/web/ics.d.ts +27 -0
- package/dist/esm/web/ics.js +294 -0
- package/dist/esm/web/ics.js.map +1 -0
- package/dist/esm/web.d.ts +70 -82
- package/dist/esm/web.js +121 -6
- package/dist/esm/web.js.map +1 -1
- package/dist/plugin.cjs.js +464 -35
- package/dist/plugin.cjs.js.map +1 -1
- package/dist/plugin.js +464 -35
- package/dist/plugin.js.map +1 -1
- package/ios/{Sources/CapacitorCalendarPlugin → Plugin}/CapacitorCalendarPlugin.swift +148 -81
- package/ios/{Sources/CapacitorCalendarPlugin → Plugin}/Implementation/CapacitorCalendar.swift +203 -110
- package/ios/Plugin/Info.plist +24 -0
- package/ios/Plugin/Models/Enums/EventSpan.swift +8 -0
- package/ios/{Sources/CapacitorCalendarPlugin → Plugin}/Models/Inputs/CreateCalendarInput.swift +6 -4
- package/ios/{Sources/CapacitorCalendarPlugin → Plugin}/Models/Inputs/CreateEventInput.swift +25 -21
- package/ios/Plugin/Models/Inputs/CreateEventWithPromptInput.swift +171 -0
- package/ios/{Sources/CapacitorCalendarPlugin → Plugin}/Models/Inputs/CreateReminderInput.swift +14 -4
- package/ios/Plugin/Models/Inputs/CreateRemindersListInput.swift +43 -0
- package/ios/{Sources/CapacitorCalendarPlugin → Plugin}/Models/Inputs/DeleteCalendarInput.swift +1 -1
- package/ios/{Sources/CapacitorCalendarPlugin → Plugin}/Models/Inputs/DeleteEventInput.swift +9 -4
- package/ios/{Sources/CapacitorCalendarPlugin → Plugin}/Models/Inputs/DeleteEventWithPromptInput.swift +9 -4
- package/ios/{Sources/CapacitorCalendarPlugin → Plugin}/Models/Inputs/DeleteEventsByIdInput.swift +9 -4
- package/ios/{Sources/CapacitorCalendarPlugin → Plugin}/Models/Inputs/DeleteReminderInput.swift +7 -1
- package/ios/Plugin/Models/Inputs/DeleteRemindersListInput.swift +22 -0
- package/ios/Plugin/Models/Inputs/GetDefaultCalendarInput.swift +13 -0
- package/ios/{Sources/CapacitorCalendarPlugin → Plugin}/Models/Inputs/ModifyCalendarInput.swift +6 -3
- package/ios/{Sources/CapacitorCalendarPlugin → Plugin}/Models/Inputs/ModifyEventInput.swift +63 -41
- package/ios/{Sources/CapacitorCalendarPlugin → Plugin}/Models/Inputs/ModifyReminderInput.swift +66 -5
- package/ios/Plugin/Models/Inputs/UpdateRemindersListInput.swift +41 -0
- package/ios/{Sources/CapacitorCalendarPlugin → Plugin}/Models/Results/CreateEventResult.swift +1 -0
- package/ios/{Sources/CapacitorCalendarPlugin → Plugin}/Models/Results/CreateEventWithPromptResult.swift +1 -0
- package/ios/Plugin/Models/Results/CreateRemindersListResult.swift +15 -0
- package/ios/Plugin/Models/Results/ListEventsInRangeResult.swift +29 -0
- package/ios/Plugin/Models/Results/UpdateRemindersListResult.swift +15 -0
- package/ios/Plugin/Models/Structs/RecurrenceInput.swift +41 -0
- package/ios/{Sources/CapacitorCalendarPlugin → Plugin}/PluginConfig.swift +30 -27
- package/ios/{Sources/CapacitorCalendarPlugin → Plugin}/PluginError.swift +74 -56
- package/ios/{Sources/CapacitorCalendarPlugin → Plugin}/Utils/ImplementationHelper.swift +140 -24
- package/ios/{Sources/CapacitorCalendarPlugin → Plugin}/Utils/UIColorFromHexExtension.swift +5 -0
- package/package.json +36 -43
- package/dist/esm/schemas/enums/recurrence-frequency.d.ts +0 -21
- package/dist/esm/schemas/enums/recurrence-frequency.js +0 -23
- package/dist/esm/schemas/enums/recurrence-frequency.js.map +0 -1
- package/ios/Sources/CapacitorCalendarPlugin/Models/Inputs/CreateEventWithPromptInput.swift +0 -89
- package/ios/Sources/CapacitorCalendarPlugin/Models/Results/ListEventsInRangeResult.swift +0 -16
- package/ios/Tests/CapacitorCalendarPluginTests/CapacitorCalendarPluginTests.swift +0 -15
- /package/ios/{Sources/CapacitorCalendarPlugin → Plugin}/Models/Enums/CAPPermissionState.swift +0 -0
- /package/ios/{Sources/CapacitorCalendarPlugin → Plugin}/Models/Enums/CalendarPermissionScope.swift +0 -0
- /package/ios/{Sources/CapacitorCalendarPlugin → Plugin}/Models/Enums/EventEditAction.swift +0 -0
- /package/ios/{Sources/CapacitorCalendarPlugin → Plugin}/Models/Inputs/CheckPermissionInput.swift +0 -0
- /package/ios/{Sources/CapacitorCalendarPlugin → Plugin}/Models/Inputs/DeleteReminderWithPromptInput.swift +0 -0
- /package/ios/{Sources/CapacitorCalendarPlugin → Plugin}/Models/Inputs/DeleteRemindersByIdInput.swift +0 -0
- /package/ios/{Sources/CapacitorCalendarPlugin → Plugin}/Models/Inputs/GetReminderByIdInput.swift +0 -0
- /package/ios/{Sources/CapacitorCalendarPlugin → Plugin}/Models/Inputs/GetRemindersFromListsInput.swift +0 -0
- /package/ios/{Sources/CapacitorCalendarPlugin → Plugin}/Models/Inputs/ListEventsInRangeInput.swift +0 -0
- /package/ios/{Sources/CapacitorCalendarPlugin → Plugin}/Models/Inputs/ModifyEventWithPromptInput.swift +0 -0
- /package/ios/{Sources/CapacitorCalendarPlugin → Plugin}/Models/Inputs/OpenCalendarInput.swift +0 -0
- /package/ios/{Sources/CapacitorCalendarPlugin → Plugin}/Models/Inputs/RequestPermissionInput.swift +0 -0
- /package/ios/{Sources/CapacitorCalendarPlugin → Plugin}/Models/Inputs/SelectCalendarsWithPromptInput.swift +0 -0
- /package/ios/{Sources/CapacitorCalendarPlugin → Plugin}/Models/Results/CheckAllPermissionsResult.swift +0 -0
- /package/ios/{Sources/CapacitorCalendarPlugin → Plugin}/Models/Results/CheckPermissionResult.swift +0 -0
- /package/ios/{Sources/CapacitorCalendarPlugin → Plugin}/Models/Results/CreateCalendarResult.swift +0 -0
- /package/ios/{Sources/CapacitorCalendarPlugin → Plugin}/Models/Results/CreateReminderResult.swift +0 -0
- /package/ios/{Sources/CapacitorCalendarPlugin → Plugin}/Models/Results/DeleteEventWithPromptResult.swift +0 -0
- /package/ios/{Sources/CapacitorCalendarPlugin → Plugin}/Models/Results/DeleteEventsByIdResult.swift +0 -0
- /package/ios/{Sources/CapacitorCalendarPlugin → Plugin}/Models/Results/DeleteRemindersByIdResult.swift +0 -0
- /package/ios/{Sources/CapacitorCalendarPlugin → Plugin}/Models/Results/FetchAllCalendarSourcesResult.swift +0 -0
- /package/ios/{Sources/CapacitorCalendarPlugin → Plugin}/Models/Results/GetDefaultCalendarResult.swift +0 -0
- /package/ios/{Sources/CapacitorCalendarPlugin → Plugin}/Models/Results/GetReminderByIdResult.swift +0 -0
- /package/ios/{Sources/CapacitorCalendarPlugin → Plugin}/Models/Results/GetRemindersFromListsResult.swift +0 -0
- /package/ios/{Sources/CapacitorCalendarPlugin → Plugin}/Models/Results/ListCalendarsResult.swift +0 -0
- /package/ios/{Sources/CapacitorCalendarPlugin → Plugin}/Models/Results/ModifyEventWithPromptResult.swift +0 -0
- /package/ios/{Sources/CapacitorCalendarPlugin → Plugin}/Models/Results/RequestAllPermissionsResult.swift +0 -0
- /package/ios/{Sources/CapacitorCalendarPlugin → Plugin}/Models/Results/RequestPermissionResult.swift +0 -0
- /package/ios/{Sources/CapacitorCalendarPlugin → Plugin}/Models/Results/SelectCalendarsWithPromptResult.swift +0 -0
- /package/ios/{Sources/CapacitorCalendarPlugin → Plugin}/Models/Templates/JSResult.swift +0 -0
package/README.md
CHANGED
|
@@ -1,34 +1,85 @@
|
|
|
1
|
-
|
|
2
|
-
<img src="assets/images/text-logo.png" alt="capacitor-calendar-logo" height="136"/>
|
|
3
|
-
<br>
|
|
4
|
-
<em>A capacitor plugin for managing calendar events on iOS and Android, with reminders support on iOS.</em>
|
|
5
|
-
</p>
|
|
1
|
+
# @ebarooni/capacitor-calendar
|
|
6
2
|
|
|
7
|
-
<p
|
|
8
|
-
<img src="https://img.shields.io/maintenance/yes/
|
|
3
|
+
<p>
|
|
4
|
+
<img src="https://img.shields.io/maintenance/yes/2026?style=flat-square" />
|
|
9
5
|
<a href="https://www.npmjs.com/package/@ebarooni/capacitor-calendar">
|
|
10
6
|
<img src="https://img.shields.io/npm/l/@ebarooni/capacitor-calendar?style=flat-square" />
|
|
11
7
|
</a>
|
|
12
|
-
<br>
|
|
13
8
|
<a href="https://www.npmjs.com/package/@ebarooni/capacitor-calendar">
|
|
14
|
-
<img src="https://img.shields.io/npm/
|
|
9
|
+
<img src="https://img.shields.io/npm/dm/@ebarooni/capacitor-calendar?style=flat-square" />
|
|
15
10
|
</a>
|
|
16
11
|
<a href="https://www.npmjs.com/package/@ebarooni/capacitor-calendar">
|
|
17
12
|
<img src="https://img.shields.io/npm/v/@ebarooni/capacitor-calendar?style=flat-square" />
|
|
18
13
|
</a>
|
|
14
|
+
<a href="https://capacitorjs.com/">
|
|
15
|
+
<img src="https://img.shields.io/badge/Capacitor-8.x-119EFF.svg?style=flat-square" />
|
|
16
|
+
</a>
|
|
17
|
+
<a href="mcp/README.md">
|
|
18
|
+
<img src="https://img.shields.io/badge/MCP-161b22?style=flat&logo=modelcontextprotocol&logoColor=5FB8AF" />
|
|
19
|
+
</a>
|
|
19
20
|
</p>
|
|
20
21
|
|
|
22
|
+

|
|
23
|
+
|
|
24
|
+
`@ebarooni/capacitor-calendar` connects your Capacitor app to the native calendar. On iOS and Android, create, edit, and list events, and manage calendars and permissions. iOS also supports reminders. On the web, the plugin builds a downloadable `.ics` file; it does not write to a device calendar.
|
|
25
|
+
|
|
21
26
|
## Table of Contents
|
|
22
27
|
|
|
23
|
-
- [
|
|
28
|
+
- [Features and Platforms](#features-and-platforms)
|
|
24
29
|
- [Demo](#demo)
|
|
30
|
+
- [Why this plugin?](#why-this-plugin)
|
|
31
|
+
- [MCP Server](#mcp-server)
|
|
32
|
+
- [Installation](#installation)
|
|
25
33
|
- [Setup](#setup)
|
|
34
|
+
- [Quick Start](#quick-start)
|
|
35
|
+
- [Usage Examples](#usage-examples)
|
|
26
36
|
- [Documentation](#documentation)
|
|
27
37
|
- [Changelog](#changelog)
|
|
38
|
+
- [Breaking Changes](#breaking-changes)
|
|
28
39
|
- [API](#api)
|
|
29
40
|
- [Contributing](#contributing)
|
|
30
41
|
- [License](#license)
|
|
31
42
|
|
|
43
|
+
## Features and Platforms
|
|
44
|
+
|
|
45
|
+
| Capability | iOS | Android | Web |
|
|
46
|
+
| :------------------------------------------------ | :-: | :-----: | :-----------: |
|
|
47
|
+
| Create, update, and delete events | ✅ | ✅ | Create only\* |
|
|
48
|
+
| Native prompts to create, edit, and delete events | ✅ | ✅ | Create only\* |
|
|
49
|
+
| List events in a date range | ✅ | ✅ | – |
|
|
50
|
+
| Request calendar permissions | ✅ | ✅ | – |
|
|
51
|
+
| List, create, modify, and delete calendars | ✅ | ✅ | – |
|
|
52
|
+
| Open the native Calendar app | ✅ | ✅ | – |
|
|
53
|
+
| Calendar sources and a calendar picker prompt | ✅ | – | – |
|
|
54
|
+
| Reminders and reminder lists | ✅ | – | – |
|
|
55
|
+
|
|
56
|
+
\* On the web, `createEvent` and `createEventWithPrompt` return a downloadable `.ics` file. They do not write to a device calendar. See [Create and download an event on the web](#create-and-download-an-event-on-the-web).
|
|
57
|
+
|
|
58
|
+
## Demo
|
|
59
|
+
|
|
60
|
+
| iOS | Android |
|
|
61
|
+
| :-----------------------------: | :---------------------------------: |
|
|
62
|
+
|  |  |
|
|
63
|
+
|
|
64
|
+
**Web:** Run the example app in a browser. Use **Create event** or **Create event with prompt** for `.ics` export. Unsupported actions are disabled.
|
|
65
|
+
|
|
66
|
+
## Why this plugin?
|
|
67
|
+
|
|
68
|
+
- **Established.** Available since Capacitor 5, with years of real-world use behind it.
|
|
69
|
+
- **Actively maintained.** The original author still owns the codebase and ships fixes and features.
|
|
70
|
+
- **Fast support.** Questions and bug reports get quick answers.
|
|
71
|
+
- **Lower vendor risk.** Relying on one plugin author for everything is risky. Independent, focused maintainers keep your stack resilient.
|
|
72
|
+
|
|
73
|
+
## MCP Server
|
|
74
|
+
|
|
75
|
+
`@ebarooni/capacitor-calendar` ships an official [MCP](https://modelcontextprotocol.io) server. It gives AI coding assistants accurate, grounded knowledge of the plugin.
|
|
76
|
+
|
|
77
|
+
```bash
|
|
78
|
+
docker run --rm -d --name capacitor-calendar-mcp -p 8080:8080 ghcr.io/ebarooni/capacitor-calendar-mcp:1.2.0
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
See [`mcp/README.md`](mcp/README.md) for client configuration and full details.
|
|
82
|
+
|
|
32
83
|
## Installation
|
|
33
84
|
|
|
34
85
|
```bash
|
|
@@ -36,76 +87,252 @@ npm install @ebarooni/capacitor-calendar
|
|
|
36
87
|
npx cap sync
|
|
37
88
|
```
|
|
38
89
|
|
|
39
|
-
##
|
|
90
|
+
## Setup
|
|
40
91
|
|
|
41
|
-
|
|
42
|
-
| :-----------------------------: | :---------------------------------: |
|
|
43
|
-
|  |  |
|
|
92
|
+
This plugin works with native calendar APIs, so you need to configure permissions on each platform before you request access at runtime. After setup, see [Quick Start](#quick-start) to request permissions in code.
|
|
44
93
|
|
|
45
|
-
|
|
94
|
+
### Android
|
|
95
|
+
|
|
96
|
+
Add these permissions to `android/app/src/main/AndroidManifest.xml`:
|
|
97
|
+
|
|
98
|
+
```xml
|
|
99
|
+
<uses-permission android:name="android.permission.READ_CALENDAR" />
|
|
100
|
+
<uses-permission android:name="android.permission.WRITE_CALENDAR" />
|
|
101
|
+
```
|
|
102
|
+
|
|
103
|
+
Request the matching runtime permissions before you read from or write to the calendar.
|
|
104
|
+
|
|
105
|
+
### iOS
|
|
46
106
|
|
|
47
|
-
|
|
107
|
+
Add the appropriate usage description keys to `ios/App/App/Info.plist`. Starting with iOS 17, Apple requires separate keys for write-only and full calendar access.
|
|
108
|
+
|
|
109
|
+
```xml
|
|
110
|
+
<key>NSCalendarsUsageDescription</key>
|
|
111
|
+
<string>This app needs access to your calendar.</string>
|
|
112
|
+
|
|
113
|
+
<key>NSCalendarsWriteOnlyAccessUsageDescription</key>
|
|
114
|
+
<string>This app needs permission to create calendar events.</string>
|
|
115
|
+
|
|
116
|
+
<key>NSCalendarsFullAccessUsageDescription</key>
|
|
117
|
+
<string>This app needs permission to read and manage your calendar events.</string>
|
|
118
|
+
|
|
119
|
+
<key>NSRemindersUsageDescription</key>
|
|
120
|
+
<string>This app needs access to your reminders.</string>
|
|
121
|
+
|
|
122
|
+
<key>NSRemindersFullAccessUsageDescription</key>
|
|
123
|
+
<string>This app needs permission to read and manage your reminders.</string>
|
|
124
|
+
```
|
|
125
|
+
|
|
126
|
+
> [!IMPORTANT]
|
|
127
|
+
> Only include the keys your app actually needs. If you only create events, you can omit the full access and reminders entries.
|
|
128
|
+
|
|
129
|
+
### Official References
|
|
48
130
|
|
|
49
131
|
- **iOS:** [Migrating to the Latest Calendar Access Levels](https://developer.apple.com/documentation/technotes/tn3152-migrating-to-the-latest-calendar-access-levels)
|
|
50
132
|
- **Android:** [Calendar Provider User Permissions](https://developer.android.com/identity/providers/calendar-provider#manifest)
|
|
51
133
|
|
|
134
|
+
## Quick Start
|
|
135
|
+
|
|
136
|
+
The sample below is for Android and iOS. For Web, see [Create and download an event on the web](#create-and-download-an-event-on-the-web).
|
|
137
|
+
|
|
138
|
+
```typescript
|
|
139
|
+
import { CapacitorCalendar } from '@ebarooni/capacitor-calendar';
|
|
140
|
+
|
|
141
|
+
const { result } = await CapacitorCalendar.requestFullCalendarAccess();
|
|
142
|
+
|
|
143
|
+
if (result !== 'granted') {
|
|
144
|
+
throw new Error('Calendar permission denied');
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
// Create an event starting in 1 hour, lasting 1 hour
|
|
148
|
+
const startDate = Date.now() + 60 * 60 * 1000;
|
|
149
|
+
const endDate = startDate + 60 * 60 * 1000;
|
|
150
|
+
|
|
151
|
+
const { id } = await CapacitorCalendar.createEvent({
|
|
152
|
+
title: 'Product review',
|
|
153
|
+
location: 'Office',
|
|
154
|
+
startDate,
|
|
155
|
+
endDate,
|
|
156
|
+
description: 'Created with @ebarooni/capacitor-calendar',
|
|
157
|
+
});
|
|
158
|
+
|
|
159
|
+
console.log('Event created with ID:', id);
|
|
160
|
+
```
|
|
161
|
+
|
|
162
|
+
> [!NOTE]
|
|
163
|
+
> Dates are expected as Unix timestamps in milliseconds.
|
|
164
|
+
|
|
165
|
+
## Usage Examples
|
|
166
|
+
|
|
167
|
+
### Create and download an event on the web
|
|
168
|
+
|
|
169
|
+
On Web, `createEvent` and `createEventWithPrompt` build an `.ics` file. They do not write to a calendar store. Use `autoDownloadIcsFile` (defaults: `false` on `createEvent`, `true` on `createEventWithPrompt`) or `downloadIcsFile`. Permission APIs are unimplemented. For details, see MCP `docs://web-behavior` ([`mcp/README.md`](mcp/README.md)).
|
|
170
|
+
|
|
171
|
+
```typescript
|
|
172
|
+
import { CapacitorCalendar } from '@ebarooni/capacitor-calendar';
|
|
173
|
+
|
|
174
|
+
const startDate = Date.now() + 60 * 60 * 1000;
|
|
175
|
+
const endDate = startDate + 60 * 60 * 1000;
|
|
176
|
+
|
|
177
|
+
const { ics } = await CapacitorCalendar.createEvent({
|
|
178
|
+
title: 'Team standup',
|
|
179
|
+
startDate,
|
|
180
|
+
endDate,
|
|
181
|
+
icsFileName: 'team-standup.ics',
|
|
182
|
+
autoDownloadIcsFile: true,
|
|
183
|
+
});
|
|
184
|
+
```
|
|
185
|
+
|
|
186
|
+
### Open the native event editor
|
|
187
|
+
|
|
188
|
+
Use the system calendar UI to let users create or edit events (on Web: confirm dialog + ICS):
|
|
189
|
+
|
|
190
|
+
```typescript
|
|
191
|
+
await CapacitorCalendar.createEventWithPrompt({
|
|
192
|
+
title: 'Planning session',
|
|
193
|
+
location: 'Office',
|
|
194
|
+
startDate: Date.now() + 24 * 60 * 60 * 1000,
|
|
195
|
+
endDate: Date.now() + 25 * 60 * 60 * 1000,
|
|
196
|
+
});
|
|
197
|
+
```
|
|
198
|
+
|
|
199
|
+
> [!NOTE]
|
|
200
|
+
> On Android, this method always returns null for `id`. If you need the event ID, call `listEventsInRange(...)` afterward. On Web, cancel resolves with `ics: null`.
|
|
201
|
+
|
|
202
|
+
### Modify or delete an event
|
|
203
|
+
|
|
204
|
+
The sample below is for Android and iOS. Use an `id` from `createEvent` or `listEventsInRange`:
|
|
205
|
+
|
|
206
|
+
```typescript
|
|
207
|
+
await CapacitorCalendar.modifyEvent({
|
|
208
|
+
id: eventId,
|
|
209
|
+
title: 'Updated title',
|
|
210
|
+
});
|
|
211
|
+
|
|
212
|
+
await CapacitorCalendar.deleteEvent({
|
|
213
|
+
id: eventId,
|
|
214
|
+
});
|
|
215
|
+
```
|
|
216
|
+
|
|
217
|
+
### List events in a range
|
|
218
|
+
|
|
219
|
+
`listEventsInRange` returns events that overlap the given range, not only events that start or end inside it. Multi-day events that span the interval are included.
|
|
220
|
+
|
|
221
|
+
```typescript
|
|
222
|
+
const now = Date.now();
|
|
223
|
+
const oneWeekLater = now + 7 * 24 * 60 * 60 * 1000;
|
|
224
|
+
|
|
225
|
+
const { result: events } = await CapacitorCalendar.listEventsInRange({
|
|
226
|
+
from: now,
|
|
227
|
+
to: oneWeekLater,
|
|
228
|
+
});
|
|
229
|
+
|
|
230
|
+
console.log('Upcoming events:', events);
|
|
231
|
+
```
|
|
232
|
+
|
|
233
|
+
To list events on a single day, use that day's bounds:
|
|
234
|
+
|
|
235
|
+
```typescript
|
|
236
|
+
const startOfDay = new Date();
|
|
237
|
+
startOfDay.setHours(0, 0, 0, 0);
|
|
238
|
+
const startOfNextDay = new Date(startOfDay);
|
|
239
|
+
startOfNextDay.setDate(startOfNextDay.getDate() + 1);
|
|
240
|
+
|
|
241
|
+
const { result: todaysEvents } = await CapacitorCalendar.listEventsInRange({
|
|
242
|
+
from: startOfDay.getTime(),
|
|
243
|
+
to: startOfNextDay.getTime(),
|
|
244
|
+
});
|
|
245
|
+
```
|
|
246
|
+
|
|
247
|
+
### Working with Calendars
|
|
248
|
+
|
|
249
|
+
```typescript
|
|
250
|
+
// Get all calendars and default calendar
|
|
251
|
+
const { result: calendars } = await CapacitorCalendar.listCalendars();
|
|
252
|
+
const { result: defaultCalendar } = await CapacitorCalendar.getDefaultCalendar();
|
|
253
|
+
|
|
254
|
+
// Use default or fall back to first calendar
|
|
255
|
+
const targetCalendarId = defaultCalendar?.id ?? calendars[0]?.id;
|
|
256
|
+
```
|
|
257
|
+
|
|
258
|
+
> [!NOTE]
|
|
259
|
+
> On iOS you can also use `selectCalendarsWithPrompt()` to let the user pick calendars via the native interface.
|
|
260
|
+
|
|
261
|
+
### Create a Reminder (iOS only)
|
|
262
|
+
|
|
263
|
+
```typescript
|
|
264
|
+
const { result } = await CapacitorCalendar.requestFullRemindersAccess();
|
|
265
|
+
|
|
266
|
+
if (result === 'granted') {
|
|
267
|
+
await CapacitorCalendar.createReminder({
|
|
268
|
+
title: 'Send launch notes',
|
|
269
|
+
dueDate: Date.now() + 2 * 24 * 60 * 60 * 1000,
|
|
270
|
+
notes: 'Created with @ebarooni/capacitor-calendar',
|
|
271
|
+
});
|
|
272
|
+
}
|
|
273
|
+
```
|
|
274
|
+
|
|
52
275
|
## Documentation
|
|
53
276
|
|
|
54
|
-
|
|
277
|
+
The full documentation is generated from TypeScript definitions and is available online:
|
|
55
278
|
|
|
56
|
-
- **[
|
|
57
|
-
- **[
|
|
279
|
+
- **[Complete Documentation](https://ebarooni.github.io/capacitor-calendar/)** — Guides, examples, and full API reference (recommended)
|
|
280
|
+
- **[Source Definitions](src/definitions.ts)** — The TypeScript source used to generate the docs
|
|
58
281
|
|
|
59
282
|
## Changelog
|
|
60
283
|
|
|
61
284
|
See [CHANGELOG.md](CHANGELOG.md) for the latest updates and release history.
|
|
62
285
|
|
|
63
|
-
|
|
64
|
-
|
|
286
|
+
## Breaking Changes
|
|
287
|
+
|
|
288
|
+
See [BREAKING.md](BREAKING.md) for breaking changes and migration steps.
|
|
65
289
|
|
|
66
290
|
## API
|
|
67
291
|
|
|
68
292
|
<docgen-index>
|
|
69
293
|
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
294
|
+
- [`checkPermission(...)`](#checkpermission)
|
|
295
|
+
- [`checkAllPermissions()`](#checkallpermissions)
|
|
296
|
+
- [`requestPermission(...)`](#requestpermission)
|
|
297
|
+
- [`requestAllPermissions()`](#requestallpermissions)
|
|
298
|
+
- [`requestWriteOnlyCalendarAccess()`](#requestwriteonlycalendaraccess)
|
|
299
|
+
- [`requestReadOnlyCalendarAccess()`](#requestreadonlycalendaraccess)
|
|
300
|
+
- [`requestFullCalendarAccess()`](#requestfullcalendaraccess)
|
|
301
|
+
- [`requestFullRemindersAccess()`](#requestfullremindersaccess)
|
|
302
|
+
- [`createEventWithPrompt(...)`](#createeventwithprompt)
|
|
303
|
+
- [`modifyEventWithPrompt(...)`](#modifyeventwithprompt)
|
|
304
|
+
- [`createEvent(...)`](#createevent)
|
|
305
|
+
- [`modifyEvent(...)`](#modifyevent)
|
|
306
|
+
- [`deleteEventsById(...)`](#deleteeventsbyid)
|
|
307
|
+
- [`deleteEvent(...)`](#deleteevent)
|
|
308
|
+
- [`deleteEventWithPrompt(...)`](#deleteeventwithprompt)
|
|
309
|
+
- [`listEventsInRange(...)`](#listeventsinrange)
|
|
310
|
+
- [`commit()`](#commit)
|
|
311
|
+
- [`selectCalendarsWithPrompt(...)`](#selectcalendarswithprompt)
|
|
312
|
+
- [`fetchAllCalendarSources()`](#fetchallcalendarsources)
|
|
313
|
+
- [`listCalendars()`](#listcalendars)
|
|
314
|
+
- [`getDefaultCalendar(...)`](#getdefaultcalendar)
|
|
315
|
+
- [`openCalendar(...)`](#opencalendar)
|
|
316
|
+
- [`createCalendar(...)`](#createcalendar)
|
|
317
|
+
- [`deleteCalendar(...)`](#deletecalendar)
|
|
318
|
+
- [`modifyCalendar(...)`](#modifycalendar)
|
|
319
|
+
- [`createRemindersList(...)`](#createreminderslist)
|
|
320
|
+
- [`deleteRemindersList(...)`](#deletereminderslist)
|
|
321
|
+
- [`fetchAllRemindersSources()`](#fetchallreminderssources)
|
|
322
|
+
- [`openReminders()`](#openreminders)
|
|
323
|
+
- [`getDefaultRemindersList()`](#getdefaultreminderslist)
|
|
324
|
+
- [`getRemindersLists()`](#getreminderslists)
|
|
325
|
+
- [`createReminder(...)`](#createreminder)
|
|
326
|
+
- [`deleteRemindersById(...)`](#deleteremindersbyid)
|
|
327
|
+
- [`deleteReminder(...)`](#deletereminder)
|
|
328
|
+
- [`modifyReminder(...)`](#modifyreminder)
|
|
329
|
+
- [`getReminderById(...)`](#getreminderbyid)
|
|
330
|
+
- [`getRemindersFromLists(...)`](#getremindersfromlists)
|
|
331
|
+
- [`deleteReminderWithPrompt(...)`](#deletereminderwithprompt)
|
|
332
|
+
- [`updateRemindersList(...)`](#updatereminderslist)
|
|
333
|
+
- [Interfaces](#interfaces)
|
|
334
|
+
- [Type Aliases](#type-aliases)
|
|
335
|
+
- [Enums](#enums)
|
|
109
336
|
|
|
110
337
|
</docgen-index>
|
|
111
338
|
|
|
@@ -115,14 +342,15 @@ See [CHANGELOG.md](CHANGELOG.md) for the latest updates and release history.
|
|
|
115
342
|
### checkPermission(...)
|
|
116
343
|
|
|
117
344
|
```typescript
|
|
118
|
-
checkPermission(options:
|
|
345
|
+
checkPermission(options: CheckPermissionOptions) => Promise<{ result: PermissionState; }>
|
|
119
346
|
```
|
|
120
347
|
|
|
121
348
|
Retrieves the current permission state for a given scope.
|
|
349
|
+
On Android, `readReminders` and `writeReminders` resolve to `"prompt"`.
|
|
122
350
|
|
|
123
|
-
| Param | Type
|
|
124
|
-
| ------------- |
|
|
125
|
-
| **`options`** | <code
|
|
351
|
+
| Param | Type |
|
|
352
|
+
| ------------- | ------------------------------------------------------------------------- |
|
|
353
|
+
| **`options`** | <code><a href="#checkpermissionoptions">CheckPermissionOptions</a></code> |
|
|
126
354
|
|
|
127
355
|
**Returns:** <code>Promise<{ result: <a href="#permissionstate">PermissionState</a>; }></code>
|
|
128
356
|
|
|
@@ -130,8 +358,7 @@ Retrieves the current permission state for a given scope.
|
|
|
130
358
|
|
|
131
359
|
**Platform:** Android, iOS
|
|
132
360
|
|
|
133
|
-
|
|
134
|
-
|
|
361
|
+
---
|
|
135
362
|
|
|
136
363
|
### checkAllPermissions()
|
|
137
364
|
|
|
@@ -140,6 +367,7 @@ checkAllPermissions() => Promise<{ result: CheckAllPermissionsResult; }>
|
|
|
140
367
|
```
|
|
141
368
|
|
|
142
369
|
Retrieves the current state of all permissions.
|
|
370
|
+
On Android, reminder keys always resolve to `"prompt"`.
|
|
143
371
|
|
|
144
372
|
**Returns:** <code>Promise<{ result: <a href="#checkallpermissionsresult">CheckAllPermissionsResult</a>; }></code>
|
|
145
373
|
|
|
@@ -147,20 +375,20 @@ Retrieves the current state of all permissions.
|
|
|
147
375
|
|
|
148
376
|
**Platform:** Android, iOS
|
|
149
377
|
|
|
150
|
-
|
|
151
|
-
|
|
378
|
+
---
|
|
152
379
|
|
|
153
380
|
### requestPermission(...)
|
|
154
381
|
|
|
155
382
|
```typescript
|
|
156
|
-
requestPermission(options:
|
|
383
|
+
requestPermission(options: RequestPermissionOptions) => Promise<{ result: PermissionState; }>
|
|
157
384
|
```
|
|
158
385
|
|
|
159
386
|
Requests permission for a given scope.
|
|
387
|
+
On Android, `readReminders` and `writeReminders` reject with `Invalid scope.`
|
|
160
388
|
|
|
161
|
-
| Param | Type
|
|
162
|
-
| ------------- |
|
|
163
|
-
| **`options`** | <code
|
|
389
|
+
| Param | Type |
|
|
390
|
+
| ------------- | ----------------------------------------------------------------------------- |
|
|
391
|
+
| **`options`** | <code><a href="#requestpermissionoptions">RequestPermissionOptions</a></code> |
|
|
164
392
|
|
|
165
393
|
**Returns:** <code>Promise<{ result: <a href="#permissionstate">PermissionState</a>; }></code>
|
|
166
394
|
|
|
@@ -168,8 +396,7 @@ Requests permission for a given scope.
|
|
|
168
396
|
|
|
169
397
|
**Platform:** Android, iOS
|
|
170
398
|
|
|
171
|
-
|
|
172
|
-
|
|
399
|
+
---
|
|
173
400
|
|
|
174
401
|
### requestAllPermissions()
|
|
175
402
|
|
|
@@ -178,6 +405,7 @@ requestAllPermissions() => Promise<{ result: RequestAllPermissionsResult; }>
|
|
|
178
405
|
```
|
|
179
406
|
|
|
180
407
|
Requests permission for all calendar and reminder permissions.
|
|
408
|
+
On Android, only calendar permissions are requested; reminder keys stay `"prompt"`.
|
|
181
409
|
|
|
182
410
|
**Returns:** <code>Promise<{ result: <a href="#checkallpermissionsresult">CheckAllPermissionsResult</a>; }></code>
|
|
183
411
|
|
|
@@ -185,8 +413,7 @@ Requests permission for all calendar and reminder permissions.
|
|
|
185
413
|
|
|
186
414
|
**Platform:** Android, iOS
|
|
187
415
|
|
|
188
|
-
|
|
189
|
-
|
|
416
|
+
---
|
|
190
417
|
|
|
191
418
|
### requestWriteOnlyCalendarAccess()
|
|
192
419
|
|
|
@@ -202,8 +429,7 @@ Requests write access to the calendar.
|
|
|
202
429
|
|
|
203
430
|
**Platform:** Android, iOS
|
|
204
431
|
|
|
205
|
-
|
|
206
|
-
|
|
432
|
+
---
|
|
207
433
|
|
|
208
434
|
### requestReadOnlyCalendarAccess()
|
|
209
435
|
|
|
@@ -219,8 +445,7 @@ Requests read access to the calendar.
|
|
|
219
445
|
|
|
220
446
|
**Platform:** Android
|
|
221
447
|
|
|
222
|
-
|
|
223
|
-
|
|
448
|
+
---
|
|
224
449
|
|
|
225
450
|
### requestFullCalendarAccess()
|
|
226
451
|
|
|
@@ -236,8 +461,7 @@ Requests read and write access to the calendar.
|
|
|
236
461
|
|
|
237
462
|
**Platform:** Android, iOS
|
|
238
463
|
|
|
239
|
-
|
|
240
|
-
|
|
464
|
+
---
|
|
241
465
|
|
|
242
466
|
### requestFullRemindersAccess()
|
|
243
467
|
|
|
@@ -246,6 +470,8 @@ requestFullRemindersAccess() => Promise<{ result: PermissionState; }>
|
|
|
246
470
|
```
|
|
247
471
|
|
|
248
472
|
Requests read and write access to the reminders.
|
|
473
|
+
Resolves with `"granted"` or `"denied"` (never `"prompt"`).
|
|
474
|
+
A grant covers both `readReminders` and `writeReminders`.
|
|
249
475
|
|
|
250
476
|
**Returns:** <code>Promise<{ result: <a href="#permissionstate">PermissionState</a>; }></code>
|
|
251
477
|
|
|
@@ -253,31 +479,30 @@ Requests read and write access to the reminders.
|
|
|
253
479
|
|
|
254
480
|
**Platform:** iOS
|
|
255
481
|
|
|
256
|
-
|
|
257
|
-
|
|
482
|
+
---
|
|
258
483
|
|
|
259
484
|
### createEventWithPrompt(...)
|
|
260
485
|
|
|
261
486
|
```typescript
|
|
262
|
-
createEventWithPrompt(options?: CreateEventWithPromptOptions | undefined) => Promise<
|
|
487
|
+
createEventWithPrompt(options?: CreateEventWithPromptOptions | undefined) => Promise<CreateEventWithPromptResult>
|
|
263
488
|
```
|
|
264
489
|
|
|
265
|
-
Opens
|
|
266
|
-
On Android
|
|
267
|
-
|
|
490
|
+
Opens a calendar UI to create an event.
|
|
491
|
+
On Android and iOS, opens the system editor. On Android, `id` is always `null`.
|
|
492
|
+
On Web, shows a confirm dialog, then builds an `.ics` `File` when the user confirms.
|
|
493
|
+
See MCP `docs://web-behavior` for Web details.
|
|
268
494
|
|
|
269
495
|
| Param | Type |
|
|
270
496
|
| ------------- | ------------------------------------------------------------------------------------- |
|
|
271
497
|
| **`options`** | <code><a href="#createeventwithpromptoptions">CreateEventWithPromptOptions</a></code> |
|
|
272
498
|
|
|
273
|
-
**Returns:** <code>Promise<
|
|
499
|
+
**Returns:** <code>Promise<<a href="#createeventwithpromptresult">CreateEventWithPromptResult</a>></code>
|
|
274
500
|
|
|
275
501
|
**Since:** 0.1.0
|
|
276
502
|
|
|
277
|
-
**Platform:** Android, iOS
|
|
278
|
-
|
|
279
|
-
--------------------
|
|
503
|
+
**Platform:** Android, iOS, Web
|
|
280
504
|
|
|
505
|
+
---
|
|
281
506
|
|
|
282
507
|
### modifyEventWithPrompt(...)
|
|
283
508
|
|
|
@@ -298,29 +523,29 @@ On Android always returns `null`.
|
|
|
298
523
|
|
|
299
524
|
**Platform:** Android, iOS
|
|
300
525
|
|
|
301
|
-
|
|
302
|
-
|
|
526
|
+
---
|
|
303
527
|
|
|
304
528
|
### createEvent(...)
|
|
305
529
|
|
|
306
530
|
```typescript
|
|
307
|
-
createEvent(options: CreateEventOptions) => Promise<
|
|
531
|
+
createEvent(options: CreateEventOptions) => Promise<CreateEventResult>
|
|
308
532
|
```
|
|
309
533
|
|
|
310
534
|
Creates an event in the calendar.
|
|
535
|
+
On Android and iOS, inserts into the system calendar and returns its `id`.
|
|
536
|
+
On Web, builds an `.ics` `File` as `ics` (no calendar store). See MCP `docs://web-behavior`.
|
|
311
537
|
|
|
312
538
|
| Param | Type |
|
|
313
539
|
| ------------- | ----------------------------------------------------------------- |
|
|
314
540
|
| **`options`** | <code><a href="#createeventoptions">CreateEventOptions</a></code> |
|
|
315
541
|
|
|
316
|
-
**Returns:** <code>Promise<
|
|
542
|
+
**Returns:** <code>Promise<<a href="#createeventresult">CreateEventResult</a>></code>
|
|
317
543
|
|
|
318
544
|
**Since:** 0.4.0
|
|
319
545
|
|
|
320
|
-
**Platform:** iOS,
|
|
321
|
-
|
|
322
|
-
--------------------
|
|
546
|
+
**Platform:** Android, iOS, Web
|
|
323
547
|
|
|
548
|
+
---
|
|
324
549
|
|
|
325
550
|
### modifyEvent(...)
|
|
326
551
|
|
|
@@ -338,8 +563,7 @@ Modifies an event.
|
|
|
338
563
|
|
|
339
564
|
**Platform:** Android, iOS
|
|
340
565
|
|
|
341
|
-
|
|
342
|
-
|
|
566
|
+
---
|
|
343
567
|
|
|
344
568
|
### deleteEventsById(...)
|
|
345
569
|
|
|
@@ -359,8 +583,7 @@ Deletes multiple events.
|
|
|
359
583
|
|
|
360
584
|
**Platform:** Android, iOS
|
|
361
585
|
|
|
362
|
-
|
|
363
|
-
|
|
586
|
+
---
|
|
364
587
|
|
|
365
588
|
### deleteEvent(...)
|
|
366
589
|
|
|
@@ -378,8 +601,7 @@ Deletes an event.
|
|
|
378
601
|
|
|
379
602
|
**Platform:** Android, iOS
|
|
380
603
|
|
|
381
|
-
|
|
382
|
-
|
|
604
|
+
---
|
|
383
605
|
|
|
384
606
|
### deleteEventWithPrompt(...)
|
|
385
607
|
|
|
@@ -399,29 +621,30 @@ Opens a dialog to delete an event.
|
|
|
399
621
|
|
|
400
622
|
**Platform:** Android, iOS
|
|
401
623
|
|
|
402
|
-
|
|
403
|
-
|
|
624
|
+
---
|
|
404
625
|
|
|
405
626
|
### listEventsInRange(...)
|
|
406
627
|
|
|
407
628
|
```typescript
|
|
408
|
-
listEventsInRange(options: ListEventsInRangeOptions) => Promise<
|
|
629
|
+
listEventsInRange(options: ListEventsInRangeOptions) => Promise<ListEventsInRangeResult>
|
|
409
630
|
```
|
|
410
631
|
|
|
411
|
-
Retrieves
|
|
632
|
+
Retrieves events that overlap a date range.
|
|
633
|
+
|
|
634
|
+
An event is included when its time interval intersects `[from, to]`, including
|
|
635
|
+
multi-day events that span the range without starting or ending inside it.
|
|
412
636
|
|
|
413
637
|
| Param | Type |
|
|
414
638
|
| ------------- | ----------------------------------------------------------------------------- |
|
|
415
639
|
| **`options`** | <code><a href="#listeventsinrangeoptions">ListEventsInRangeOptions</a></code> |
|
|
416
640
|
|
|
417
|
-
**Returns:** <code>Promise<
|
|
641
|
+
**Returns:** <code>Promise<<a href="#listeventsinrangeresult">ListEventsInRangeResult</a>></code>
|
|
418
642
|
|
|
419
643
|
**Since:** 0.10.0
|
|
420
644
|
|
|
421
645
|
**Platform:** Android, iOS
|
|
422
646
|
|
|
423
|
-
|
|
424
|
-
|
|
647
|
+
---
|
|
425
648
|
|
|
426
649
|
### commit()
|
|
427
650
|
|
|
@@ -429,86 +652,108 @@ Retrieves the events within a date range.
|
|
|
429
652
|
commit() => Promise<void>
|
|
430
653
|
```
|
|
431
654
|
|
|
432
|
-
|
|
655
|
+
Saves pending calendar changes.
|
|
433
656
|
|
|
434
657
|
**Since:** 7.1.0
|
|
435
658
|
|
|
436
659
|
**Platform:** iOS
|
|
437
660
|
|
|
438
|
-
|
|
439
|
-
|
|
661
|
+
---
|
|
440
662
|
|
|
441
663
|
### selectCalendarsWithPrompt(...)
|
|
442
664
|
|
|
443
665
|
```typescript
|
|
444
|
-
selectCalendarsWithPrompt(options?: SelectCalendarsWithPromptOptions | undefined) => Promise<
|
|
666
|
+
selectCalendarsWithPrompt(options?: SelectCalendarsWithPromptOptions | undefined) => Promise<SelectCalendarsWithPromptResult>
|
|
445
667
|
```
|
|
446
668
|
|
|
447
669
|
Opens a system interface to choose one or multiple calendars.
|
|
448
670
|
|
|
671
|
+
Calendar access is expected. Call `requestFullCalendarAccess()` first.
|
|
672
|
+
Without authorization the chooser can look empty.
|
|
673
|
+
|
|
674
|
+
On confirm, `result` contains the calendars the user selected.
|
|
675
|
+
On cancel, `result` is an empty array.
|
|
676
|
+
|
|
677
|
+
If a chooser is already presented, a new call is rejected; the in-flight
|
|
678
|
+
call continues until the user confirms or cancels.
|
|
679
|
+
|
|
449
680
|
| Param | Type |
|
|
450
681
|
| ------------- | --------------------------------------------------------------------------------------------- |
|
|
451
682
|
| **`options`** | <code><a href="#selectcalendarswithpromptoptions">SelectCalendarsWithPromptOptions</a></code> |
|
|
452
683
|
|
|
453
|
-
**Returns:** <code>Promise<
|
|
684
|
+
**Returns:** <code>Promise<<a href="#selectcalendarswithpromptresult">SelectCalendarsWithPromptResult</a>></code>
|
|
454
685
|
|
|
455
686
|
**Since:** 0.2.0
|
|
456
687
|
|
|
457
688
|
**Platform:** iOS
|
|
458
689
|
|
|
459
|
-
|
|
460
|
-
|
|
690
|
+
---
|
|
461
691
|
|
|
462
692
|
### fetchAllCalendarSources()
|
|
463
693
|
|
|
464
694
|
```typescript
|
|
465
|
-
fetchAllCalendarSources() => Promise<
|
|
695
|
+
fetchAllCalendarSources() => Promise<FetchAllCalendarSourcesResult>
|
|
466
696
|
```
|
|
467
697
|
|
|
468
698
|
Retrieves a list of calendar sources.
|
|
469
699
|
|
|
470
|
-
|
|
700
|
+
Requires calendar access. Without authorization, `result` is typically
|
|
701
|
+
an empty array. This method does not reject solely for missing permission.
|
|
702
|
+
|
|
703
|
+
**Returns:** <code>Promise<<a href="#fetchallcalendarsourcesresult">FetchAllCalendarSourcesResult</a>></code>
|
|
471
704
|
|
|
472
705
|
**Since:** 6.6.0
|
|
473
706
|
|
|
474
707
|
**Platform:** iOS
|
|
475
708
|
|
|
476
|
-
|
|
477
|
-
|
|
709
|
+
---
|
|
478
710
|
|
|
479
711
|
### listCalendars()
|
|
480
712
|
|
|
481
713
|
```typescript
|
|
482
|
-
listCalendars() => Promise<
|
|
714
|
+
listCalendars() => Promise<ListCalendarsResult>
|
|
483
715
|
```
|
|
484
716
|
|
|
485
717
|
Retrieves a list of all available calendars.
|
|
486
718
|
|
|
487
|
-
|
|
719
|
+
Requires calendar read access. On Android, missing permission typically
|
|
720
|
+
rejects. On iOS, missing authorization typically returns an empty `result`.
|
|
721
|
+
|
|
722
|
+
**Returns:** <code>Promise<<a href="#listcalendarsresult">ListCalendarsResult</a>></code>
|
|
488
723
|
|
|
489
724
|
**Since:** 7.1.0
|
|
490
725
|
|
|
491
726
|
**Platform:** Android, iOS
|
|
492
727
|
|
|
493
|
-
|
|
494
|
-
|
|
728
|
+
---
|
|
495
729
|
|
|
496
|
-
### getDefaultCalendar()
|
|
730
|
+
### getDefaultCalendar(...)
|
|
497
731
|
|
|
498
732
|
```typescript
|
|
499
|
-
getDefaultCalendar() => Promise<{ result: Calendar | null; }>
|
|
733
|
+
getDefaultCalendar(options?: GetDefaultCalendarOptions | undefined) => Promise<{ result: Calendar | null; }>
|
|
500
734
|
```
|
|
501
735
|
|
|
502
736
|
Retrieves the default calendar.
|
|
503
737
|
|
|
738
|
+
Requires calendar read access. On Android, missing permission typically
|
|
739
|
+
rejects. On iOS, missing authorization typically yields `result: null`.
|
|
740
|
+
|
|
741
|
+
The system default is the primary calendar on Android and
|
|
742
|
+
`defaultCalendarForNewEvents` on iOS. When neither exists and
|
|
743
|
+
`useFallbackCalendar` is true, the first available calendar is returned.
|
|
744
|
+
Otherwise the method returns `null` when there is no system default.
|
|
745
|
+
|
|
746
|
+
| Param | Type |
|
|
747
|
+
| ------------- | ------------------------------------------------------------------------------- |
|
|
748
|
+
| **`options`** | <code><a href="#getdefaultcalendaroptions">GetDefaultCalendarOptions</a></code> |
|
|
749
|
+
|
|
504
750
|
**Returns:** <code>Promise<{ result: <a href="#calendar">Calendar</a> | null; }></code>
|
|
505
751
|
|
|
506
752
|
**Since:** 0.3.0
|
|
507
753
|
|
|
508
754
|
**Platform:** Android, iOS
|
|
509
755
|
|
|
510
|
-
|
|
511
|
-
|
|
756
|
+
---
|
|
512
757
|
|
|
513
758
|
### openCalendar(...)
|
|
514
759
|
|
|
@@ -526,29 +771,30 @@ Opens the calendar app.
|
|
|
526
771
|
|
|
527
772
|
**Platform:** Android, iOS
|
|
528
773
|
|
|
529
|
-
|
|
530
|
-
|
|
774
|
+
---
|
|
531
775
|
|
|
532
776
|
### createCalendar(...)
|
|
533
777
|
|
|
534
778
|
```typescript
|
|
535
|
-
createCalendar(options: CreateCalendarOptions) => Promise<
|
|
779
|
+
createCalendar(options: CreateCalendarOptions) => Promise<CreateCalendarResult>
|
|
536
780
|
```
|
|
537
781
|
|
|
538
782
|
Creates a calendar.
|
|
539
783
|
|
|
784
|
+
`title` is required. `color` is optional and defaults to `#007AFF`.
|
|
785
|
+
On Android, `accountName` and `ownerAccount` are required at runtime.
|
|
786
|
+
|
|
540
787
|
| Param | Type |
|
|
541
788
|
| ------------- | ----------------------------------------------------------------------- |
|
|
542
789
|
| **`options`** | <code><a href="#createcalendaroptions">CreateCalendarOptions</a></code> |
|
|
543
790
|
|
|
544
|
-
**Returns:** <code>Promise<
|
|
791
|
+
**Returns:** <code>Promise<<a href="#createcalendarresult">CreateCalendarResult</a>></code>
|
|
545
792
|
|
|
546
793
|
**Since:** 5.2.0
|
|
547
794
|
|
|
548
795
|
**Platform:** Android, iOS
|
|
549
796
|
|
|
550
|
-
|
|
551
|
-
|
|
797
|
+
---
|
|
552
798
|
|
|
553
799
|
### deleteCalendar(...)
|
|
554
800
|
|
|
@@ -566,8 +812,7 @@ Deletes a calendar by id.
|
|
|
566
812
|
|
|
567
813
|
**Platform:** Android, iOS
|
|
568
814
|
|
|
569
|
-
|
|
570
|
-
|
|
815
|
+
---
|
|
571
816
|
|
|
572
817
|
### modifyCalendar(...)
|
|
573
818
|
|
|
@@ -585,25 +830,61 @@ Modifies a calendar with options.
|
|
|
585
830
|
|
|
586
831
|
**Platform:** Android, iOS
|
|
587
832
|
|
|
588
|
-
|
|
833
|
+
---
|
|
589
834
|
|
|
835
|
+
### createRemindersList(...)
|
|
836
|
+
|
|
837
|
+
```typescript
|
|
838
|
+
createRemindersList(options: CreateRemindersListOptions) => Promise<CreateRemindersListResult>
|
|
839
|
+
```
|
|
840
|
+
|
|
841
|
+
Creates a new reminders list.
|
|
842
|
+
|
|
843
|
+
| Param | Type |
|
|
844
|
+
| ------------- | --------------------------------------------------------------------------------- |
|
|
845
|
+
| **`options`** | <code><a href="#createreminderslistoptions">CreateRemindersListOptions</a></code> |
|
|
846
|
+
|
|
847
|
+
**Returns:** <code>Promise<<a href="#createreminderslistresult">CreateRemindersListResult</a>></code>
|
|
848
|
+
|
|
849
|
+
**Since:** 7.3.0
|
|
850
|
+
|
|
851
|
+
**Platform:** iOS
|
|
852
|
+
|
|
853
|
+
---
|
|
854
|
+
|
|
855
|
+
### deleteRemindersList(...)
|
|
856
|
+
|
|
857
|
+
```typescript
|
|
858
|
+
deleteRemindersList(options: DeleteRemindersListOptions) => Promise<void>
|
|
859
|
+
```
|
|
860
|
+
|
|
861
|
+
Deletes a reminders list.
|
|
862
|
+
|
|
863
|
+
| Param | Type |
|
|
864
|
+
| ------------- | --------------------------------------------------------------------------------- |
|
|
865
|
+
| **`options`** | <code><a href="#deletereminderslistoptions">DeleteRemindersListOptions</a></code> |
|
|
866
|
+
|
|
867
|
+
**Since:** 7.3.0
|
|
868
|
+
|
|
869
|
+
**Platform:** iOS
|
|
870
|
+
|
|
871
|
+
---
|
|
590
872
|
|
|
591
873
|
### fetchAllRemindersSources()
|
|
592
874
|
|
|
593
875
|
```typescript
|
|
594
|
-
fetchAllRemindersSources() => Promise<
|
|
876
|
+
fetchAllRemindersSources() => Promise<FetchAllCalendarSourcesResult>
|
|
595
877
|
```
|
|
596
878
|
|
|
597
879
|
Retrieves a list of calendar sources.
|
|
598
880
|
|
|
599
|
-
**Returns:** <code>Promise<
|
|
881
|
+
**Returns:** <code>Promise<<a href="#fetchallcalendarsourcesresult">FetchAllCalendarSourcesResult</a>></code>
|
|
600
882
|
|
|
601
883
|
**Since:** 6.6.0
|
|
602
884
|
|
|
603
885
|
**Platform:** iOS
|
|
604
886
|
|
|
605
|
-
|
|
606
|
-
|
|
887
|
+
---
|
|
607
888
|
|
|
608
889
|
### openReminders()
|
|
609
890
|
|
|
@@ -617,47 +898,44 @@ Opens the reminders app.
|
|
|
617
898
|
|
|
618
899
|
**Platform:** iOS
|
|
619
900
|
|
|
620
|
-
|
|
621
|
-
|
|
901
|
+
---
|
|
622
902
|
|
|
623
903
|
### getDefaultRemindersList()
|
|
624
904
|
|
|
625
905
|
```typescript
|
|
626
|
-
getDefaultRemindersList() => Promise<
|
|
906
|
+
getDefaultRemindersList() => Promise<GetDefaultRemindersListResult>
|
|
627
907
|
```
|
|
628
908
|
|
|
629
909
|
Retrieves the default reminders list.
|
|
630
910
|
|
|
631
|
-
**Returns:** <code>Promise<
|
|
911
|
+
**Returns:** <code>Promise<<a href="#getdefaultreminderslistresult">GetDefaultRemindersListResult</a>></code>
|
|
632
912
|
|
|
633
913
|
**Since:** 7.1.0
|
|
634
914
|
|
|
635
915
|
**Platform:** iOS
|
|
636
916
|
|
|
637
|
-
|
|
638
|
-
|
|
917
|
+
---
|
|
639
918
|
|
|
640
919
|
### getRemindersLists()
|
|
641
920
|
|
|
642
921
|
```typescript
|
|
643
|
-
getRemindersLists() => Promise<
|
|
922
|
+
getRemindersLists() => Promise<GetRemindersListsResult>
|
|
644
923
|
```
|
|
645
924
|
|
|
646
925
|
Retrieves all available reminders lists.
|
|
647
926
|
|
|
648
|
-
**Returns:** <code>Promise<
|
|
927
|
+
**Returns:** <code>Promise<<a href="#getreminderslistsresult">GetRemindersListsResult</a>></code>
|
|
649
928
|
|
|
650
929
|
**Since:** 7.1.0
|
|
651
930
|
|
|
652
931
|
**Platform:** iOS
|
|
653
932
|
|
|
654
|
-
|
|
655
|
-
|
|
933
|
+
---
|
|
656
934
|
|
|
657
935
|
### createReminder(...)
|
|
658
936
|
|
|
659
937
|
```typescript
|
|
660
|
-
createReminder(options: CreateReminderOptions) => Promise<
|
|
938
|
+
createReminder(options: CreateReminderOptions) => Promise<CreateReminderResult>
|
|
661
939
|
```
|
|
662
940
|
|
|
663
941
|
Creates a reminder.
|
|
@@ -666,14 +944,13 @@ Creates a reminder.
|
|
|
666
944
|
| ------------- | ----------------------------------------------------------------------- |
|
|
667
945
|
| **`options`** | <code><a href="#createreminderoptions">CreateReminderOptions</a></code> |
|
|
668
946
|
|
|
669
|
-
**Returns:** <code>Promise<
|
|
947
|
+
**Returns:** <code>Promise<<a href="#createreminderresult">CreateReminderResult</a>></code>
|
|
670
948
|
|
|
671
949
|
**Since:** 0.5.0
|
|
672
950
|
|
|
673
951
|
**Platform:** iOS
|
|
674
952
|
|
|
675
|
-
|
|
676
|
-
|
|
953
|
+
---
|
|
677
954
|
|
|
678
955
|
### deleteRemindersById(...)
|
|
679
956
|
|
|
@@ -693,8 +970,7 @@ Deletes multiple reminders.
|
|
|
693
970
|
|
|
694
971
|
**Platform:** iOS
|
|
695
972
|
|
|
696
|
-
|
|
697
|
-
|
|
973
|
+
---
|
|
698
974
|
|
|
699
975
|
### deleteReminder(...)
|
|
700
976
|
|
|
@@ -712,8 +988,7 @@ Deletes a reminder.
|
|
|
712
988
|
|
|
713
989
|
**Platform:** iOS
|
|
714
990
|
|
|
715
|
-
|
|
716
|
-
|
|
991
|
+
---
|
|
717
992
|
|
|
718
993
|
### modifyReminder(...)
|
|
719
994
|
|
|
@@ -731,34 +1006,32 @@ Modifies a reminder.
|
|
|
731
1006
|
|
|
732
1007
|
**Platform:** iOS
|
|
733
1008
|
|
|
734
|
-
|
|
735
|
-
|
|
1009
|
+
---
|
|
736
1010
|
|
|
737
1011
|
### getReminderById(...)
|
|
738
1012
|
|
|
739
1013
|
```typescript
|
|
740
|
-
getReminderById(options: GetReminderByIdOptions) => Promise<
|
|
1014
|
+
getReminderById(options: GetReminderByIdOptions) => Promise<GetReminderByIdResult>
|
|
741
1015
|
```
|
|
742
1016
|
|
|
743
|
-
|
|
1017
|
+
Retrieves a reminder by id.
|
|
744
1018
|
|
|
745
1019
|
| Param | Type |
|
|
746
1020
|
| ------------- | ------------------------------------------------------------------------- |
|
|
747
1021
|
| **`options`** | <code><a href="#getreminderbyidoptions">GetReminderByIdOptions</a></code> |
|
|
748
1022
|
|
|
749
|
-
**Returns:** <code>Promise<
|
|
1023
|
+
**Returns:** <code>Promise<<a href="#getreminderbyidresult">GetReminderByIdResult</a>></code>
|
|
750
1024
|
|
|
751
1025
|
**Since:** 7.1.0
|
|
752
1026
|
|
|
753
1027
|
**Platform:** iOS
|
|
754
1028
|
|
|
755
|
-
|
|
756
|
-
|
|
1029
|
+
---
|
|
757
1030
|
|
|
758
1031
|
### getRemindersFromLists(...)
|
|
759
1032
|
|
|
760
1033
|
```typescript
|
|
761
|
-
getRemindersFromLists(options: GetRemindersFromListsOptions) => Promise<
|
|
1034
|
+
getRemindersFromLists(options: GetRemindersFromListsOptions) => Promise<GetRemindersFromListsResult>
|
|
762
1035
|
```
|
|
763
1036
|
|
|
764
1037
|
Retrieves reminders from multiple lists.
|
|
@@ -767,19 +1040,18 @@ Retrieves reminders from multiple lists.
|
|
|
767
1040
|
| ------------- | ------------------------------------------------------------------------------------- |
|
|
768
1041
|
| **`options`** | <code><a href="#getremindersfromlistsoptions">GetRemindersFromListsOptions</a></code> |
|
|
769
1042
|
|
|
770
|
-
**Returns:** <code>Promise<
|
|
1043
|
+
**Returns:** <code>Promise<<a href="#getremindersfromlistsresult">GetRemindersFromListsResult</a>></code>
|
|
771
1044
|
|
|
772
1045
|
**Since:** 5.3.0
|
|
773
1046
|
|
|
774
1047
|
**Platform:** iOS
|
|
775
1048
|
|
|
776
|
-
|
|
777
|
-
|
|
1049
|
+
---
|
|
778
1050
|
|
|
779
1051
|
### deleteReminderWithPrompt(...)
|
|
780
1052
|
|
|
781
1053
|
```typescript
|
|
782
|
-
deleteReminderWithPrompt(options: DeleteReminderWithPromptOptions) => Promise<
|
|
1054
|
+
deleteReminderWithPrompt(options: DeleteReminderWithPromptOptions) => Promise<DeleteReminderWithPromptResult>
|
|
783
1055
|
```
|
|
784
1056
|
|
|
785
1057
|
Opens a dialog to delete a reminder.
|
|
@@ -788,73 +1060,140 @@ Opens a dialog to delete a reminder.
|
|
|
788
1060
|
| ------------- | ------------------------------------------------------------------------------------------- |
|
|
789
1061
|
| **`options`** | <code><a href="#deletereminderwithpromptoptions">DeleteReminderWithPromptOptions</a></code> |
|
|
790
1062
|
|
|
791
|
-
**Returns:** <code>Promise<
|
|
1063
|
+
**Returns:** <code>Promise<<a href="#deletereminderwithpromptresult">DeleteReminderWithPromptResult</a>></code>
|
|
792
1064
|
|
|
793
1065
|
**Since:** 7.2.0
|
|
794
1066
|
|
|
795
1067
|
**Platform:** iOS
|
|
796
1068
|
|
|
797
|
-
|
|
1069
|
+
---
|
|
1070
|
+
|
|
1071
|
+
### updateRemindersList(...)
|
|
798
1072
|
|
|
1073
|
+
```typescript
|
|
1074
|
+
updateRemindersList(options: UpdateRemindersListOptions) => Promise<UpdateRemindersListResult>
|
|
1075
|
+
```
|
|
1076
|
+
|
|
1077
|
+
Updates a reminders list.
|
|
1078
|
+
|
|
1079
|
+
| Param | Type |
|
|
1080
|
+
| ------------- | --------------------------------------------------------------------------------- |
|
|
1081
|
+
| **`options`** | <code><a href="#updatereminderslistoptions">UpdateRemindersListOptions</a></code> |
|
|
1082
|
+
|
|
1083
|
+
**Returns:** <code>Promise<<a href="#updatereminderslistresult">UpdateRemindersListResult</a>></code>
|
|
1084
|
+
|
|
1085
|
+
**Since:** 7.3.0
|
|
1086
|
+
|
|
1087
|
+
**Platform:** iOS
|
|
1088
|
+
|
|
1089
|
+
---
|
|
799
1090
|
|
|
800
1091
|
### Interfaces
|
|
801
1092
|
|
|
1093
|
+
#### CheckPermissionOptions
|
|
802
1094
|
|
|
803
|
-
|
|
1095
|
+
Options for {@link CalendarAccess#checkPermission}.
|
|
804
1096
|
|
|
805
|
-
| Prop
|
|
806
|
-
|
|
|
807
|
-
| **`
|
|
808
|
-
| **`calendarId`** | <code>string</code> | | 0.1.0 | iOS |
|
|
809
|
-
| **`location`** | <code>string</code> | | 0.1.0 | Android, iOS |
|
|
810
|
-
| **`startDate`** | <code>number</code> | | 0.1.0 | Android, iOS |
|
|
811
|
-
| **`endDate`** | <code>number</code> | | 0.1.0 | Android, iOS |
|
|
812
|
-
| **`isAllDay`** | <code>boolean</code> | | 0.1.0 | Android, iOS |
|
|
813
|
-
| **`alerts`** | <code>number[]</code> | Sets alerts before or after the start of the event in minutes. On iOS only 2 alerts are supported. | 7.1.0 | iOS |
|
|
814
|
-
| **`url`** | <code>string</code> | | 0.1.0 | iOS |
|
|
815
|
-
| **`description`** | <code>string</code> | | 7.1.0 | Android, iOS |
|
|
816
|
-
| **`availability`** | <code><a href="#eventavailability">EventAvailability</a></code> | | 7.1.0 | Android, iOS |
|
|
817
|
-
| **`invitees`** | <code>string[]</code> | An array of emails to invite. | 7.1.0 | Android |
|
|
1097
|
+
| Prop | Type | Description | Since | Platform |
|
|
1098
|
+
| ----------- | --------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------- | ----- | ------------ |
|
|
1099
|
+
| **`scope`** | <code><a href="#calendarpermissionscope">CalendarPermissionScope</a></code> | The permission scope to check. On Android, `readReminders` and `writeReminders` resolve to `"prompt"` (reminders are not supported on Android). | 7.3.0 | Android, iOS |
|
|
818
1100
|
|
|
1101
|
+
#### RequestPermissionOptions
|
|
819
1102
|
|
|
820
|
-
|
|
1103
|
+
Options for {@link CalendarAccess#requestPermission}.
|
|
821
1104
|
|
|
822
|
-
| Prop
|
|
823
|
-
|
|
|
824
|
-
| **`
|
|
825
|
-
| **`calendarId`** | <code>string</code> | | 0.1.0 | iOS |
|
|
826
|
-
| **`location`** | <code>string</code> | | 0.1.0 | Android, iOS |
|
|
827
|
-
| **`startDate`** | <code>number</code> | | 0.1.0 | Android, iOS |
|
|
828
|
-
| **`endDate`** | <code>number</code> | | 0.1.0 | Android, iOS |
|
|
829
|
-
| **`isAllDay`** | <code>boolean</code> | | 0.1.0 | Android, iOS |
|
|
830
|
-
| **`alerts`** | <code>number[]</code> | Sets alerts before or after the start of the event in minutes. On iOS only 2 alerts are supported. | 7.1.0 | iOS |
|
|
831
|
-
| **`url`** | <code>string</code> | | 0.1.0 | iOS |
|
|
832
|
-
| **`description`** | <code>string</code> | | 7.1.0 | Android, iOS |
|
|
833
|
-
| **`availability`** | <code><a href="#eventavailability">EventAvailability</a></code> | | 7.1.0 | Android, iOS |
|
|
834
|
-
| **`invitees`** | <code>string[]</code> | An array of emails to invite. | 7.1.0 | Android |
|
|
835
|
-
| **`id`** | <code>string</code> | The ID of the event to be modified. | 7.1.0 | Android, iOS |
|
|
1105
|
+
| Prop | Type | Description | Since | Platform |
|
|
1106
|
+
| ----------- | --------------------------------------------------------------------------- | -------------------------------- | ----- | ------------ |
|
|
1107
|
+
| **`scope`** | <code><a href="#calendarpermissionscope">CalendarPermissionScope</a></code> | The permission scope to request. | 7.3.0 | Android, iOS |
|
|
836
1108
|
|
|
1109
|
+
#### CreateEventWithPromptResult
|
|
837
1110
|
|
|
838
|
-
|
|
1111
|
+
| Prop | Type | Description | Since | Platform |
|
|
1112
|
+
| --------- | --------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------- | ----- | ------------ |
|
|
1113
|
+
| **`ics`** | <code>File \| null</code> | An `.ics` file (`text/calendar`) with one `VEVENT`. Always `null` on Android and iOS. On Web, set when the user confirms; `null` when the user cancels. | 7.3.0 | Web |
|
|
1114
|
+
| **`id`** | <code>string \| null</code> | The identifier of the created event. Always `null` on Android and Web. Present on iOS when the user saves. | 0.1.0 | Android, iOS |
|
|
839
1115
|
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
|
843
|
-
|
|
|
844
|
-
| **`
|
|
845
|
-
| **`
|
|
846
|
-
| **`
|
|
847
|
-
| **`
|
|
848
|
-
| **`
|
|
849
|
-
| **`
|
|
850
|
-
| **`
|
|
851
|
-
| **`
|
|
852
|
-
| **`
|
|
853
|
-
| **`
|
|
854
|
-
| **`
|
|
855
|
-
| **`
|
|
856
|
-
| **`
|
|
1116
|
+
#### CreateEventWithPromptOptions
|
|
1117
|
+
|
|
1118
|
+
| Prop | Type | Description | Default | Since | Platform |
|
|
1119
|
+
| ------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ----------------- | ----- | ----------------- |
|
|
1120
|
+
| **`alerts`** | <code>number[]</code> | Alert times in minutes relative to the event start. Use negative numbers for reminders before the start, and positive numbers for reminders after the start. On iOS only 2 alerts are supported. | | 7.1.0 | iOS, Web |
|
|
1121
|
+
| **`autoDownloadIcsFile`** | <code>boolean</code> | Start a browser download of the ICS file. | <code>true</code> | 7.3.0 | Web |
|
|
1122
|
+
| **`availability`** | <code><a href="#eventavailability">EventAvailability</a></code> | | | 7.1.0 | Android, iOS, Web |
|
|
1123
|
+
| **`calendarId`** | <code>string</code> | | | 0.1.0 | iOS |
|
|
1124
|
+
| **`description`** | <code>string</code> | | | 7.1.0 | Android, iOS, Web |
|
|
1125
|
+
| **`endDate`** | <code>number</code> | | | 0.1.0 | Android, iOS, Web |
|
|
1126
|
+
| **`icsFileName`** | <code>string</code> | Download filename for the `.ics` file. When omitted, a name is derived from `title` (fallback `event.ics`). If the value has no `.ics` extension, `.ics` is appended. | | 7.3.0 | Web |
|
|
1127
|
+
| **`invitees`** | <code>string[]</code> | An array of emails to invite. | | 7.1.0 | Android |
|
|
1128
|
+
| **`isAllDay`** | <code>boolean</code> | | | 0.1.0 | Android, iOS, Web |
|
|
1129
|
+
| **`location`** | <code>string</code> | | | 0.1.0 | Android, iOS, Web |
|
|
1130
|
+
| **`promptMessage`** | <code>string</code> | Confirm dialog message. When omitted, the dialog uses the event title and time summary. | | 7.3.0 | Web |
|
|
1131
|
+
| **`recurrence`** | <code><a href="#eventrecurrencerule">EventRecurrenceRule</a></code> | Rules for creating a recurring event. | | 7.3.0 | Android, iOS, Web |
|
|
1132
|
+
| **`startDate`** | <code>number</code> | | | 0.1.0 | Android, iOS, Web |
|
|
1133
|
+
| **`title`** | <code>string</code> | | | 0.1.0 | Android, iOS, Web |
|
|
1134
|
+
| **`url`** | <code>string</code> | | | 0.1.0 | iOS, Web |
|
|
1135
|
+
|
|
1136
|
+
#### EventRecurrenceRule
|
|
1137
|
+
|
|
1138
|
+
| Prop | Type | Description | Default | Since | Platform |
|
|
1139
|
+
| -------------------- | ------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------- | ----- | ----------------- |
|
|
1140
|
+
| **`byMonth`** | <code>number[]</code> | Limits a yearly recurrence to specific months of the year. The values should be between 1 and 12. | | 7.1.0 | Android, iOS, Web |
|
|
1141
|
+
| **`byMonthDay`** | <code>number[]</code> | Limits a monthly recurrence to specific days of the month. The values should be between 1 and 31. | | 7.1.0 | Android, iOS, Web |
|
|
1142
|
+
| **`byWeekDay`** | <code>number[]</code> | Limits a weekly recurrence to specific weekdays. The values should be between 1 and 7. 1 means Monday and 7 means Sunday. | | 7.3.0 | Android, iOS, Web |
|
|
1143
|
+
| **`count`** | <code>number</code> | The total number of occurrences. If set, the recurrence ends after this many occurrences. If `count` is provided, `end` is ignored. | | 7.3.0 | Android, iOS, Web |
|
|
1144
|
+
| **`daysOfTheYear`** | <code>number[]</code> | Limits a yearly recurrence to specific days of the year (1 to 366). | | 7.3.0 | iOS, Web |
|
|
1145
|
+
| **`end`** | <code>number</code> | End date of the recurrence series as a Unix timestamp in milliseconds. | | 7.1.0 | Android, iOS, Web |
|
|
1146
|
+
| **`frequency`** | <code><a href="#recurrencefrequency">RecurrenceFrequency</a></code> | How often the event repeats. | | 7.3.0 | Android, iOS, Web |
|
|
1147
|
+
| **`interval`** | <code>number</code> | The interval between recurrences. Use in combination with `frequency`. For example, a weekly event with an interval of 2, results in the event occurring every 2 weeks. | <code>1</code> | 7.3.0 | Android, iOS, Web |
|
|
1148
|
+
| **`weeksOfTheYear`** | <code>number[]</code> | Limits a yearly recurrence to specific ISO week numbers (1 to 53). | | 7.3.0 | iOS, Web |
|
|
857
1149
|
|
|
1150
|
+
#### ModifyEventWithPromptOptions
|
|
1151
|
+
|
|
1152
|
+
| Prop | Type | Description | Since | Platform |
|
|
1153
|
+
| ------------------ | ------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ----- | ------------ |
|
|
1154
|
+
| **`alerts`** | <code>number[]</code> | Alert times in minutes relative to the event start. Use negative numbers for reminders before the start, and positive numbers for reminders after the start. On iOS only 2 alerts are supported. | 7.1.0 | iOS |
|
|
1155
|
+
| **`availability`** | <code><a href="#eventavailability">EventAvailability</a></code> | | 7.1.0 | Android, iOS |
|
|
1156
|
+
| **`calendarId`** | <code>string</code> | | 0.1.0 | iOS |
|
|
1157
|
+
| **`description`** | <code>string</code> | | 7.1.0 | Android, iOS |
|
|
1158
|
+
| **`endDate`** | <code>number</code> | | 0.1.0 | Android, iOS |
|
|
1159
|
+
| **`id`** | <code>string</code> | The ID of the event to be modified. | 7.1.0 | Android, iOS |
|
|
1160
|
+
| **`invitees`** | <code>string[]</code> | An array of emails to invite. | 7.1.0 | Android |
|
|
1161
|
+
| **`isAllDay`** | <code>boolean</code> | | 0.1.0 | Android, iOS |
|
|
1162
|
+
| **`location`** | <code>string</code> | | 0.1.0 | Android, iOS |
|
|
1163
|
+
| **`recurrence`** | <code><a href="#eventrecurrencerule">EventRecurrenceRule</a></code> | Rules for creating a recurring event. | 7.3.0 | Android, iOS |
|
|
1164
|
+
| **`startDate`** | <code>number</code> | | 0.1.0 | Android, iOS |
|
|
1165
|
+
| **`title`** | <code>string</code> | | 0.1.0 | Android, iOS |
|
|
1166
|
+
| **`url`** | <code>string</code> | | 0.1.0 | iOS |
|
|
1167
|
+
|
|
1168
|
+
#### CreateEventResult
|
|
1169
|
+
|
|
1170
|
+
| Prop | Type | Description | Since | Platform |
|
|
1171
|
+
| --------- | --------------------------- | ---------------------------------------------------------------------------------------------------------------- | ----- | ------------ |
|
|
1172
|
+
| **`ics`** | <code>File \| null</code> | An `.ics` file (`text/calendar`) with one `VEVENT`. Always `null` on Android and iOS. | 7.3.0 | Web |
|
|
1173
|
+
| **`id`** | <code>string \| null</code> | The identifier of the created event. Always `null` on Web. Present on Android and iOS after a successful create. | 0.4.0 | Android, iOS |
|
|
1174
|
+
|
|
1175
|
+
#### CreateEventOptions
|
|
1176
|
+
|
|
1177
|
+
| Prop | Type | Description | Default | Since | Platform |
|
|
1178
|
+
| ------------------------- | ------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------ | ----- | ----------------- |
|
|
1179
|
+
| **`alerts`** | <code>number[]</code> | Alert times in minutes relative to the event start. Use negative numbers for alerts before the start, and positive numbers for alerts after the start. | | 7.1.0 | Android, iOS, Web |
|
|
1180
|
+
| **`attendees`** | <code>EventGuest[]</code> | The event guests. | | 7.1.0 | Android, Web |
|
|
1181
|
+
| **`autoDownloadIcsFile`** | <code>boolean</code> | Start a browser download of the ICS file. | <code>false</code> | 7.3.0 | Web |
|
|
1182
|
+
| **`availability`** | <code><a href="#eventavailability">EventAvailability</a></code> | | | 7.1.0 | Android, iOS, Web |
|
|
1183
|
+
| **`calendarId`** | <code>string</code> | | | 0.1.0 | Android, iOS |
|
|
1184
|
+
| **`color`** | <code>string</code> | | | 7.1.0 | Android |
|
|
1185
|
+
| **`commit`** | <code>boolean</code> | Whether to save immediately (`true`) or batch changes for later (`false`). | <code>true</code> | 7.1.0 | iOS |
|
|
1186
|
+
| **`description`** | <code>string</code> | | | 7.1.0 | Android, iOS, Web |
|
|
1187
|
+
| **`duration`** | <code>string</code> | Duration of the event in RFC2445 format. On Web, used when `endDate` is omitted; `endDate` wins if both are set. | | 7.1.0 | Android, Web |
|
|
1188
|
+
| **`endDate`** | <code>number</code> | | | 0.1.0 | Android, iOS, Web |
|
|
1189
|
+
| **`icsFileName`** | <code>string</code> | Download filename for the `.ics` file. When omitted, a name is derived from `title` (fallback `event.ics`). If the value has no `.ics` extension, `.ics` is appended. | | 7.3.0 | Web |
|
|
1190
|
+
| **`isAllDay`** | <code>boolean</code> | | | 0.1.0 | Android, iOS, Web |
|
|
1191
|
+
| **`location`** | <code>string</code> | | | 0.1.0 | Android, iOS, Web |
|
|
1192
|
+
| **`organizer`** | <code>string</code> | Email of the event organizer. | | 7.1.0 | Android, Web |
|
|
1193
|
+
| **`recurrence`** | <code><a href="#eventrecurrencerule">EventRecurrenceRule</a></code> | Rules for creating a recurring event. | | 7.3.0 | Android, iOS, Web |
|
|
1194
|
+
| **`startDate`** | <code>number</code> | | | 0.1.0 | Android, iOS, Web |
|
|
1195
|
+
| **`title`** | <code>string</code> | | | 0.4.0 | Android, iOS, Web |
|
|
1196
|
+
| **`url`** | <code>string</code> | | | 0.1.0 | iOS, Web |
|
|
858
1197
|
|
|
859
1198
|
#### EventGuest
|
|
860
1199
|
|
|
@@ -863,28 +1202,27 @@ Opens a dialog to delete a reminder.
|
|
|
863
1202
|
| **`name`** | <code>string</code> | 7.1.0 |
|
|
864
1203
|
| **`email`** | <code>string</code> | 7.1.0 |
|
|
865
1204
|
|
|
866
|
-
|
|
867
1205
|
#### ModifyEventOptions
|
|
868
1206
|
|
|
869
|
-
| Prop | Type
|
|
870
|
-
| ------------------ |
|
|
871
|
-
| **`
|
|
872
|
-
| **`
|
|
873
|
-
| **`
|
|
874
|
-
| **`
|
|
875
|
-
| **`
|
|
876
|
-
| **`
|
|
877
|
-
| **`
|
|
878
|
-
| **`
|
|
879
|
-
| **`
|
|
880
|
-
| **`
|
|
881
|
-
| **`
|
|
882
|
-
| **`
|
|
883
|
-
| **`
|
|
884
|
-
| **`
|
|
885
|
-
| **`
|
|
886
|
-
| **`
|
|
887
|
-
|
|
1207
|
+
| Prop | Type | Description | Default | Since | Platform |
|
|
1208
|
+
| ------------------ | ------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------ | --------------------------------- | ----- | ------------ |
|
|
1209
|
+
| **`alerts`** | <code>number[]</code> | Alert times in minutes relative to the event start. Use negative numbers for alerts before the start, and positive numbers for alerts after the start. | | 7.1.0 | Android, iOS |
|
|
1210
|
+
| **`attendees`** | <code>EventGuest[]</code> | The event guests. | | 7.1.0 | Android |
|
|
1211
|
+
| **`availability`** | <code><a href="#eventavailability">EventAvailability</a></code> | | | 7.1.0 | Android, iOS |
|
|
1212
|
+
| **`calendarId`** | <code>string</code> | | | 0.1.0 | Android, iOS |
|
|
1213
|
+
| **`color`** | <code>string</code> | | | 7.1.0 | Android |
|
|
1214
|
+
| **`description`** | <code>string</code> | | | 7.1.0 | Android, iOS |
|
|
1215
|
+
| **`duration`** | <code>string</code> | Duration of the event in RFC2445 format. | | 7.1.0 | Android |
|
|
1216
|
+
| **`endDate`** | <code>number</code> | | | 0.1.0 | Android, iOS |
|
|
1217
|
+
| **`id`** | <code>string</code> | The ID of the event to be modified. | | 7.1.0 | Android, iOS |
|
|
1218
|
+
| **`isAllDay`** | <code>boolean</code> | | | 0.1.0 | Android, iOS |
|
|
1219
|
+
| **`location`** | <code>string</code> | | | 0.1.0 | Android, iOS |
|
|
1220
|
+
| **`recurrence`** | <code><a href="#eventrecurrencerule">EventRecurrenceRule</a></code> | Rules for creating a recurring event. | | 7.3.0 | Android, iOS |
|
|
1221
|
+
| **`organizer`** | <code>string</code> | Email of the event organizer. | | 7.1.0 | Android |
|
|
1222
|
+
| **`span`** | <code><a href="#eventspan">EventSpan</a></code> | The span of modifications. | <code>EventSpan.THIS_EVENT</code> | | iOS |
|
|
1223
|
+
| **`startDate`** | <code>number</code> | | | 0.1.0 | Android, iOS |
|
|
1224
|
+
| **`title`** | <code>string</code> | | | 0.4.0 | Android, iOS |
|
|
1225
|
+
| **`url`** | <code>string</code> | | | 0.1.0 | iOS |
|
|
888
1226
|
|
|
889
1227
|
#### DeleteEventsByIdResult
|
|
890
1228
|
|
|
@@ -893,98 +1231,112 @@ Opens a dialog to delete a reminder.
|
|
|
893
1231
|
| **`deleted`** | <code>string[]</code> | 7.1.0 |
|
|
894
1232
|
| **`failed`** | <code>string[]</code> | 7.1.0 |
|
|
895
1233
|
|
|
896
|
-
|
|
897
1234
|
#### DeleteEventsByIdOptions
|
|
898
1235
|
|
|
899
|
-
| Prop
|
|
900
|
-
|
|
|
901
|
-
| **`
|
|
902
|
-
| **`
|
|
903
|
-
|
|
1236
|
+
| Prop | Type | Description | Default | Since | Platform |
|
|
1237
|
+
| ------------ | ----------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------- | ----- | ------------ |
|
|
1238
|
+
| **`commit`** | <code>boolean</code> | Whether to save the deletion to the event store immediately. Pass `false` to batch multiple changes and commit them together using `CapacitorCalendar.commit()`, which is more efficient than committing each save individually. | <code>true</code> | 7.3.0 | iOS |
|
|
1239
|
+
| **`ids`** | <code>string[]</code> | | | 7.1.0 | |
|
|
1240
|
+
| **`span`** | <code><a href="#eventspan">EventSpan</a></code> | How much of a recurring series to delete. On Android, `THIS_EVENT` cannot target a single recurring occurrence here — use `deleteEvent` with `instanceDate`. Those ids are reported in `failed`. | <code>EventSpan.THIS_EVENT</code> | 7.1.0 | Android, iOS |
|
|
904
1241
|
|
|
905
1242
|
#### DeleteEventOptions
|
|
906
1243
|
|
|
907
|
-
| Prop
|
|
908
|
-
|
|
|
909
|
-
| **`
|
|
910
|
-
| **`
|
|
911
|
-
|
|
1244
|
+
| Prop | Type | Description | Default | Since | Platform |
|
|
1245
|
+
| ------------------ | ----------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------- | ----- | ------------ |
|
|
1246
|
+
| **`commit`** | <code>boolean</code> | Whether to save the deletion to the event store immediately. Pass `false` to batch multiple changes and commit them together using `CapacitorCalendar.commit()`, which is more efficient than committing each save individually. | <code>true</code> | 7.3.0 | iOS |
|
|
1247
|
+
| **`id`** | <code>string</code> | The ID of the event to delete. | | 7.1.0 | Android, iOS |
|
|
1248
|
+
| **`instanceDate`** | <code>number</code> | The start time of the occurrence to delete, in milliseconds since the epoch. Use `startDate` from `listEventsInRange`. On Android, required for `THIS_EVENT` on recurring events. If omitted with `THIS_AND_FUTURE_EVENTS`, the whole series is deleted. | | 7.3.0 | Android |
|
|
1249
|
+
| **`span`** | <code><a href="#eventspan">EventSpan</a></code> | How much of a recurring series to delete. | <code>EventSpan.THIS_EVENT</code> | 7.1.0 | Android, iOS |
|
|
912
1250
|
|
|
913
1251
|
#### DeleteEventWithPromptOptions
|
|
914
1252
|
|
|
915
|
-
| Prop | Type | Description
|
|
916
|
-
| ----------------------- | ----------------------------------------------- |
|
|
917
|
-
| **`
|
|
918
|
-
| **`
|
|
919
|
-
| **`
|
|
920
|
-
| **`
|
|
921
|
-
| **`
|
|
922
|
-
| **`
|
|
1253
|
+
| Prop | Type | Description | Default | Since | Platform |
|
|
1254
|
+
| ----------------------- | ----------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------- | ----- | ------------ |
|
|
1255
|
+
| **`cancelButtonText`** | <code>string</code> | Text to show on the cancel button. | <code>'Cancel'</code> | 7.1.0 | Android, iOS |
|
|
1256
|
+
| **`commit`** | <code>boolean</code> | Whether to save the deletion to the event store immediately. Pass `false` to batch multiple changes and commit them together using `CapacitorCalendar.commit()`, which is more efficient than committing each save individually. | <code>true</code> | 7.3.0 | iOS |
|
|
1257
|
+
| **`confirmButtonText`** | <code>string</code> | Text to show on the confirm button. | <code>'Delete'</code> | 7.1.0 | Android, iOS |
|
|
1258
|
+
| **`id`** | <code>string</code> | The ID of the event to delete. | | 7.1.0 | Android, iOS |
|
|
1259
|
+
| **`instanceDate`** | <code>number</code> | The start time of the occurrence to delete, in milliseconds since the epoch. Use `startDate` from `listEventsInRange`. On Android, required for `THIS_EVENT` on recurring events. If omitted with `THIS_AND_FUTURE_EVENTS`, the whole series is deleted. | | 7.3.0 | Android |
|
|
1260
|
+
| **`message`** | <code>string</code> | Message of the dialog. | | 7.1.0 | Android, iOS |
|
|
1261
|
+
| **`span`** | <code><a href="#eventspan">EventSpan</a></code> | How much of a recurring series to delete. | <code>EventSpan.THIS_EVENT</code> | 7.1.0 | Android, iOS |
|
|
1262
|
+
| **`title`** | <code>string</code> | Title of the dialog. | | 7.1.0 | Android, iOS |
|
|
923
1263
|
|
|
1264
|
+
#### ListEventsInRangeResult
|
|
924
1265
|
|
|
925
|
-
|
|
1266
|
+
| Prop | Type | Description | Since | Platform |
|
|
1267
|
+
| ------------ | ---------------------------- | ---------------------------------------- | ----- | ------------ |
|
|
1268
|
+
| **`result`** | <code>CalendarEvent[]</code> | Events that overlap the requested range. | 7.3.0 | Android, iOS |
|
|
926
1269
|
|
|
927
|
-
|
|
928
|
-
| ------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----- | ------------ |
|
|
929
|
-
| **`id`** | <code>string</code> | 7.1.0 | Android, iOS |
|
|
930
|
-
| **`title`** | <code>string</code> | 7.1.0 | Android, iOS |
|
|
931
|
-
| **`calendarId`** | <code>string \| null</code> | 7.1.0 | Android, iOS |
|
|
932
|
-
| **`location`** | <code>string \| null</code> | 7.1.0 | Android, iOS |
|
|
933
|
-
| **`startDate`** | <code>number</code> | 7.1.0 | Android, iOS |
|
|
934
|
-
| **`endDate`** | <code>number</code> | 7.1.0 | Android, iOS |
|
|
935
|
-
| **`isAllDay`** | <code>boolean</code> | 7.1.0 | Android, iOS |
|
|
936
|
-
| **`alerts`** | <code>number[]</code> | 7.1.0 | Android, iOS |
|
|
937
|
-
| **`url`** | <code>string \| null</code> | 7.1.0 | iOS |
|
|
938
|
-
| **`description`** | <code>string \| null</code> | 7.1.0 | Android, iOS |
|
|
939
|
-
| **`availability`** | <code><a href="#eventavailability">EventAvailability</a> \| null</code> | 7.1.0 | Android, iOS |
|
|
940
|
-
| **`organizer`** | <code>string \| null</code> | 7.1.0 | Android, iOS |
|
|
941
|
-
| **`color`** | <code>string \| null</code> | 7.1.0 | Android, iOS |
|
|
942
|
-
| **`duration`** | <code>string \| null</code> | 7.1.0 | Android |
|
|
943
|
-
| **`isDetached`** | <code>boolean \| null</code> | 7.1.0 | iOS |
|
|
944
|
-
| **`birthdayContactIdentifier`** | <code>string \| null</code> | 7.1.0 | iOS |
|
|
945
|
-
| **`status`** | <code><a href="#eventstatus">EventStatus</a> \| null</code> | 7.1.0 | Android, iOS |
|
|
946
|
-
| **`creationDate`** | <code>number \| null</code> | 7.1.0 | iOS |
|
|
947
|
-
| **`lastModifiedDate`** | <code>number \| null</code> | 7.1.0 | iOS |
|
|
948
|
-
| **`attendees`** | <code>{ email: string \| null; name: string \| null; role: <a href="#attendeerole">AttendeeRole</a> \| null; status: <a href="#attendeestatus">AttendeeStatus</a> \| null; type: <a href="#attendeetype">AttendeeType</a> \| null; }[]</code> | 7.1.0 | Android, iOS |
|
|
949
|
-
| **`timezone`** | <code>string \| null</code> | 7.1.0 | Android, iOS |
|
|
1270
|
+
#### CalendarEvent
|
|
950
1271
|
|
|
1272
|
+
| Prop | Type | Description | Since | Platform |
|
|
1273
|
+
| ------------------------------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----- | ------------ |
|
|
1274
|
+
| **`alerts`** | <code>number[]</code> | Alert times in minutes relative to the event start. | 7.1.0 | Android, iOS |
|
|
1275
|
+
| **`attendees`** | <code>{ email: string \| null; name: string \| null; role: <a href="#attendeerole">AttendeeRole</a> \| null; status: <a href="#attendeestatus">AttendeeStatus</a> \| null; type: <a href="#attendeetype">AttendeeType</a> \| null; }[]</code> | | 7.1.0 | Android, iOS |
|
|
1276
|
+
| **`availability`** | <code><a href="#eventavailability">EventAvailability</a> \| null</code> | | 7.1.0 | Android, iOS |
|
|
1277
|
+
| **`birthdayContactIdentifier`** | <code>string \| null</code> | | 7.1.0 | iOS |
|
|
1278
|
+
| **`calendarId`** | <code>string \| null</code> | | 7.1.0 | Android, iOS |
|
|
1279
|
+
| **`calendarItemExternalIdentifier`** | <code>string \| null</code> | A stable external id for this calendar item. On iOS this is set when the system provides it. On Android and web it is always `null`. Use `masterId` on Android for the series master id. Do not treat this field as the same as `masterId`. They identify different things on different platforms. For non-detached occurrences of a series, this value is shared across those occurrences. On one device, `id` is often already shared for them. This field is mainly useful as a stable id across devices. Detached exceptions usually get a new identifier. You cannot find the original series from this value. Use `isDetached` and `isPartOfSeries` instead. Do not pass this value where the plugin expects an event `id`. | 7.3.0 | iOS |
|
|
1280
|
+
| **`color`** | <code>string \| null</code> | | 7.1.0 | Android, iOS |
|
|
1281
|
+
| **`creationDate`** | <code>number \| null</code> | | 7.1.0 | iOS |
|
|
1282
|
+
| **`description`** | <code>string \| null</code> | | 7.1.0 | Android, iOS |
|
|
1283
|
+
| **`duration`** | <code>string \| null</code> | | 7.1.0 | Android |
|
|
1284
|
+
| **`endDate`** | <code>number</code> | | 7.1.0 | Android, iOS |
|
|
1285
|
+
| **`id`** | <code>string</code> | | 7.1.0 | Android, iOS |
|
|
1286
|
+
| **`isAllDay`** | <code>boolean</code> | | 7.1.0 | Android, iOS |
|
|
1287
|
+
| **`isDetached`** | <code>boolean \| null</code> | | 7.1.0 | iOS |
|
|
1288
|
+
| **`isPartOfSeries`** | <code>boolean</code> | Whether this event belongs to a recurring series. `true` for series occurrences and detached exceptions. `false` for one-off events. Detached exceptions also set `isDetached` (iOS only). | 7.3.0 | Android, iOS |
|
|
1289
|
+
| **`lastModifiedDate`** | <code>number \| null</code> | | 7.1.0 | iOS |
|
|
1290
|
+
| **`location`** | <code>string \| null</code> | | 7.1.0 | Android, iOS |
|
|
1291
|
+
| **`masterId`** | <code>string \| null</code> | The id of the series master for this listed occurrence. On Android this is always a string. On iOS and web it is always `null`. iOS has no public master event id. Use `calendarItemExternalIdentifier` on iOS instead. Do not treat this field as the same as `calendarItemExternalIdentifier`. They identify different things on different platforms. If this row is the master or a one-shot event, `masterId` equals `id`. If this row is an exception, `id` is the exception and `masterId` is the series master. To modify or delete the whole series, pass `masterId` as the `id` option. You still need `span` and `instanceDate` when those APIs require them. In rare sync cases, an exception may temporarily report `masterId` equal to `id` until the platform links it to the series master. | 7.3.0 | Android |
|
|
1292
|
+
| **`organizer`** | <code>string \| null</code> | | 7.1.0 | Android, iOS |
|
|
1293
|
+
| **`seriesStartDate`** | <code>number</code> | Start time of the recurring series, in milliseconds since the epoch. Equals `startDate` for one-off events. On iOS, equals `startDate` when the series start is not available for a detached exception. | 7.3.0 | Android, iOS |
|
|
1294
|
+
| **`startDate`** | <code>number</code> | | 7.1.0 | Android, iOS |
|
|
1295
|
+
| **`status`** | <code><a href="#eventstatus">EventStatus</a> \| null</code> | | 7.1.0 | Android, iOS |
|
|
1296
|
+
| **`timezone`** | <code>string \| null</code> | | 7.1.0 | Android, iOS |
|
|
1297
|
+
| **`title`** | <code>string</code> | | 7.1.0 | Android, iOS |
|
|
1298
|
+
| **`url`** | <code>string \| null</code> | | 7.1.0 | iOS |
|
|
951
1299
|
|
|
952
1300
|
#### ListEventsInRangeOptions
|
|
953
1301
|
|
|
954
|
-
| Prop | Type | Description
|
|
955
|
-
| ---------- | ------------------- |
|
|
956
|
-
| **`from`** | <code>number</code> | The
|
|
957
|
-
| **`to`** | <code>number</code> | The
|
|
1302
|
+
| Prop | Type | Description | Since |
|
|
1303
|
+
| ---------- | ------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----- |
|
|
1304
|
+
| **`from`** | <code>number</code> | The start of the range, in milliseconds since the epoch. Events still in progress at this time are included. | 7.1.0 |
|
|
1305
|
+
| **`to`** | <code>number</code> | The end of the range, in milliseconds since the epoch. Events that begin at or after this time are typically excluded; prefer the next day's start when querying a single calendar day. | 7.1.0 |
|
|
958
1306
|
|
|
1307
|
+
#### SelectCalendarsWithPromptResult
|
|
959
1308
|
|
|
960
|
-
|
|
1309
|
+
| Prop | Type | Description | Since | Platform |
|
|
1310
|
+
| ------------ | ----------------------- | ------------------------------------------------------------------------- | ----- | -------- |
|
|
1311
|
+
| **`result`** | <code>Calendar[]</code> | Calendars the user confirmed in the chooser. Empty when the user cancels. | 7.3.0 | iOS |
|
|
961
1312
|
|
|
962
|
-
|
|
963
|
-
| -------------------------------- | ----------------------------------------------------------------- | ------------------------------------------------------------------ | ----- | ------------ |
|
|
964
|
-
| **`id`** | <code>string</code> | | 7.1.0 | Android, iOS |
|
|
965
|
-
| **`title`** | <code>string</code> | | 7.1.0 | Android, iOS |
|
|
966
|
-
| **`internalTitle`** | <code>string \| null</code> | Internal name of the calendar (`CalendarContract.Calendars.NAME`). | 7.1.0 | Android |
|
|
967
|
-
| **`color`** | <code>string</code> | | 7.1.0 | Android, iOS |
|
|
968
|
-
| **`isImmutable`** | <code>boolean \| null</code> | | 7.1.0 | iOS |
|
|
969
|
-
| **`allowsContentModifications`** | <code>boolean \| null</code> | | 7.1.0 | iOS |
|
|
970
|
-
| **`type`** | <code><a href="#calendartype">CalendarType</a> \| null</code> | | 7.1.0 | iOS |
|
|
971
|
-
| **`isSubscribed`** | <code>boolean \| null</code> | | 7.1.0 | iOS |
|
|
972
|
-
| **`source`** | <code><a href="#calendarsource">CalendarSource</a> \| null</code> | | 7.1.0 | iOS |
|
|
973
|
-
| **`visible`** | <code>boolean \| null</code> | Indicates if the events from this calendar should be shown. | 7.1.0 | Android |
|
|
974
|
-
| **`accountName`** | <code>string \| null</code> | The account under which the calendar is registered. | 7.1.0 | Android |
|
|
975
|
-
| **`ownerAccount`** | <code>string \| null</code> | The owner of the calendar. | 7.1.0 | Android |
|
|
976
|
-
| **`maxReminders`** | <code>number \| null</code> | Maximum number of reminders allowed per event. | 7.1.0 | Android |
|
|
977
|
-
| **`location`** | <code>string \| null</code> | | 7.1.0 | Android |
|
|
1313
|
+
#### Calendar
|
|
978
1314
|
|
|
1315
|
+
| Prop | Type | Description | Since | Platform |
|
|
1316
|
+
| -------------------------------- | ------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- | ----- | ------------ |
|
|
1317
|
+
| **`id`** | <code>string</code> | | 7.1.0 | Android, iOS |
|
|
1318
|
+
| **`title`** | <code>string \| null</code> | Display title of the calendar. May be `null` when the platform does not provide a title. | 7.1.0 | Android, iOS |
|
|
1319
|
+
| **`internalTitle`** | <code>string \| null</code> | Internal name of the calendar (`CalendarContract.Calendars.NAME`). | 7.1.0 | Android |
|
|
1320
|
+
| **`color`** | <code>string \| null</code> | Hex color string, or null when none is available. Format: `#RRGGBB` when opaque; `#RRGGBBAA` when alpha is below fully opaque. | 7.1.0 | Android, iOS |
|
|
1321
|
+
| **`colorName`** | <code><a href="#systemcolorname">SystemColorName</a> \| null</code> | Named color if the stored color matches one of the system colors; otherwise null. May be null in dark mode or for custom hex. Always null on Android. | 7.3.0 | Android, iOS |
|
|
1322
|
+
| **`isImmutable`** | <code>boolean \| null</code> | | 7.1.0 | iOS |
|
|
1323
|
+
| **`allowsContentModifications`** | <code>boolean \| null</code> | | 7.1.0 | iOS |
|
|
1324
|
+
| **`type`** | <code><a href="#calendartype">CalendarType</a> \| null</code> | | 7.1.0 | iOS |
|
|
1325
|
+
| **`isSubscribed`** | <code>boolean \| null</code> | | 7.1.0 | iOS |
|
|
1326
|
+
| **`source`** | <code><a href="#calendarsource">CalendarSource</a> \| null</code> | | 7.1.0 | iOS |
|
|
1327
|
+
| **`visible`** | <code>boolean \| null</code> | Indicates if the events from this calendar should be shown. | 7.1.0 | Android |
|
|
1328
|
+
| **`accountName`** | <code>string \| null</code> | The account under which the calendar is registered. | 7.1.0 | Android |
|
|
1329
|
+
| **`ownerAccount`** | <code>string \| null</code> | The owner of the calendar. | 7.1.0 | Android |
|
|
1330
|
+
| **`maxReminders`** | <code>number \| null</code> | Maximum number of reminders allowed per event. | 7.1.0 | Android |
|
|
1331
|
+
| **`location`** | <code>string \| null</code> | | 7.1.0 | Android |
|
|
979
1332
|
|
|
980
1333
|
#### CalendarSource
|
|
981
1334
|
|
|
982
|
-
| Prop | Type | Since |
|
|
983
|
-
| ----------- | ----------------------------------------------------------------- | ----- |
|
|
984
|
-
| **`type`** | <code><a href="#calendarsourcetype">CalendarSourceType</a></code> | 7.1.0 |
|
|
985
|
-
| **`id`** | <code>string</code> | 7.1.0 |
|
|
986
|
-
| **`title`** | <code>string</code> | 7.1.0 |
|
|
987
|
-
|
|
1335
|
+
| Prop | Type | Since | Platform |
|
|
1336
|
+
| ----------- | ----------------------------------------------------------------- | ----- | -------- |
|
|
1337
|
+
| **`type`** | <code><a href="#calendarsourcetype">CalendarSourceType</a></code> | 7.1.0 | iOS |
|
|
1338
|
+
| **`id`** | <code>string</code> | 7.1.0 | iOS |
|
|
1339
|
+
| **`title`** | <code>string</code> | 7.1.0 | iOS |
|
|
988
1340
|
|
|
989
1341
|
#### SelectCalendarsWithPromptOptions
|
|
990
1342
|
|
|
@@ -993,67 +1345,125 @@ Opens a dialog to delete a reminder.
|
|
|
993
1345
|
| **`displayStyle`** | <code><a href="#calendarchooserdisplaystyle">CalendarChooserDisplayStyle</a></code> | | <code>CalendarChooserDisplayStyle.ALL_CALENDARS</code> | 7.1.0 |
|
|
994
1346
|
| **`multiple`** | <code>boolean</code> | Allow multiple selections. | <code>false</code> | 7.1.0 |
|
|
995
1347
|
|
|
1348
|
+
#### FetchAllCalendarSourcesResult
|
|
1349
|
+
|
|
1350
|
+
| Prop | Type | Description | Since | Platform |
|
|
1351
|
+
| ------------ | ----------------------------- | -------------------------------------------------- | ----- | -------- |
|
|
1352
|
+
| **`result`** | <code>CalendarSource[]</code> | All calendar sources (accounts) known to EventKit. | 7.3.0 | iOS |
|
|
1353
|
+
|
|
1354
|
+
#### ListCalendarsResult
|
|
1355
|
+
|
|
1356
|
+
| Prop | Type | Description | Since | Platform |
|
|
1357
|
+
| ------------ | ----------------------- | ------------------------ | ----- | ------------ |
|
|
1358
|
+
| **`result`** | <code>Calendar[]</code> | All available calendars. | 7.3.0 | Android, iOS |
|
|
1359
|
+
|
|
1360
|
+
#### GetDefaultCalendarOptions
|
|
1361
|
+
|
|
1362
|
+
| Prop | Type | Description | Default | Since | Platform |
|
|
1363
|
+
| ------------------------- | -------------------- | --------------------------------------------------------------------------- | ------------------ | ----- | ------------ |
|
|
1364
|
+
| **`useFallbackCalendar`** | <code>boolean</code> | When there is no system default calendar, use the first available calendar. | <code>false</code> | 7.3.0 | Android, iOS |
|
|
996
1365
|
|
|
997
1366
|
#### OpenCalendarOptions
|
|
998
1367
|
|
|
999
|
-
| Prop | Type | Default | Since |
|
|
1000
|
-
| ---------- | ------------------- | ----------------------- | ----- |
|
|
1001
|
-
| **`date`** | <code>number</code> | <code>Date.now()</code> | 7.1.0 |
|
|
1368
|
+
| Prop | Type | Description | Default | Since | Platform |
|
|
1369
|
+
| ---------- | ------------------- | ------------------------------------------------------------------ | ----------------------- | ----- | ------------ |
|
|
1370
|
+
| **`date`** | <code>number</code> | The date to open the calendar at, in milliseconds since the epoch. | <code>Date.now()</code> | 7.1.0 | Android, iOS |
|
|
1002
1371
|
|
|
1372
|
+
#### CreateCalendarResult
|
|
1003
1373
|
|
|
1004
|
-
|
|
1374
|
+
| Prop | Type | Description | Since | Platform |
|
|
1375
|
+
| -------- | ------------------- | ----------------------------------------- | ----- | ------------ |
|
|
1376
|
+
| **`id`** | <code>string</code> | Identifier of the newly created calendar. | 7.3.0 | Android, iOS |
|
|
1005
1377
|
|
|
1006
|
-
|
|
1007
|
-
| ------------------ | ------------------- | ---------------------------------------------------------- | ----- | ------------ |
|
|
1008
|
-
| **`title`** | <code>string</code> | | 5.2.0 | Android, iOS |
|
|
1009
|
-
| **`color`** | <code>string</code> | The color of the calendar. Should be provided on Android. | 5.2.0 | Android, iOS |
|
|
1010
|
-
| **`sourceId`** | <code>string</code> | | 5.2.0 | iOS |
|
|
1011
|
-
| **`accountName`** | <code>string</code> | Only needed on Android. Typically set to an email address. | 7.1.0 | Android |
|
|
1012
|
-
| **`ownerAccount`** | <code>string</code> | Only needed on Android. Typically set to an email address. | 7.1.0 | Android |
|
|
1378
|
+
#### CreateCalendarOptions
|
|
1013
1379
|
|
|
1380
|
+
| Prop | Type | Description | Default | Since | Platform |
|
|
1381
|
+
| ------------------ | --------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------- | ----- | ------------ |
|
|
1382
|
+
| **`title`** | <code>string</code> | | | 5.2.0 | Android, iOS |
|
|
1383
|
+
| **`color`** | <code><a href="#systemcolorname">SystemColorName</a> \| `#${string}`</code> | Named color (`blue`, …) or hex `#RRGGBB` / `#RRGGBBAA`. When omitted, Android and iOS use `#007AFF`. On Android, only hex is accepted; named colors reject with `Invalid color format.` | <code>#007AFF</code> | 5.2.0 | Android, iOS |
|
|
1384
|
+
| **`sourceId`** | <code>string</code> | The EventKit source (account) where the calendar should be created. If provided, it must match an existing source from `fetchAllCalendarSources()`. If omitted, iCloud is used when available, otherwise the local source. | | 5.2.0 | iOS |
|
|
1385
|
+
| **`accountName`** | <code>string</code> | The account under which the calendar is registered. Required on Android. Typically an email address. | | 7.1.0 | Android |
|
|
1386
|
+
| **`ownerAccount`** | <code>string</code> | The owner of the calendar. Required on Android. Typically an email address. | | 7.1.0 | Android |
|
|
1014
1387
|
|
|
1015
1388
|
#### DeleteCalendarOptions
|
|
1016
1389
|
|
|
1017
|
-
| Prop | Type | Since |
|
|
1018
|
-
| -------- | ------------------- | ----- |
|
|
1019
|
-
| **`id`** | <code>string</code> | 7.1.0 |
|
|
1020
|
-
|
|
1390
|
+
| Prop | Type | Since | Platform |
|
|
1391
|
+
| -------- | ------------------- | ----- | ------------ |
|
|
1392
|
+
| **`id`** | <code>string</code> | 7.1.0 | Android, iOS |
|
|
1021
1393
|
|
|
1022
1394
|
#### ModifyCalendarOptions
|
|
1023
1395
|
|
|
1024
|
-
| Prop | Type
|
|
1025
|
-
| ----------- |
|
|
1026
|
-
| **`id`** | <code>string</code>
|
|
1027
|
-
| **`title`** | <code>string</code> | 7.2.0 | Android, iOS |
|
|
1028
|
-
| **`color`** | <code>string
|
|
1396
|
+
| Prop | Type | Description | Since | Platform |
|
|
1397
|
+
| ----------- | --------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----- | ------------ |
|
|
1398
|
+
| **`id`** | <code>string</code> | | 7.2.0 | Android, iOS |
|
|
1399
|
+
| **`title`** | <code>string</code> | Display title of the calendar. On Android this updates both `CALENDAR_DISPLAY_NAME` (`title`) and `Calendars.NAME` (`internalTitle`). | 7.2.0 | Android, iOS |
|
|
1400
|
+
| **`color`** | <code><a href="#systemcolorname">SystemColorName</a> \| `#${string}`</code> | Named color (`blue`, …) or hex `#RRGGBB` / `#RRGGBBAA`. If omitted, the color is left unchanged. On Android, only hex is accepted; named colors reject with `Invalid color format.` | 7.2.0 | Android, iOS |
|
|
1029
1401
|
|
|
1402
|
+
#### CreateRemindersListResult
|
|
1030
1403
|
|
|
1031
|
-
|
|
1404
|
+
| Prop | Type | Description | Since | Platform |
|
|
1405
|
+
| -------- | ------------------- | ----------------------------------------------- | ----- | -------- |
|
|
1406
|
+
| **`id`** | <code>string</code> | Identifier of the newly created reminders list. | 7.3.0 | iOS |
|
|
1032
1407
|
|
|
1033
|
-
|
|
1034
|
-
| -------------------- | --------------------------------------------------------- | ----- |
|
|
1035
|
-
| **`title`** | <code>string</code> | 7.1.0 |
|
|
1036
|
-
| **`listId`** | <code>string</code> | 7.1.0 |
|
|
1037
|
-
| **`priority`** | <code>number</code> | 7.1.0 |
|
|
1038
|
-
| **`isCompleted`** | <code>boolean</code> | 7.1.0 |
|
|
1039
|
-
| **`startDate`** | <code>number</code> | 7.1.0 |
|
|
1040
|
-
| **`dueDate`** | <code>number</code> | 7.1.0 |
|
|
1041
|
-
| **`completionDate`** | <code>number</code> | 7.1.0 |
|
|
1042
|
-
| **`notes`** | <code>string</code> | 7.1.0 |
|
|
1043
|
-
| **`url`** | <code>string</code> | 7.1.0 |
|
|
1044
|
-
| **`location`** | <code>string</code> | 7.1.0 |
|
|
1045
|
-
| **`recurrence`** | <code><a href="#recurrencerule">RecurrenceRule</a></code> | 7.1.0 |
|
|
1046
|
-
| **`alerts`** | <code>number[]</code> | 7.1.0 |
|
|
1408
|
+
#### CreateRemindersListOptions
|
|
1047
1409
|
|
|
1410
|
+
| Prop | Type | Description | Default | Since | Platform |
|
|
1411
|
+
| -------------- | --------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------- | ----- | -------- |
|
|
1412
|
+
| **`color`** | <code><a href="#systemcolorname">SystemColorName</a> \| `#${string}`</code> | Named color (`blue`, …) or hex `#RRGGBB` / `#RRGGBBAA`. When omitted, the platform chooses the list color. | | 7.3.0 | iOS |
|
|
1413
|
+
| **`commit`** | <code>boolean</code> | Whether to save the list immediately. Pass `false` to batch changes and commit them with `CapacitorCalendar.commit()`. | <code>true</code> | 7.3.0 | iOS |
|
|
1414
|
+
| **`sourceId`** | <code>string</code> | The calendar source (account) where the list should be created. If provided, it should match a source from `fetchAllCalendarSources()`. If omitted or unmatched, iCloud is used when available, otherwise the local source. | | 7.3.0 | iOS |
|
|
1415
|
+
| **`title`** | <code>string</code> | The title of the list. | | 7.3.0 | iOS |
|
|
1048
1416
|
|
|
1049
|
-
####
|
|
1417
|
+
#### DeleteRemindersListOptions
|
|
1418
|
+
|
|
1419
|
+
| Prop | Type | Description | Default | Since | Platform |
|
|
1420
|
+
| ------------ | -------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------- | ----- | -------- |
|
|
1421
|
+
| **`commit`** | <code>boolean</code> | Whether to save the deletion to the event store immediately. Pass `false` to batch multiple changes and commit them together using `CapacitorCalendar.commit()`, which is more efficient than committing each save individually. | <code>true</code> | 7.3.0 | iOS |
|
|
1422
|
+
| **`id`** | <code>string</code> | Identifier of the reminders list to delete. | | 7.3.0 | iOS |
|
|
1423
|
+
|
|
1424
|
+
#### GetDefaultRemindersListResult
|
|
1425
|
+
|
|
1426
|
+
| Prop | Type | Description | Since | Platform |
|
|
1427
|
+
| ------------ | ----------------------------------------------------- | ------------------------------------------------------- | ----- | -------- |
|
|
1428
|
+
| **`result`** | <code><a href="#calendar">Calendar</a> \| null</code> | The default reminders list, or `null` when none exists. | 7.1.0 | iOS |
|
|
1429
|
+
|
|
1430
|
+
#### GetRemindersListsResult
|
|
1050
1431
|
|
|
1051
|
-
| Prop
|
|
1052
|
-
|
|
|
1053
|
-
| **`
|
|
1054
|
-
| **`interval`** | <code>number</code> | How often it repeats (e.g. 1 for every occurrence, 2 for every second occurrence). | 7.1.0 |
|
|
1055
|
-
| **`end`** | <code>number</code> | Timestamp of when the recurrence ends. | 7.1.0 |
|
|
1432
|
+
| Prop | Type | Description | Since | Platform |
|
|
1433
|
+
| ------------ | ----------------------- | ------------------------------ | ----- | -------- |
|
|
1434
|
+
| **`result`** | <code>Calendar[]</code> | All available reminders lists. | 7.1.0 | iOS |
|
|
1056
1435
|
|
|
1436
|
+
#### CreateReminderResult
|
|
1437
|
+
|
|
1438
|
+
| Prop | Type | Description | Since | Platform |
|
|
1439
|
+
| -------- | ------------------- | ----------------------------------------- | ----- | -------- |
|
|
1440
|
+
| **`id`** | <code>string</code> | Identifier of the newly created reminder. | 0.5.0 | iOS |
|
|
1441
|
+
|
|
1442
|
+
#### CreateReminderOptions
|
|
1443
|
+
|
|
1444
|
+
| Prop | Type | Description | Default | Since | Platform |
|
|
1445
|
+
| -------------------- | --------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------- | ----- | -------- |
|
|
1446
|
+
| **`alerts`** | <code>number[]</code> | Alert times in minutes relative to the reminder start. Use negative numbers for alerts before the start, and positive numbers for alerts after the start. On iOS only 2 alerts are supported. | | 7.1.0 | |
|
|
1447
|
+
| **`commit`** | <code>boolean</code> | Whether to save immediately (`true`) or batch changes for later (`false`). Pass `false` to batch multiple changes and commit them together using `CapacitorCalendar.commit()`, which is more efficient than committing each save individually. | <code>true</code> | 7.3.0 | iOS |
|
|
1448
|
+
| **`completionDate`** | <code>number</code> | | | 7.1.0 | |
|
|
1449
|
+
| **`dueDate`** | <code>number</code> | When the reminder should be completed, in milliseconds since the epoch. On iOS, if `startDate` is omitted, it is set to this value. | | 7.1.0 | |
|
|
1450
|
+
| **`isCompleted`** | <code>boolean</code> | | | 7.1.0 | |
|
|
1451
|
+
| **`listId`** | <code>string</code> | | | 7.1.0 | |
|
|
1452
|
+
| **`location`** | <code>string</code> | | | 7.1.0 | |
|
|
1453
|
+
| **`notes`** | <code>string</code> | | | 7.1.0 | |
|
|
1454
|
+
| **`priority`** | <code>number</code> | Priority: `0` none, `1` highest through `9` lowest. | | 7.1.0 | |
|
|
1455
|
+
| **`recurrence`** | <code><a href="#recurrencerule">RecurrenceRule</a></code> | | | 7.1.0 | iOS |
|
|
1456
|
+
| **`startDate`** | <code>number</code> | When the reminder starts, in milliseconds since the epoch. Relative `alerts` use this date. | | 7.1.0 | |
|
|
1457
|
+
| **`title`** | <code>string</code> | | | 7.1.0 | |
|
|
1458
|
+
| **`url`** | <code>string</code> | | | 7.1.0 | |
|
|
1459
|
+
|
|
1460
|
+
#### RecurrenceRule
|
|
1461
|
+
|
|
1462
|
+
| Prop | Type | Description | Since | Platform |
|
|
1463
|
+
| --------------- | ------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ----- | -------- |
|
|
1464
|
+
| **`frequency`** | <code><a href="#recurrencefrequency">RecurrenceFrequency</a></code> | How often the reminder repeats. | 7.1.0 | iOS |
|
|
1465
|
+
| **`interval`** | <code>number</code> | How often it repeats (e.g. 1 for every occurrence, 2 for every second occurrence). | 7.1.0 | iOS |
|
|
1466
|
+
| **`end`** | <code>number</code> | End of the recurrence series as a Unix timestamp in milliseconds. | 7.1.0 | iOS |
|
|
1057
1467
|
|
|
1058
1468
|
#### DeleteRemindersByIdResult
|
|
1059
1469
|
|
|
@@ -1062,58 +1472,61 @@ Opens a dialog to delete a reminder.
|
|
|
1062
1472
|
| **`deleted`** | <code>string[]</code> | 7.1.0 |
|
|
1063
1473
|
| **`failed`** | <code>string[]</code> | 7.1.0 |
|
|
1064
1474
|
|
|
1065
|
-
|
|
1066
1475
|
#### DeleteRemindersByIdOptions
|
|
1067
1476
|
|
|
1068
1477
|
| Prop | Type | Since |
|
|
1069
1478
|
| --------- | --------------------- | ----- |
|
|
1070
1479
|
| **`ids`** | <code>string[]</code> | 7.1.0 |
|
|
1071
1480
|
|
|
1072
|
-
|
|
1073
1481
|
#### DeleteReminderOptions
|
|
1074
1482
|
|
|
1075
|
-
| Prop
|
|
1076
|
-
|
|
|
1077
|
-
| **`
|
|
1078
|
-
|
|
1483
|
+
| Prop | Type | Description | Default | Since | Platform |
|
|
1484
|
+
| ------------ | -------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------- | ----- | -------- |
|
|
1485
|
+
| **`commit`** | <code>boolean</code> | Whether to save immediately (`true`) or batch changes for later (`false`). Pass `false` to batch multiple changes and commit them together using `CapacitorCalendar.commit()`, which is more efficient than committing each save individually. | <code>true</code> | 7.3.0 | iOS |
|
|
1486
|
+
| **`id`** | <code>string</code> | | | 7.1.0 | |
|
|
1079
1487
|
|
|
1080
1488
|
#### ModifyReminderOptions
|
|
1081
1489
|
|
|
1082
|
-
| Prop | Type
|
|
1083
|
-
| -------------------- |
|
|
1084
|
-
| **`
|
|
1085
|
-
| **`
|
|
1086
|
-
| **`
|
|
1087
|
-
| **`
|
|
1088
|
-
| **`
|
|
1089
|
-
| **`
|
|
1090
|
-
| **`
|
|
1091
|
-
| **`
|
|
1092
|
-
| **`notes`** | <code>string</code> | 7.1.0 |
|
|
1093
|
-
| **`
|
|
1094
|
-
| **`
|
|
1095
|
-
| **`
|
|
1096
|
-
| **`
|
|
1097
|
-
|
|
1490
|
+
| Prop | Type | Description | Default | Since | Platform |
|
|
1491
|
+
| -------------------- | ----------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------- | ----- | -------- |
|
|
1492
|
+
| **`alerts`** | <code>number[] \| null</code> | Alert times in minutes relative to the reminder start. Use negative numbers for alerts before the start, and positive numbers for alerts after the start. Omit or pass `undefined` to leave existing alerts unchanged. Pass `null` or an empty array `[]` to clear alerts. On iOS, when both `startDate` and `dueDate` are cleared in the same call, alerts are cleared even if `alerts` is set. When clearing dates across separate batched calls, pass `alerts: null` or `[]` explicitly. On iOS only 2 alerts are supported. | | 7.1.0 | |
|
|
1493
|
+
| **`commit`** | <code>boolean</code> | Whether to save immediately (`true`) or batch changes for later (`false`). Pass `false` to batch multiple changes and commit them together using `CapacitorCalendar.commit()`, which is more efficient than committing each save individually. | <code>true</code> | 7.3.0 | iOS |
|
|
1494
|
+
| **`completionDate`** | <code>number \| null</code> | When the reminder was completed, in milliseconds since the epoch. Omit or pass `undefined` to leave the existing value unchanged. Since 7.3.0, pass `null` to clear. Clearing this date does not mark the reminder incomplete; set `isCompleted` to `false` for that. | | 7.1.0 | |
|
|
1495
|
+
| **`dueDate`** | <code>number \| null</code> | When the reminder is due, in milliseconds since the epoch. On iOS, if `startDate` is omitted and the reminder has no start, it is set to this value. Omit or pass `undefined` to leave the existing value unchanged. Since 7.3.0, pass `null` to clear. Clearing only `dueDate` leaves an existing start unchanged (including a start previously copied from due). Pass `startDate: null` together with `dueDate: null` to remove scheduling. | | 7.1.0 | |
|
|
1496
|
+
| **`id`** | <code>string</code> | | | 7.1.0 | |
|
|
1497
|
+
| **`isCompleted`** | <code>boolean</code> | | | 7.1.0 | |
|
|
1498
|
+
| **`listId`** | <code>string</code> | | | 7.1.0 | |
|
|
1499
|
+
| **`location`** | <code>string \| null</code> | Location for the reminder. Omit or pass `undefined` to leave the existing value unchanged. Since 7.3.0, pass `null` to clear. | | 7.1.0 | |
|
|
1500
|
+
| **`notes`** | <code>string \| null</code> | Notes for the reminder. Omit or pass `undefined` to leave the existing value unchanged. Since 7.3.0, pass `null` to clear. | | 7.1.0 | |
|
|
1501
|
+
| **`priority`** | <code>number</code> | Priority: `0` none, `1` highest through `9` lowest. Omit to leave the existing value unchanged. | | 7.1.0 | |
|
|
1502
|
+
| **`recurrence`** | <code><a href="#recurrencerule">RecurrenceRule</a> \| null</code> | Recurrence rule for the reminder. Omit or pass `undefined` to leave the existing value unchanged. Since 7.3.0, pass `null` to clear. | | 7.1.0 | iOS |
|
|
1503
|
+
| **`startDate`** | <code>number \| null</code> | When the reminder starts, in milliseconds since the epoch. Relative `alerts` use this date. Omit or pass `undefined` to leave the existing value unchanged. Since 7.3.0, pass `null` to clear. If a due date remains, clearing start sets start to the due date (it does not keep the previous start). Pass `dueDate: null` as well to remove scheduling. | | 7.1.0 | |
|
|
1504
|
+
| **`title`** | <code>string</code> | | | 7.1.0 | |
|
|
1505
|
+
| **`url`** | <code>string \| null</code> | URL associated with the reminder. Omit or pass `undefined` to leave the existing value unchanged. Since 7.3.0, pass `null` to clear. | | 7.1.0 | |
|
|
1506
|
+
|
|
1507
|
+
#### GetReminderByIdResult
|
|
1508
|
+
|
|
1509
|
+
| Prop | Type | Description | Since | Platform |
|
|
1510
|
+
| ------------ | ----------------------------------------------------- | ---------------------------------------------------------- | ----- | -------- |
|
|
1511
|
+
| **`result`** | <code><a href="#reminder">Reminder</a> \| null</code> | The reminder for the given id, or `null` when none exists. | 7.1.0 | iOS |
|
|
1098
1512
|
|
|
1099
1513
|
#### Reminder
|
|
1100
1514
|
|
|
1101
|
-
| Prop | Type | Since |
|
|
1102
|
-
| -------------------- | ----------------------------- | ----- |
|
|
1103
|
-
| **`id`** | <code>string</code> | 7.1.0 |
|
|
1104
|
-
| **`title`** | <code>string \| null</code> | 7.1.0 |
|
|
1105
|
-
| **`listId`** | <code>string \| null</code> | 7.1.0 |
|
|
1106
|
-
| **`isCompleted`** | <code>boolean</code> | 7.1.0 |
|
|
1107
|
-
| **`priority`** | <code>number \| null</code> | 7.1.0 |
|
|
1108
|
-
| **`notes`** | <code>string \| null</code> | 7.1.0 |
|
|
1109
|
-
| **`location`** | <code>string \| null</code> | 7.1.0 |
|
|
1110
|
-
| **`url`** | <code>string \| null</code> | 7.1.0 |
|
|
1111
|
-
| **`startDate`** | <code>number \| null</code> | 7.1.0 |
|
|
1112
|
-
| **`dueDate`** | <code>number \| null</code> | 7.1.0 |
|
|
1113
|
-
| **`completionDate`** | <code>number \| null</code> | 7.1.0 |
|
|
1114
|
-
| **`recurrence`** | <code>RecurrenceRule[]</code> | 7.1.0 |
|
|
1115
|
-
| **`alerts`** | <code>number[]</code> | 7.1.0 |
|
|
1116
|
-
|
|
1515
|
+
| Prop | Type | Description | Since | Platform |
|
|
1516
|
+
| -------------------- | ----------------------------- | --------------------------------------------------- | ----- | -------- |
|
|
1517
|
+
| **`id`** | <code>string</code> | | 7.1.0 | |
|
|
1518
|
+
| **`title`** | <code>string \| null</code> | | 7.1.0 | |
|
|
1519
|
+
| **`listId`** | <code>string \| null</code> | | 7.1.0 | |
|
|
1520
|
+
| **`isCompleted`** | <code>boolean</code> | | 7.1.0 | |
|
|
1521
|
+
| **`priority`** | <code>number \| null</code> | Priority: `0` none, `1` highest through `9` lowest. | 7.1.0 | |
|
|
1522
|
+
| **`notes`** | <code>string \| null</code> | | 7.1.0 | |
|
|
1523
|
+
| **`location`** | <code>string \| null</code> | | 7.1.0 | |
|
|
1524
|
+
| **`url`** | <code>string \| null</code> | | 7.1.0 | |
|
|
1525
|
+
| **`startDate`** | <code>number \| null</code> | | 7.1.0 | |
|
|
1526
|
+
| **`dueDate`** | <code>number \| null</code> | | 7.1.0 | |
|
|
1527
|
+
| **`completionDate`** | <code>number \| null</code> | | 7.1.0 | |
|
|
1528
|
+
| **`recurrence`** | <code>RecurrenceRule[]</code> | | 7.1.0 | iOS |
|
|
1529
|
+
| **`alerts`** | <code>number[]</code> | | 7.1.0 | |
|
|
1117
1530
|
|
|
1118
1531
|
#### GetReminderByIdOptions
|
|
1119
1532
|
|
|
@@ -1121,6 +1534,11 @@ Opens a dialog to delete a reminder.
|
|
|
1121
1534
|
| -------- | ------------------- | ----- |
|
|
1122
1535
|
| **`id`** | <code>string</code> | 7.1.0 |
|
|
1123
1536
|
|
|
1537
|
+
#### GetRemindersFromListsResult
|
|
1538
|
+
|
|
1539
|
+
| Prop | Type | Description | Since | Platform |
|
|
1540
|
+
| ------------ | ----------------------- | ----------------------------------- | ----- | -------- |
|
|
1541
|
+
| **`result`** | <code>Reminder[]</code> | Reminders from the requested lists. | 5.3.0 | iOS |
|
|
1124
1542
|
|
|
1125
1543
|
#### GetRemindersFromListsOptions
|
|
1126
1544
|
|
|
@@ -1128,6 +1546,11 @@ Opens a dialog to delete a reminder.
|
|
|
1128
1546
|
| ------------- | --------------------- | ----- |
|
|
1129
1547
|
| **`listIds`** | <code>string[]</code> | 7.1.0 |
|
|
1130
1548
|
|
|
1549
|
+
#### DeleteReminderWithPromptResult
|
|
1550
|
+
|
|
1551
|
+
| Prop | Type | Description | Since | Platform |
|
|
1552
|
+
| ------------- | -------------------- | ------------------------------------ | ----- | -------- |
|
|
1553
|
+
| **`deleted`** | <code>boolean</code> | Whether the user confirmed deletion. | 7.2.0 | iOS |
|
|
1131
1554
|
|
|
1132
1555
|
#### DeleteReminderWithPromptOptions
|
|
1133
1556
|
|
|
@@ -1139,54 +1562,84 @@ Opens a dialog to delete a reminder.
|
|
|
1139
1562
|
| **`confirmButtonText`** | <code>string</code> | Text to show on the confirm button. | <code>'Delete'</code> | 7.2.0 |
|
|
1140
1563
|
| **`cancelButtonText`** | <code>string</code> | Text to show on the cancel button. | <code>'Cancel'</code> | 7.2.0 |
|
|
1141
1564
|
|
|
1565
|
+
#### UpdateRemindersListResult
|
|
1142
1566
|
|
|
1143
|
-
|
|
1567
|
+
| Prop | Type | Description | Since | Platform |
|
|
1568
|
+
| -------- | ------------------- | ----------------------------------------- | ----- | -------- |
|
|
1569
|
+
| **`id`** | <code>string</code> | Identifier of the updated reminders list. | 7.3.0 | iOS |
|
|
1570
|
+
|
|
1571
|
+
#### UpdateRemindersListOptions
|
|
1144
1572
|
|
|
1573
|
+
| Prop | Type | Description | Default | Since | Platform |
|
|
1574
|
+
| ------------ | --------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------ | ----------------- | ----- | -------- |
|
|
1575
|
+
| **`color`** | <code><a href="#systemcolorname">SystemColorName</a> \| `#${string}`</code> | Named color (`blue`, …) or hex `#RRGGBB` / `#RRGGBBAA`. If omitted, the color is left unchanged. | | 7.3.0 | iOS |
|
|
1576
|
+
| **`commit`** | <code>boolean</code> | Whether to save the update immediately. Pass `false` to batch changes and commit them with `CapacitorCalendar.commit()`. | <code>true</code> | 7.3.0 | iOS |
|
|
1577
|
+
| **`id`** | <code>string</code> | The identifier of the list to update. | | 7.3.0 | iOS |
|
|
1578
|
+
| **`title`** | <code>string</code> | The new title of the list. If omitted, the title is left unchanged. | | 7.3.0 | iOS |
|
|
1579
|
+
|
|
1580
|
+
### Type Aliases
|
|
1145
1581
|
|
|
1146
1582
|
#### PermissionState
|
|
1147
1583
|
|
|
1148
1584
|
<code>'prompt' | 'prompt-with-rationale' | 'granted' | 'denied'</code>
|
|
1149
1585
|
|
|
1150
|
-
|
|
1151
1586
|
#### CheckAllPermissionsResult
|
|
1152
1587
|
|
|
1153
|
-
<code
|
|
1154
|
-
|
|
1588
|
+
<code>
|
|
1589
|
+
<a href="#record">Record</a><<a href="#calendarpermissionscope">CalendarPermissionScope</a>,{' '}
|
|
1590
|
+
<a href="#permissionstate">PermissionState</a>>
|
|
1591
|
+
</code>
|
|
1155
1592
|
|
|
1156
1593
|
#### Record
|
|
1157
1594
|
|
|
1158
1595
|
Construct a type with a set of properties K of type T
|
|
1159
1596
|
|
|
1160
|
-
<code>{
|
|
1161
1597
|
[P in K]: T;
|
|
1162
1598
|
}</code>
|
|
1163
|
-
|
|
1599
|
+
<code>{
|
|
1600
|
+
[P in K]: T;
|
|
1601
|
+
}</code>
|
|
1164
1602
|
|
|
1165
1603
|
#### RequestAllPermissionsResult
|
|
1166
1604
|
|
|
1167
|
-
<code
|
|
1605
|
+
<code>
|
|
1606
|
+
<a href="#checkallpermissionsresult">CheckAllPermissionsResult</a>
|
|
1607
|
+
</code>
|
|
1608
|
+
|
|
1609
|
+
#### RecurrenceFrequency
|
|
1168
1610
|
|
|
1611
|
+
<code>'daily' | 'weekly' | 'monthly' | 'yearly'</code>
|
|
1169
1612
|
|
|
1170
1613
|
#### EventEditAction
|
|
1171
1614
|
|
|
1172
|
-
<code>
|
|
1615
|
+
<code>'canceled' | 'saved' | 'deleted'</code>
|
|
1173
1616
|
|
|
1617
|
+
#### SystemColorName
|
|
1618
|
+
|
|
1619
|
+
Named iOS system color.
|
|
1620
|
+
|
|
1621
|
+
<code>'blue' | 'brown' | 'gray' | 'green' | 'indigo' | 'orange' | 'pink' | 'purple' | 'red' | 'teal' | 'yellow'</code>
|
|
1174
1622
|
|
|
1175
1623
|
#### RemindersList
|
|
1176
1624
|
|
|
1177
|
-
|
|
1625
|
+
A reminders list on iOS.
|
|
1178
1626
|
|
|
1627
|
+
Same shape as {@link <a href="#calendar">Calendar</a>} today. Android-only calendar fields
|
|
1628
|
+
(`visible`, `accountName`, `ownerAccount`, `maxReminders`, `internalTitle`,
|
|
1629
|
+
`location`) are always `null` on reminder list payloads.
|
|
1179
1630
|
|
|
1180
|
-
|
|
1631
|
+
<code>
|
|
1632
|
+
<a href="#calendar">Calendar</a>
|
|
1633
|
+
</code>
|
|
1181
1634
|
|
|
1635
|
+
### Enums
|
|
1182
1636
|
|
|
1183
1637
|
#### CalendarPermissionScope
|
|
1184
1638
|
|
|
1185
|
-
| Members | Value | Description
|
|
1186
|
-
| --------------------- | ----------------------------- |
|
|
1187
|
-
| **`READ_CALENDAR`** | <code>
|
|
1188
|
-
| **`READ_REMINDERS`** | <code>
|
|
1189
|
-
| **`WRITE_CALENDAR`** | <code>
|
|
1190
|
-
| **`WRITE_REMINDERS`** | <code>
|
|
1191
|
-
|
|
1639
|
+
| Members | Value | Description | Since | Platform |
|
|
1640
|
+
| --------------------- | ----------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----- | ------------ |
|
|
1641
|
+
| **`READ_CALENDAR`** | <code>'readCalendar'</code> | Permission required for reading calendar events. | 7.1.0 | Android, iOS |
|
|
1642
|
+
| **`READ_REMINDERS`** | <code>'readReminders'</code> | Permission required for reading reminders. On Android, reminders are not supported. `checkPermission` and `checkAllPermissions` return `"prompt"` for this scope. `requestPermission` rejects with `Invalid scope.`. | 7.1.0 | iOS |
|
|
1643
|
+
| **`WRITE_CALENDAR`** | <code>'writeCalendar'</code> | Permission required for adding or modifying calendar events. | 7.1.0 | Android, iOS |
|
|
1644
|
+
| **`WRITE_REMINDERS`** | <code>'writeReminders'</code> | Permission required for adding or modifying reminders. On Android, reminders are not supported. `checkPermission` and `checkAllPermissions` return `"prompt"` for this scope. `requestPermission` rejects with `Invalid scope.`. | 7.1.0 | iOS |
|
|
1192
1645
|
|
|
1193
1646
|
#### EventAvailability
|
|
1194
1647
|
|
|
@@ -1198,69 +1651,63 @@ Construct a type with a set of properties K of type T
|
|
|
1198
1651
|
| **`TENTATIVE`** | | 7.1.0 | Android, iOS |
|
|
1199
1652
|
| **`UNAVAILABLE`** | | 7.1.0 | iOS |
|
|
1200
1653
|
|
|
1201
|
-
|
|
1202
1654
|
#### EventSpan
|
|
1203
1655
|
|
|
1204
|
-
| Members | Since |
|
|
1205
|
-
| ---------------------------- | ----- |
|
|
1206
|
-
| **`THIS_EVENT`** | 7.1.0 |
|
|
1207
|
-
| **`THIS_AND_FUTURE_EVENTS`** | 7.1.0 |
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
#### EventStatus
|
|
1211
|
-
|
|
1212
|
-
| Members | Value | Since | Platform |
|
|
1213
|
-
| --------------- | ------------------------ | ----- | ------------ |
|
|
1214
|
-
| **`NONE`** | <code>"none"</code> | 7.1.0 | iOS |
|
|
1215
|
-
| **`CONFIRMED`** | <code>"confirmed"</code> | 7.1.0 | Android, iOS |
|
|
1216
|
-
| **`TENTATIVE`** | <code>"tentative"</code> | 7.1.0 | Android, iOS |
|
|
1217
|
-
| **`CANCELED`** | <code>"canceled"</code> | 7.1.0 | Android, iOS |
|
|
1218
|
-
|
|
1656
|
+
| Members | Description | Since |
|
|
1657
|
+
| ---------------------------- | --------------------------------------------------------------- | ----- |
|
|
1658
|
+
| **`THIS_EVENT`** | Only the identified event or occurrence. | 7.1.0 |
|
|
1659
|
+
| **`THIS_AND_FUTURE_EVENTS`** | The identified occurrence and future occurrences in the series. | 7.1.0 |
|
|
1219
1660
|
|
|
1220
1661
|
#### AttendeeRole
|
|
1221
1662
|
|
|
1222
1663
|
| Members | Value | Since | Platform |
|
|
1223
1664
|
| --------------------- | ----------------------------- | ----- | ------------ |
|
|
1224
|
-
| **`UNKNOWN`** | <code>
|
|
1225
|
-
| **`REQUIRED`** | <code>
|
|
1226
|
-
| **`OPTIONAL`** | <code>
|
|
1227
|
-
| **`CHAIR`** | <code>
|
|
1228
|
-
| **`NON_PARTICIPANT`** | <code>
|
|
1229
|
-
| **`ATTENDEE`** | <code>
|
|
1230
|
-
| **`ORGANIZER`** | <code>
|
|
1231
|
-
| **`PERFORMER`** | <code>
|
|
1232
|
-
| **`SPEAKER`** | <code>
|
|
1233
|
-
|
|
1665
|
+
| **`UNKNOWN`** | <code>'unknown'</code> | 7.1.0 | Android, iOS |
|
|
1666
|
+
| **`REQUIRED`** | <code>'required'</code> | 7.1.0 | iOS |
|
|
1667
|
+
| **`OPTIONAL`** | <code>'optional'</code> | 7.1.0 | iOS |
|
|
1668
|
+
| **`CHAIR`** | <code>'chair'</code> | 7.1.0 | iOS |
|
|
1669
|
+
| **`NON_PARTICIPANT`** | <code>'nonParticipant'</code> | 7.1.0 | Android, iOS |
|
|
1670
|
+
| **`ATTENDEE`** | <code>'attendee'</code> | 7.1.0 | Android |
|
|
1671
|
+
| **`ORGANIZER`** | <code>'organizer'</code> | 7.1.0 | Android |
|
|
1672
|
+
| **`PERFORMER`** | <code>'performer'</code> | 7.1.0 | Android |
|
|
1673
|
+
| **`SPEAKER`** | <code>'speaker'</code> | 7.1.0 | Android |
|
|
1234
1674
|
|
|
1235
1675
|
#### AttendeeStatus
|
|
1236
1676
|
|
|
1237
1677
|
| Members | Value | Since | Platform |
|
|
1238
1678
|
| ---------------- | ------------------------ | ----- | ------------ |
|
|
1239
|
-
| **`NONE`** | <code>
|
|
1240
|
-
| **`ACCEPTED`** | <code>
|
|
1241
|
-
| **`DECLINED`** | <code>
|
|
1242
|
-
| **`INVITED`** | <code>
|
|
1243
|
-
| **`UNKNOWN`** | <code>
|
|
1244
|
-
| **`PENDING`** | <code>
|
|
1245
|
-
| **`TENTATIVE`** | <code>
|
|
1246
|
-
| **`DELEGATED`** | <code>
|
|
1247
|
-
| **`COMPLETED`** | <code>
|
|
1248
|
-
| **`IN_PROCESS`** | <code>
|
|
1249
|
-
|
|
1679
|
+
| **`NONE`** | <code>'none'</code> | 7.1.0 | Android |
|
|
1680
|
+
| **`ACCEPTED`** | <code>'accepted'</code> | 7.1.0 | Android, iOS |
|
|
1681
|
+
| **`DECLINED`** | <code>'declined'</code> | 7.1.0 | Android, iOS |
|
|
1682
|
+
| **`INVITED`** | <code>'invited'</code> | 7.1.0 | Android |
|
|
1683
|
+
| **`UNKNOWN`** | <code>'unknown'</code> | 7.1.0 | iOS |
|
|
1684
|
+
| **`PENDING`** | <code>'pending'</code> | 7.1.0 | iOS |
|
|
1685
|
+
| **`TENTATIVE`** | <code>'tentative'</code> | 7.1.0 | Android, iOS |
|
|
1686
|
+
| **`DELEGATED`** | <code>'delegated'</code> | 7.1.0 | iOS |
|
|
1687
|
+
| **`COMPLETED`** | <code>'completed'</code> | 7.1.0 | iOS |
|
|
1688
|
+
| **`IN_PROCESS`** | <code>'inProcess'</code> | 7.1.0 | iOS |
|
|
1250
1689
|
|
|
1251
1690
|
#### AttendeeType
|
|
1252
1691
|
|
|
1253
1692
|
| Members | Value | Since | Platform |
|
|
1254
1693
|
| -------------- | ----------------------- | ----- | ------------ |
|
|
1255
|
-
| **`UNKNOWN`** | <code>
|
|
1256
|
-
| **`PERSON`** | <code>
|
|
1257
|
-
| **`ROOM`** | <code>
|
|
1258
|
-
| **`RESOURCE`** | <code>
|
|
1259
|
-
| **`GROUP`** | <code>
|
|
1260
|
-
| **`REQUIRED`** | <code>
|
|
1261
|
-
| **`NONE`** | <code>
|
|
1262
|
-
| **`OPTIONAL`** | <code>
|
|
1694
|
+
| **`UNKNOWN`** | <code>'unknown'</code> | 7.1.0 | Android, iOS |
|
|
1695
|
+
| **`PERSON`** | <code>'person'</code> | 7.1.0 | iOS |
|
|
1696
|
+
| **`ROOM`** | <code>'room'</code> | 7.1.0 | iOS |
|
|
1697
|
+
| **`RESOURCE`** | <code>'resource'</code> | 7.1.0 | Android, iOS |
|
|
1698
|
+
| **`GROUP`** | <code>'group'</code> | 7.1.0 | iOS |
|
|
1699
|
+
| **`REQUIRED`** | <code>'required'</code> | 7.1.0 | Android |
|
|
1700
|
+
| **`NONE`** | <code>'none'</code> | 7.1.0 | Android |
|
|
1701
|
+
| **`OPTIONAL`** | <code>'optional'</code> | 7.1.0 | Android |
|
|
1263
1702
|
|
|
1703
|
+
#### EventStatus
|
|
1704
|
+
|
|
1705
|
+
| Members | Value | Since | Platform |
|
|
1706
|
+
| --------------- | ------------------------ | ----- | ------------ |
|
|
1707
|
+
| **`NONE`** | <code>'none'</code> | 7.1.0 | iOS |
|
|
1708
|
+
| **`CONFIRMED`** | <code>'confirmed'</code> | 7.1.0 | Android, iOS |
|
|
1709
|
+
| **`TENTATIVE`** | <code>'tentative'</code> | 7.1.0 | Android, iOS |
|
|
1710
|
+
| **`CANCELED`** | <code>'canceled'</code> | 7.1.0 | Android, iOS |
|
|
1264
1711
|
|
|
1265
1712
|
#### CalendarType
|
|
1266
1713
|
|
|
@@ -1272,7 +1719,6 @@ Construct a type with a set of properties K of type T
|
|
|
1272
1719
|
| **`SUBSCRIPTION`** | 7.1.0 |
|
|
1273
1720
|
| **`BIRTHDAY`** | 7.1.0 |
|
|
1274
1721
|
|
|
1275
|
-
|
|
1276
1722
|
#### CalendarSourceType
|
|
1277
1723
|
|
|
1278
1724
|
| Members | Since |
|
|
@@ -1284,7 +1730,6 @@ Construct a type with a set of properties K of type T
|
|
|
1284
1730
|
| **`SUBSCRIBED`** | 7.1.0 |
|
|
1285
1731
|
| **`BIRTHDAYS`** | 7.1.0 |
|
|
1286
1732
|
|
|
1287
|
-
|
|
1288
1733
|
#### CalendarChooserDisplayStyle
|
|
1289
1734
|
|
|
1290
1735
|
| Members | Since |
|
|
@@ -1292,16 +1737,6 @@ Construct a type with a set of properties K of type T
|
|
|
1292
1737
|
| **`ALL_CALENDARS`** | 0.2.0 |
|
|
1293
1738
|
| **`WRITABLE_CALENDARS_ONLY`** | 0.2.0 |
|
|
1294
1739
|
|
|
1295
|
-
|
|
1296
|
-
#### RecurrenceFrequency
|
|
1297
|
-
|
|
1298
|
-
| Members | Since |
|
|
1299
|
-
| ------------- | ----- |
|
|
1300
|
-
| **`DAILY`** | 7.1.0 |
|
|
1301
|
-
| **`WEEKLY`** | 7.1.0 |
|
|
1302
|
-
| **`MONTHLY`** | 7.1.0 |
|
|
1303
|
-
| **`YEARLY`** | 7.1.0 |
|
|
1304
|
-
|
|
1305
1740
|
</docgen-api>
|
|
1306
1741
|
|
|
1307
1742
|
## Contributing
|