@ebarooni/capacitor-calendar 7.1.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 +949 -452
- package/android/src/main/java/dev/barooni/capacitor/calendar/CapacitorCalendarPlugin.kt +74 -7
- package/android/src/main/java/dev/barooni/capacitor/calendar/PluginError.kt +36 -18
- package/android/src/main/java/dev/barooni/capacitor/calendar/implementation/CapacitorCalendar.kt +325 -83
- 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 +22 -0
- 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 +3321 -1121
- package/dist/esm/definitions.d.ts +5 -5
- package/dist/esm/definitions.js.map +1 -1
- package/dist/esm/index.d.ts +71 -46
- 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-options.d.ts +35 -0
- package/dist/esm/schemas/interfaces/delete-reminder-with-prompt-options.js +2 -0
- package/dist/esm/schemas/interfaces/delete-reminder-with-prompt-options.js.map +1 -0
- 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 +32 -0
- package/dist/esm/schemas/interfaces/modify-calendar-options.js +2 -0
- package/dist/esm/schemas/interfaces/modify-calendar-options.js.map +1 -0
- 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 +75 -20
- 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 +82 -37
- 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 +71 -77
- package/dist/esm/web.js +127 -6
- package/dist/esm/web.js.map +1 -1
- package/dist/plugin.cjs.js +470 -35
- package/dist/plugin.cjs.js.map +1 -1
- package/dist/plugin.js +470 -35
- package/dist/plugin.js.map +1 -1
- package/ios/{Sources/CapacitorCalendarPlugin → Plugin}/CapacitorCalendarPlugin.swift +168 -75
- package/ios/{Sources/CapacitorCalendarPlugin → Plugin}/Implementation/CapacitorCalendar.swift +242 -107
- 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/DeleteReminderWithPromptInput.swift +46 -0
- package/ios/Plugin/Models/Inputs/DeleteRemindersListInput.swift +22 -0
- package/ios/Plugin/Models/Inputs/GetDefaultCalendarInput.swift +13 -0
- package/ios/Plugin/Models/Inputs/ModifyCalendarInput.swift +35 -0
- 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 -25
- 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/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,74 +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
|
|
106
|
+
|
|
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>
|
|
46
115
|
|
|
47
|
-
|
|
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
|
-
|
|
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)
|
|
107
336
|
|
|
108
337
|
</docgen-index>
|
|
109
338
|
|
|
@@ -113,14 +342,15 @@ See [CHANGELOG.md](CHANGELOG.md) for the latest updates and release history.
|
|
|
113
342
|
### checkPermission(...)
|
|
114
343
|
|
|
115
344
|
```typescript
|
|
116
|
-
checkPermission(options:
|
|
345
|
+
checkPermission(options: CheckPermissionOptions) => Promise<{ result: PermissionState; }>
|
|
117
346
|
```
|
|
118
347
|
|
|
119
348
|
Retrieves the current permission state for a given scope.
|
|
349
|
+
On Android, `readReminders` and `writeReminders` resolve to `"prompt"`.
|
|
120
350
|
|
|
121
|
-
| Param | Type
|
|
122
|
-
| ------------- |
|
|
123
|
-
| **`options`** | <code
|
|
351
|
+
| Param | Type |
|
|
352
|
+
| ------------- | ------------------------------------------------------------------------- |
|
|
353
|
+
| **`options`** | <code><a href="#checkpermissionoptions">CheckPermissionOptions</a></code> |
|
|
124
354
|
|
|
125
355
|
**Returns:** <code>Promise<{ result: <a href="#permissionstate">PermissionState</a>; }></code>
|
|
126
356
|
|
|
@@ -128,8 +358,7 @@ Retrieves the current permission state for a given scope.
|
|
|
128
358
|
|
|
129
359
|
**Platform:** Android, iOS
|
|
130
360
|
|
|
131
|
-
|
|
132
|
-
|
|
361
|
+
---
|
|
133
362
|
|
|
134
363
|
### checkAllPermissions()
|
|
135
364
|
|
|
@@ -138,6 +367,7 @@ checkAllPermissions() => Promise<{ result: CheckAllPermissionsResult; }>
|
|
|
138
367
|
```
|
|
139
368
|
|
|
140
369
|
Retrieves the current state of all permissions.
|
|
370
|
+
On Android, reminder keys always resolve to `"prompt"`.
|
|
141
371
|
|
|
142
372
|
**Returns:** <code>Promise<{ result: <a href="#checkallpermissionsresult">CheckAllPermissionsResult</a>; }></code>
|
|
143
373
|
|
|
@@ -145,20 +375,20 @@ Retrieves the current state of all permissions.
|
|
|
145
375
|
|
|
146
376
|
**Platform:** Android, iOS
|
|
147
377
|
|
|
148
|
-
|
|
149
|
-
|
|
378
|
+
---
|
|
150
379
|
|
|
151
380
|
### requestPermission(...)
|
|
152
381
|
|
|
153
382
|
```typescript
|
|
154
|
-
requestPermission(options:
|
|
383
|
+
requestPermission(options: RequestPermissionOptions) => Promise<{ result: PermissionState; }>
|
|
155
384
|
```
|
|
156
385
|
|
|
157
386
|
Requests permission for a given scope.
|
|
387
|
+
On Android, `readReminders` and `writeReminders` reject with `Invalid scope.`
|
|
158
388
|
|
|
159
|
-
| Param | Type
|
|
160
|
-
| ------------- |
|
|
161
|
-
| **`options`** | <code
|
|
389
|
+
| Param | Type |
|
|
390
|
+
| ------------- | ----------------------------------------------------------------------------- |
|
|
391
|
+
| **`options`** | <code><a href="#requestpermissionoptions">RequestPermissionOptions</a></code> |
|
|
162
392
|
|
|
163
393
|
**Returns:** <code>Promise<{ result: <a href="#permissionstate">PermissionState</a>; }></code>
|
|
164
394
|
|
|
@@ -166,8 +396,7 @@ Requests permission for a given scope.
|
|
|
166
396
|
|
|
167
397
|
**Platform:** Android, iOS
|
|
168
398
|
|
|
169
|
-
|
|
170
|
-
|
|
399
|
+
---
|
|
171
400
|
|
|
172
401
|
### requestAllPermissions()
|
|
173
402
|
|
|
@@ -176,6 +405,7 @@ requestAllPermissions() => Promise<{ result: RequestAllPermissionsResult; }>
|
|
|
176
405
|
```
|
|
177
406
|
|
|
178
407
|
Requests permission for all calendar and reminder permissions.
|
|
408
|
+
On Android, only calendar permissions are requested; reminder keys stay `"prompt"`.
|
|
179
409
|
|
|
180
410
|
**Returns:** <code>Promise<{ result: <a href="#checkallpermissionsresult">CheckAllPermissionsResult</a>; }></code>
|
|
181
411
|
|
|
@@ -183,8 +413,7 @@ Requests permission for all calendar and reminder permissions.
|
|
|
183
413
|
|
|
184
414
|
**Platform:** Android, iOS
|
|
185
415
|
|
|
186
|
-
|
|
187
|
-
|
|
416
|
+
---
|
|
188
417
|
|
|
189
418
|
### requestWriteOnlyCalendarAccess()
|
|
190
419
|
|
|
@@ -200,8 +429,7 @@ Requests write access to the calendar.
|
|
|
200
429
|
|
|
201
430
|
**Platform:** Android, iOS
|
|
202
431
|
|
|
203
|
-
|
|
204
|
-
|
|
432
|
+
---
|
|
205
433
|
|
|
206
434
|
### requestReadOnlyCalendarAccess()
|
|
207
435
|
|
|
@@ -217,8 +445,7 @@ Requests read access to the calendar.
|
|
|
217
445
|
|
|
218
446
|
**Platform:** Android
|
|
219
447
|
|
|
220
|
-
|
|
221
|
-
|
|
448
|
+
---
|
|
222
449
|
|
|
223
450
|
### requestFullCalendarAccess()
|
|
224
451
|
|
|
@@ -234,8 +461,7 @@ Requests read and write access to the calendar.
|
|
|
234
461
|
|
|
235
462
|
**Platform:** Android, iOS
|
|
236
463
|
|
|
237
|
-
|
|
238
|
-
|
|
464
|
+
---
|
|
239
465
|
|
|
240
466
|
### requestFullRemindersAccess()
|
|
241
467
|
|
|
@@ -244,6 +470,8 @@ requestFullRemindersAccess() => Promise<{ result: PermissionState; }>
|
|
|
244
470
|
```
|
|
245
471
|
|
|
246
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`.
|
|
247
475
|
|
|
248
476
|
**Returns:** <code>Promise<{ result: <a href="#permissionstate">PermissionState</a>; }></code>
|
|
249
477
|
|
|
@@ -251,31 +479,30 @@ Requests read and write access to the reminders.
|
|
|
251
479
|
|
|
252
480
|
**Platform:** iOS
|
|
253
481
|
|
|
254
|
-
|
|
255
|
-
|
|
482
|
+
---
|
|
256
483
|
|
|
257
484
|
### createEventWithPrompt(...)
|
|
258
485
|
|
|
259
486
|
```typescript
|
|
260
|
-
createEventWithPrompt(options?: CreateEventWithPromptOptions | undefined) => Promise<
|
|
487
|
+
createEventWithPrompt(options?: CreateEventWithPromptOptions | undefined) => Promise<CreateEventWithPromptResult>
|
|
261
488
|
```
|
|
262
489
|
|
|
263
|
-
Opens
|
|
264
|
-
On Android
|
|
265
|
-
|
|
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.
|
|
266
494
|
|
|
267
495
|
| Param | Type |
|
|
268
496
|
| ------------- | ------------------------------------------------------------------------------------- |
|
|
269
497
|
| **`options`** | <code><a href="#createeventwithpromptoptions">CreateEventWithPromptOptions</a></code> |
|
|
270
498
|
|
|
271
|
-
**Returns:** <code>Promise<
|
|
499
|
+
**Returns:** <code>Promise<<a href="#createeventwithpromptresult">CreateEventWithPromptResult</a>></code>
|
|
272
500
|
|
|
273
501
|
**Since:** 0.1.0
|
|
274
502
|
|
|
275
|
-
**Platform:** Android, iOS
|
|
276
|
-
|
|
277
|
-
--------------------
|
|
503
|
+
**Platform:** Android, iOS, Web
|
|
278
504
|
|
|
505
|
+
---
|
|
279
506
|
|
|
280
507
|
### modifyEventWithPrompt(...)
|
|
281
508
|
|
|
@@ -296,29 +523,29 @@ On Android always returns `null`.
|
|
|
296
523
|
|
|
297
524
|
**Platform:** Android, iOS
|
|
298
525
|
|
|
299
|
-
|
|
300
|
-
|
|
526
|
+
---
|
|
301
527
|
|
|
302
528
|
### createEvent(...)
|
|
303
529
|
|
|
304
530
|
```typescript
|
|
305
|
-
createEvent(options: CreateEventOptions) => Promise<
|
|
531
|
+
createEvent(options: CreateEventOptions) => Promise<CreateEventResult>
|
|
306
532
|
```
|
|
307
533
|
|
|
308
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`.
|
|
309
537
|
|
|
310
538
|
| Param | Type |
|
|
311
539
|
| ------------- | ----------------------------------------------------------------- |
|
|
312
540
|
| **`options`** | <code><a href="#createeventoptions">CreateEventOptions</a></code> |
|
|
313
541
|
|
|
314
|
-
**Returns:** <code>Promise<
|
|
542
|
+
**Returns:** <code>Promise<<a href="#createeventresult">CreateEventResult</a>></code>
|
|
315
543
|
|
|
316
544
|
**Since:** 0.4.0
|
|
317
545
|
|
|
318
|
-
**Platform:** iOS,
|
|
319
|
-
|
|
320
|
-
--------------------
|
|
546
|
+
**Platform:** Android, iOS, Web
|
|
321
547
|
|
|
548
|
+
---
|
|
322
549
|
|
|
323
550
|
### modifyEvent(...)
|
|
324
551
|
|
|
@@ -336,8 +563,7 @@ Modifies an event.
|
|
|
336
563
|
|
|
337
564
|
**Platform:** Android, iOS
|
|
338
565
|
|
|
339
|
-
|
|
340
|
-
|
|
566
|
+
---
|
|
341
567
|
|
|
342
568
|
### deleteEventsById(...)
|
|
343
569
|
|
|
@@ -357,8 +583,7 @@ Deletes multiple events.
|
|
|
357
583
|
|
|
358
584
|
**Platform:** Android, iOS
|
|
359
585
|
|
|
360
|
-
|
|
361
|
-
|
|
586
|
+
---
|
|
362
587
|
|
|
363
588
|
### deleteEvent(...)
|
|
364
589
|
|
|
@@ -376,8 +601,7 @@ Deletes an event.
|
|
|
376
601
|
|
|
377
602
|
**Platform:** Android, iOS
|
|
378
603
|
|
|
379
|
-
|
|
380
|
-
|
|
604
|
+
---
|
|
381
605
|
|
|
382
606
|
### deleteEventWithPrompt(...)
|
|
383
607
|
|
|
@@ -397,29 +621,30 @@ Opens a dialog to delete an event.
|
|
|
397
621
|
|
|
398
622
|
**Platform:** Android, iOS
|
|
399
623
|
|
|
400
|
-
|
|
401
|
-
|
|
624
|
+
---
|
|
402
625
|
|
|
403
626
|
### listEventsInRange(...)
|
|
404
627
|
|
|
405
628
|
```typescript
|
|
406
|
-
listEventsInRange(options: ListEventsInRangeOptions) => Promise<
|
|
629
|
+
listEventsInRange(options: ListEventsInRangeOptions) => Promise<ListEventsInRangeResult>
|
|
407
630
|
```
|
|
408
631
|
|
|
409
|
-
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.
|
|
410
636
|
|
|
411
637
|
| Param | Type |
|
|
412
638
|
| ------------- | ----------------------------------------------------------------------------- |
|
|
413
639
|
| **`options`** | <code><a href="#listeventsinrangeoptions">ListEventsInRangeOptions</a></code> |
|
|
414
640
|
|
|
415
|
-
**Returns:** <code>Promise<
|
|
641
|
+
**Returns:** <code>Promise<<a href="#listeventsinrangeresult">ListEventsInRangeResult</a>></code>
|
|
416
642
|
|
|
417
643
|
**Since:** 0.10.0
|
|
418
644
|
|
|
419
645
|
**Platform:** Android, iOS
|
|
420
646
|
|
|
421
|
-
|
|
422
|
-
|
|
647
|
+
---
|
|
423
648
|
|
|
424
649
|
### commit()
|
|
425
650
|
|
|
@@ -427,86 +652,108 @@ Retrieves the events within a date range.
|
|
|
427
652
|
commit() => Promise<void>
|
|
428
653
|
```
|
|
429
654
|
|
|
430
|
-
|
|
655
|
+
Saves pending calendar changes.
|
|
431
656
|
|
|
432
657
|
**Since:** 7.1.0
|
|
433
658
|
|
|
434
659
|
**Platform:** iOS
|
|
435
660
|
|
|
436
|
-
|
|
437
|
-
|
|
661
|
+
---
|
|
438
662
|
|
|
439
663
|
### selectCalendarsWithPrompt(...)
|
|
440
664
|
|
|
441
665
|
```typescript
|
|
442
|
-
selectCalendarsWithPrompt(options?: SelectCalendarsWithPromptOptions | undefined) => Promise<
|
|
666
|
+
selectCalendarsWithPrompt(options?: SelectCalendarsWithPromptOptions | undefined) => Promise<SelectCalendarsWithPromptResult>
|
|
443
667
|
```
|
|
444
668
|
|
|
445
669
|
Opens a system interface to choose one or multiple calendars.
|
|
446
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
|
+
|
|
447
680
|
| Param | Type |
|
|
448
681
|
| ------------- | --------------------------------------------------------------------------------------------- |
|
|
449
682
|
| **`options`** | <code><a href="#selectcalendarswithpromptoptions">SelectCalendarsWithPromptOptions</a></code> |
|
|
450
683
|
|
|
451
|
-
**Returns:** <code>Promise<
|
|
684
|
+
**Returns:** <code>Promise<<a href="#selectcalendarswithpromptresult">SelectCalendarsWithPromptResult</a>></code>
|
|
452
685
|
|
|
453
686
|
**Since:** 0.2.0
|
|
454
687
|
|
|
455
688
|
**Platform:** iOS
|
|
456
689
|
|
|
457
|
-
|
|
458
|
-
|
|
690
|
+
---
|
|
459
691
|
|
|
460
692
|
### fetchAllCalendarSources()
|
|
461
693
|
|
|
462
694
|
```typescript
|
|
463
|
-
fetchAllCalendarSources() => Promise<
|
|
695
|
+
fetchAllCalendarSources() => Promise<FetchAllCalendarSourcesResult>
|
|
464
696
|
```
|
|
465
697
|
|
|
466
698
|
Retrieves a list of calendar sources.
|
|
467
699
|
|
|
468
|
-
|
|
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>
|
|
469
704
|
|
|
470
705
|
**Since:** 6.6.0
|
|
471
706
|
|
|
472
707
|
**Platform:** iOS
|
|
473
708
|
|
|
474
|
-
|
|
475
|
-
|
|
709
|
+
---
|
|
476
710
|
|
|
477
711
|
### listCalendars()
|
|
478
712
|
|
|
479
713
|
```typescript
|
|
480
|
-
listCalendars() => Promise<
|
|
714
|
+
listCalendars() => Promise<ListCalendarsResult>
|
|
481
715
|
```
|
|
482
716
|
|
|
483
717
|
Retrieves a list of all available calendars.
|
|
484
718
|
|
|
485
|
-
|
|
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>
|
|
486
723
|
|
|
487
724
|
**Since:** 7.1.0
|
|
488
725
|
|
|
489
726
|
**Platform:** Android, iOS
|
|
490
727
|
|
|
491
|
-
|
|
492
|
-
|
|
728
|
+
---
|
|
493
729
|
|
|
494
|
-
### getDefaultCalendar()
|
|
730
|
+
### getDefaultCalendar(...)
|
|
495
731
|
|
|
496
732
|
```typescript
|
|
497
|
-
getDefaultCalendar() => Promise<{ result: Calendar | null; }>
|
|
733
|
+
getDefaultCalendar(options?: GetDefaultCalendarOptions | undefined) => Promise<{ result: Calendar | null; }>
|
|
498
734
|
```
|
|
499
735
|
|
|
500
736
|
Retrieves the default calendar.
|
|
501
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
|
+
|
|
502
750
|
**Returns:** <code>Promise<{ result: <a href="#calendar">Calendar</a> | null; }></code>
|
|
503
751
|
|
|
504
752
|
**Since:** 0.3.0
|
|
505
753
|
|
|
506
754
|
**Platform:** Android, iOS
|
|
507
755
|
|
|
508
|
-
|
|
509
|
-
|
|
756
|
+
---
|
|
510
757
|
|
|
511
758
|
### openCalendar(...)
|
|
512
759
|
|
|
@@ -524,29 +771,30 @@ Opens the calendar app.
|
|
|
524
771
|
|
|
525
772
|
**Platform:** Android, iOS
|
|
526
773
|
|
|
527
|
-
|
|
528
|
-
|
|
774
|
+
---
|
|
529
775
|
|
|
530
776
|
### createCalendar(...)
|
|
531
777
|
|
|
532
778
|
```typescript
|
|
533
|
-
createCalendar(options: CreateCalendarOptions) => Promise<
|
|
779
|
+
createCalendar(options: CreateCalendarOptions) => Promise<CreateCalendarResult>
|
|
534
780
|
```
|
|
535
781
|
|
|
536
782
|
Creates a calendar.
|
|
537
783
|
|
|
784
|
+
`title` is required. `color` is optional and defaults to `#007AFF`.
|
|
785
|
+
On Android, `accountName` and `ownerAccount` are required at runtime.
|
|
786
|
+
|
|
538
787
|
| Param | Type |
|
|
539
788
|
| ------------- | ----------------------------------------------------------------------- |
|
|
540
789
|
| **`options`** | <code><a href="#createcalendaroptions">CreateCalendarOptions</a></code> |
|
|
541
790
|
|
|
542
|
-
**Returns:** <code>Promise<
|
|
791
|
+
**Returns:** <code>Promise<<a href="#createcalendarresult">CreateCalendarResult</a>></code>
|
|
543
792
|
|
|
544
793
|
**Since:** 5.2.0
|
|
545
794
|
|
|
546
795
|
**Platform:** Android, iOS
|
|
547
796
|
|
|
548
|
-
|
|
549
|
-
|
|
797
|
+
---
|
|
550
798
|
|
|
551
799
|
### deleteCalendar(...)
|
|
552
800
|
|
|
@@ -564,25 +812,79 @@ Deletes a calendar by id.
|
|
|
564
812
|
|
|
565
813
|
**Platform:** Android, iOS
|
|
566
814
|
|
|
567
|
-
|
|
815
|
+
---
|
|
816
|
+
|
|
817
|
+
### modifyCalendar(...)
|
|
818
|
+
|
|
819
|
+
```typescript
|
|
820
|
+
modifyCalendar(options: ModifyCalendarOptions) => Promise<void>
|
|
821
|
+
```
|
|
822
|
+
|
|
823
|
+
Modifies a calendar with options.
|
|
824
|
+
|
|
825
|
+
| Param | Type |
|
|
826
|
+
| ------------- | ----------------------------------------------------------------------- |
|
|
827
|
+
| **`options`** | <code><a href="#modifycalendaroptions">ModifyCalendarOptions</a></code> |
|
|
828
|
+
|
|
829
|
+
**Since:** 7.2.0
|
|
830
|
+
|
|
831
|
+
**Platform:** Android, iOS
|
|
832
|
+
|
|
833
|
+
---
|
|
834
|
+
|
|
835
|
+
### createRemindersList(...)
|
|
568
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
|
+
---
|
|
569
872
|
|
|
570
873
|
### fetchAllRemindersSources()
|
|
571
874
|
|
|
572
875
|
```typescript
|
|
573
|
-
fetchAllRemindersSources() => Promise<
|
|
876
|
+
fetchAllRemindersSources() => Promise<FetchAllCalendarSourcesResult>
|
|
574
877
|
```
|
|
575
878
|
|
|
576
879
|
Retrieves a list of calendar sources.
|
|
577
880
|
|
|
578
|
-
**Returns:** <code>Promise<
|
|
881
|
+
**Returns:** <code>Promise<<a href="#fetchallcalendarsourcesresult">FetchAllCalendarSourcesResult</a>></code>
|
|
579
882
|
|
|
580
883
|
**Since:** 6.6.0
|
|
581
884
|
|
|
582
885
|
**Platform:** iOS
|
|
583
886
|
|
|
584
|
-
|
|
585
|
-
|
|
887
|
+
---
|
|
586
888
|
|
|
587
889
|
### openReminders()
|
|
588
890
|
|
|
@@ -596,47 +898,44 @@ Opens the reminders app.
|
|
|
596
898
|
|
|
597
899
|
**Platform:** iOS
|
|
598
900
|
|
|
599
|
-
|
|
600
|
-
|
|
901
|
+
---
|
|
601
902
|
|
|
602
903
|
### getDefaultRemindersList()
|
|
603
904
|
|
|
604
905
|
```typescript
|
|
605
|
-
getDefaultRemindersList() => Promise<
|
|
906
|
+
getDefaultRemindersList() => Promise<GetDefaultRemindersListResult>
|
|
606
907
|
```
|
|
607
908
|
|
|
608
909
|
Retrieves the default reminders list.
|
|
609
910
|
|
|
610
|
-
**Returns:** <code>Promise<
|
|
911
|
+
**Returns:** <code>Promise<<a href="#getdefaultreminderslistresult">GetDefaultRemindersListResult</a>></code>
|
|
611
912
|
|
|
612
913
|
**Since:** 7.1.0
|
|
613
914
|
|
|
614
915
|
**Platform:** iOS
|
|
615
916
|
|
|
616
|
-
|
|
617
|
-
|
|
917
|
+
---
|
|
618
918
|
|
|
619
919
|
### getRemindersLists()
|
|
620
920
|
|
|
621
921
|
```typescript
|
|
622
|
-
getRemindersLists() => Promise<
|
|
922
|
+
getRemindersLists() => Promise<GetRemindersListsResult>
|
|
623
923
|
```
|
|
624
924
|
|
|
625
925
|
Retrieves all available reminders lists.
|
|
626
926
|
|
|
627
|
-
**Returns:** <code>Promise<
|
|
927
|
+
**Returns:** <code>Promise<<a href="#getreminderslistsresult">GetRemindersListsResult</a>></code>
|
|
628
928
|
|
|
629
929
|
**Since:** 7.1.0
|
|
630
930
|
|
|
631
931
|
**Platform:** iOS
|
|
632
932
|
|
|
633
|
-
|
|
634
|
-
|
|
933
|
+
---
|
|
635
934
|
|
|
636
935
|
### createReminder(...)
|
|
637
936
|
|
|
638
937
|
```typescript
|
|
639
|
-
createReminder(options: CreateReminderOptions) => Promise<
|
|
938
|
+
createReminder(options: CreateReminderOptions) => Promise<CreateReminderResult>
|
|
640
939
|
```
|
|
641
940
|
|
|
642
941
|
Creates a reminder.
|
|
@@ -645,14 +944,13 @@ Creates a reminder.
|
|
|
645
944
|
| ------------- | ----------------------------------------------------------------------- |
|
|
646
945
|
| **`options`** | <code><a href="#createreminderoptions">CreateReminderOptions</a></code> |
|
|
647
946
|
|
|
648
|
-
**Returns:** <code>Promise<
|
|
947
|
+
**Returns:** <code>Promise<<a href="#createreminderresult">CreateReminderResult</a>></code>
|
|
649
948
|
|
|
650
949
|
**Since:** 0.5.0
|
|
651
950
|
|
|
652
951
|
**Platform:** iOS
|
|
653
952
|
|
|
654
|
-
|
|
655
|
-
|
|
953
|
+
---
|
|
656
954
|
|
|
657
955
|
### deleteRemindersById(...)
|
|
658
956
|
|
|
@@ -672,8 +970,7 @@ Deletes multiple reminders.
|
|
|
672
970
|
|
|
673
971
|
**Platform:** iOS
|
|
674
972
|
|
|
675
|
-
|
|
676
|
-
|
|
973
|
+
---
|
|
677
974
|
|
|
678
975
|
### deleteReminder(...)
|
|
679
976
|
|
|
@@ -691,8 +988,7 @@ Deletes a reminder.
|
|
|
691
988
|
|
|
692
989
|
**Platform:** iOS
|
|
693
990
|
|
|
694
|
-
|
|
695
|
-
|
|
991
|
+
---
|
|
696
992
|
|
|
697
993
|
### modifyReminder(...)
|
|
698
994
|
|
|
@@ -710,34 +1006,32 @@ Modifies a reminder.
|
|
|
710
1006
|
|
|
711
1007
|
**Platform:** iOS
|
|
712
1008
|
|
|
713
|
-
|
|
714
|
-
|
|
1009
|
+
---
|
|
715
1010
|
|
|
716
1011
|
### getReminderById(...)
|
|
717
1012
|
|
|
718
1013
|
```typescript
|
|
719
|
-
getReminderById(options: GetReminderByIdOptions) => Promise<
|
|
1014
|
+
getReminderById(options: GetReminderByIdOptions) => Promise<GetReminderByIdResult>
|
|
720
1015
|
```
|
|
721
1016
|
|
|
722
|
-
|
|
1017
|
+
Retrieves a reminder by id.
|
|
723
1018
|
|
|
724
1019
|
| Param | Type |
|
|
725
1020
|
| ------------- | ------------------------------------------------------------------------- |
|
|
726
1021
|
| **`options`** | <code><a href="#getreminderbyidoptions">GetReminderByIdOptions</a></code> |
|
|
727
1022
|
|
|
728
|
-
**Returns:** <code>Promise<
|
|
1023
|
+
**Returns:** <code>Promise<<a href="#getreminderbyidresult">GetReminderByIdResult</a>></code>
|
|
729
1024
|
|
|
730
1025
|
**Since:** 7.1.0
|
|
731
1026
|
|
|
732
1027
|
**Platform:** iOS
|
|
733
1028
|
|
|
734
|
-
|
|
735
|
-
|
|
1029
|
+
---
|
|
736
1030
|
|
|
737
1031
|
### getRemindersFromLists(...)
|
|
738
1032
|
|
|
739
1033
|
```typescript
|
|
740
|
-
getRemindersFromLists(options: GetRemindersFromListsOptions) => Promise<
|
|
1034
|
+
getRemindersFromLists(options: GetRemindersFromListsOptions) => Promise<GetRemindersFromListsResult>
|
|
741
1035
|
```
|
|
742
1036
|
|
|
743
1037
|
Retrieves reminders from multiple lists.
|
|
@@ -746,73 +1040,160 @@ Retrieves reminders from multiple lists.
|
|
|
746
1040
|
| ------------- | ------------------------------------------------------------------------------------- |
|
|
747
1041
|
| **`options`** | <code><a href="#getremindersfromlistsoptions">GetRemindersFromListsOptions</a></code> |
|
|
748
1042
|
|
|
749
|
-
**Returns:** <code>Promise<
|
|
1043
|
+
**Returns:** <code>Promise<<a href="#getremindersfromlistsresult">GetRemindersFromListsResult</a>></code>
|
|
750
1044
|
|
|
751
1045
|
**Since:** 5.3.0
|
|
752
1046
|
|
|
753
1047
|
**Platform:** iOS
|
|
754
1048
|
|
|
755
|
-
|
|
1049
|
+
---
|
|
1050
|
+
|
|
1051
|
+
### deleteReminderWithPrompt(...)
|
|
1052
|
+
|
|
1053
|
+
```typescript
|
|
1054
|
+
deleteReminderWithPrompt(options: DeleteReminderWithPromptOptions) => Promise<DeleteReminderWithPromptResult>
|
|
1055
|
+
```
|
|
1056
|
+
|
|
1057
|
+
Opens a dialog to delete a reminder.
|
|
1058
|
+
|
|
1059
|
+
| Param | Type |
|
|
1060
|
+
| ------------- | ------------------------------------------------------------------------------------------- |
|
|
1061
|
+
| **`options`** | <code><a href="#deletereminderwithpromptoptions">DeleteReminderWithPromptOptions</a></code> |
|
|
1062
|
+
|
|
1063
|
+
**Returns:** <code>Promise<<a href="#deletereminderwithpromptresult">DeleteReminderWithPromptResult</a>></code>
|
|
1064
|
+
|
|
1065
|
+
**Since:** 7.2.0
|
|
1066
|
+
|
|
1067
|
+
**Platform:** iOS
|
|
1068
|
+
|
|
1069
|
+
---
|
|
1070
|
+
|
|
1071
|
+
### updateRemindersList(...)
|
|
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
|
|
756
1088
|
|
|
1089
|
+
---
|
|
757
1090
|
|
|
758
1091
|
### Interfaces
|
|
759
1092
|
|
|
1093
|
+
#### CheckPermissionOptions
|
|
760
1094
|
|
|
761
|
-
|
|
1095
|
+
Options for {@link CalendarAccess#checkPermission}.
|
|
762
1096
|
|
|
763
|
-
| Prop
|
|
764
|
-
|
|
|
765
|
-
| **`
|
|
766
|
-
| **`calendarId`** | <code>string</code> | | 0.1.0 | iOS |
|
|
767
|
-
| **`location`** | <code>string</code> | | 0.1.0 | Android, iOS |
|
|
768
|
-
| **`startDate`** | <code>number</code> | | 0.1.0 | Android, iOS |
|
|
769
|
-
| **`endDate`** | <code>number</code> | | 0.1.0 | Android, iOS |
|
|
770
|
-
| **`isAllDay`** | <code>boolean</code> | | 0.1.0 | Android, iOS |
|
|
771
|
-
| **`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 |
|
|
772
|
-
| **`url`** | <code>string</code> | | 0.1.0 | iOS |
|
|
773
|
-
| **`description`** | <code>string</code> | | 7.1.0 | Android, iOS |
|
|
774
|
-
| **`availability`** | <code><a href="#eventavailability">EventAvailability</a></code> | | 7.1.0 | Android, iOS |
|
|
775
|
-
| **`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 |
|
|
776
1100
|
|
|
1101
|
+
#### RequestPermissionOptions
|
|
777
1102
|
|
|
778
|
-
|
|
1103
|
+
Options for {@link CalendarAccess#requestPermission}.
|
|
779
1104
|
|
|
780
|
-
| Prop
|
|
781
|
-
|
|
|
782
|
-
| **`
|
|
783
|
-
| **`calendarId`** | <code>string</code> | | 0.1.0 | iOS |
|
|
784
|
-
| **`location`** | <code>string</code> | | 0.1.0 | Android, iOS |
|
|
785
|
-
| **`startDate`** | <code>number</code> | | 0.1.0 | Android, iOS |
|
|
786
|
-
| **`endDate`** | <code>number</code> | | 0.1.0 | Android, iOS |
|
|
787
|
-
| **`isAllDay`** | <code>boolean</code> | | 0.1.0 | Android, iOS |
|
|
788
|
-
| **`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 |
|
|
789
|
-
| **`url`** | <code>string</code> | | 0.1.0 | iOS |
|
|
790
|
-
| **`description`** | <code>string</code> | | 7.1.0 | Android, iOS |
|
|
791
|
-
| **`availability`** | <code><a href="#eventavailability">EventAvailability</a></code> | | 7.1.0 | Android, iOS |
|
|
792
|
-
| **`invitees`** | <code>string[]</code> | An array of emails to invite. | 7.1.0 | Android |
|
|
793
|
-
| **`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 |
|
|
794
1108
|
|
|
1109
|
+
#### CreateEventWithPromptResult
|
|
795
1110
|
|
|
796
|
-
|
|
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 |
|
|
1115
|
+
|
|
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 |
|
|
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 |
|
|
797
1174
|
|
|
798
|
-
|
|
799
|
-
| ------------------ | --------------------------------------------------------------- | -------------------------------------------------------------------------- | ----------------- | ----- | ------------ |
|
|
800
|
-
| **`title`** | <code>string</code> | | | 0.4.0 | Android, iOS |
|
|
801
|
-
| **`calendarId`** | <code>string</code> | | | 0.1.0 | Android, iOS |
|
|
802
|
-
| **`location`** | <code>string</code> | | | 0.1.0 | Android, iOS |
|
|
803
|
-
| **`startDate`** | <code>number</code> | | | 0.1.0 | Android, iOS |
|
|
804
|
-
| **`endDate`** | <code>number</code> | | | 0.1.0 | Android, iOS |
|
|
805
|
-
| **`isAllDay`** | <code>boolean</code> | | | 0.1.0 | Android, iOS |
|
|
806
|
-
| **`alerts`** | <code>number[]</code> | | | 7.1.0 | Android, iOS |
|
|
807
|
-
| **`url`** | <code>string</code> | | | 0.1.0 | iOS |
|
|
808
|
-
| **`description`** | <code>string</code> | | | 7.1.0 | Android, iOS |
|
|
809
|
-
| **`availability`** | <code><a href="#eventavailability">EventAvailability</a></code> | | | 7.1.0 | Android, iOS |
|
|
810
|
-
| **`organizer`** | <code>string</code> | Email of the event organizer. | | 7.1.0 | Android |
|
|
811
|
-
| **`color`** | <code>string</code> | | | 7.1.0 | Android |
|
|
812
|
-
| **`duration`** | <code>string</code> | Duration of the event in RFC2445 format. | | 7.1.0 | Android |
|
|
813
|
-
| **`commit`** | <code>boolean</code> | Whether to save immediately (`true`) or batch changes for later (`false`). | <code>true</code> | 7.1.0 | iOS |
|
|
814
|
-
| **`attendees`** | <code>EventGuest[]</code> | The event guests. | | 7.1.0 | Android |
|
|
1175
|
+
#### CreateEventOptions
|
|
815
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 |
|
|
816
1197
|
|
|
817
1198
|
#### EventGuest
|
|
818
1199
|
|
|
@@ -821,28 +1202,27 @@ Retrieves reminders from multiple lists.
|
|
|
821
1202
|
| **`name`** | <code>string</code> | 7.1.0 |
|
|
822
1203
|
| **`email`** | <code>string</code> | 7.1.0 |
|
|
823
1204
|
|
|
824
|
-
|
|
825
1205
|
#### ModifyEventOptions
|
|
826
1206
|
|
|
827
|
-
| Prop | Type
|
|
828
|
-
| ------------------ |
|
|
829
|
-
| **`
|
|
830
|
-
| **`
|
|
831
|
-
| **`
|
|
832
|
-
| **`
|
|
833
|
-
| **`
|
|
834
|
-
| **`
|
|
835
|
-
| **`
|
|
836
|
-
| **`
|
|
837
|
-
| **`
|
|
838
|
-
| **`
|
|
839
|
-
| **`
|
|
840
|
-
| **`
|
|
841
|
-
| **`
|
|
842
|
-
| **`
|
|
843
|
-
| **`
|
|
844
|
-
| **`
|
|
845
|
-
|
|
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 |
|
|
846
1226
|
|
|
847
1227
|
#### DeleteEventsByIdResult
|
|
848
1228
|
|
|
@@ -851,98 +1231,112 @@ Retrieves reminders from multiple lists.
|
|
|
851
1231
|
| **`deleted`** | <code>string[]</code> | 7.1.0 |
|
|
852
1232
|
| **`failed`** | <code>string[]</code> | 7.1.0 |
|
|
853
1233
|
|
|
854
|
-
|
|
855
1234
|
#### DeleteEventsByIdOptions
|
|
856
1235
|
|
|
857
|
-
| Prop
|
|
858
|
-
|
|
|
859
|
-
| **`
|
|
860
|
-
| **`
|
|
861
|
-
|
|
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 |
|
|
862
1241
|
|
|
863
1242
|
#### DeleteEventOptions
|
|
864
1243
|
|
|
865
|
-
| Prop
|
|
866
|
-
|
|
|
867
|
-
| **`
|
|
868
|
-
| **`
|
|
869
|
-
|
|
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 |
|
|
870
1250
|
|
|
871
1251
|
#### DeleteEventWithPromptOptions
|
|
872
1252
|
|
|
873
|
-
| Prop | Type | Description
|
|
874
|
-
| ----------------------- | ----------------------------------------------- |
|
|
875
|
-
| **`
|
|
876
|
-
| **`
|
|
877
|
-
| **`
|
|
878
|
-
| **`
|
|
879
|
-
| **`
|
|
880
|
-
| **`
|
|
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 |
|
|
881
1263
|
|
|
1264
|
+
#### ListEventsInRangeResult
|
|
882
1265
|
|
|
883
|
-
|
|
1266
|
+
| Prop | Type | Description | Since | Platform |
|
|
1267
|
+
| ------------ | ---------------------------- | ---------------------------------------- | ----- | ------------ |
|
|
1268
|
+
| **`result`** | <code>CalendarEvent[]</code> | Events that overlap the requested range. | 7.3.0 | Android, iOS |
|
|
884
1269
|
|
|
885
|
-
|
|
886
|
-
| ------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----- | ------------ |
|
|
887
|
-
| **`id`** | <code>string</code> | 7.1.0 | Android, iOS |
|
|
888
|
-
| **`title`** | <code>string</code> | 7.1.0 | Android, iOS |
|
|
889
|
-
| **`calendarId`** | <code>string \| null</code> | 7.1.0 | Android, iOS |
|
|
890
|
-
| **`location`** | <code>string \| null</code> | 7.1.0 | Android, iOS |
|
|
891
|
-
| **`startDate`** | <code>number</code> | 7.1.0 | Android, iOS |
|
|
892
|
-
| **`endDate`** | <code>number</code> | 7.1.0 | Android, iOS |
|
|
893
|
-
| **`isAllDay`** | <code>boolean</code> | 7.1.0 | Android, iOS |
|
|
894
|
-
| **`alerts`** | <code>number[]</code> | 7.1.0 | Android, iOS |
|
|
895
|
-
| **`url`** | <code>string \| null</code> | 7.1.0 | iOS |
|
|
896
|
-
| **`description`** | <code>string \| null</code> | 7.1.0 | Android, iOS |
|
|
897
|
-
| **`availability`** | <code><a href="#eventavailability">EventAvailability</a> \| null</code> | 7.1.0 | Android, iOS |
|
|
898
|
-
| **`organizer`** | <code>string \| null</code> | 7.1.0 | Android, iOS |
|
|
899
|
-
| **`color`** | <code>string \| null</code> | 7.1.0 | Android, iOS |
|
|
900
|
-
| **`duration`** | <code>string \| null</code> | 7.1.0 | Android |
|
|
901
|
-
| **`isDetached`** | <code>boolean \| null</code> | 7.1.0 | iOS |
|
|
902
|
-
| **`birthdayContactIdentifier`** | <code>string \| null</code> | 7.1.0 | iOS |
|
|
903
|
-
| **`status`** | <code><a href="#eventstatus">EventStatus</a> \| null</code> | 7.1.0 | Android, iOS |
|
|
904
|
-
| **`creationDate`** | <code>number \| null</code> | 7.1.0 | iOS |
|
|
905
|
-
| **`lastModifiedDate`** | <code>number \| null</code> | 7.1.0 | iOS |
|
|
906
|
-
| **`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 |
|
|
907
|
-
| **`timezone`** | <code>string \| null</code> | 7.1.0 | Android, iOS |
|
|
1270
|
+
#### CalendarEvent
|
|
908
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 |
|
|
909
1299
|
|
|
910
1300
|
#### ListEventsInRangeOptions
|
|
911
1301
|
|
|
912
|
-
| Prop | Type | Description
|
|
913
|
-
| ---------- | ------------------- |
|
|
914
|
-
| **`from`** | <code>number</code> | The
|
|
915
|
-
| **`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 |
|
|
916
1306
|
|
|
1307
|
+
#### SelectCalendarsWithPromptResult
|
|
917
1308
|
|
|
918
|
-
|
|
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 |
|
|
919
1312
|
|
|
920
|
-
|
|
921
|
-
| -------------------------------- | ----------------------------------------------------------------- | ------------------------------------------------------------------ | ----- | ------------ |
|
|
922
|
-
| **`id`** | <code>string</code> | | 7.1.0 | Android, iOS |
|
|
923
|
-
| **`title`** | <code>string</code> | | 7.1.0 | Android, iOS |
|
|
924
|
-
| **`internalTitle`** | <code>string \| null</code> | Internal name of the calendar (`CalendarContract.Calendars.NAME`). | 7.1.0 | Android |
|
|
925
|
-
| **`color`** | <code>string</code> | | 7.1.0 | Android, iOS |
|
|
926
|
-
| **`isImmutable`** | <code>boolean \| null</code> | | 7.1.0 | iOS |
|
|
927
|
-
| **`allowsContentModifications`** | <code>boolean \| null</code> | | 7.1.0 | iOS |
|
|
928
|
-
| **`type`** | <code><a href="#calendartype">CalendarType</a> \| null</code> | | 7.1.0 | iOS |
|
|
929
|
-
| **`isSubscribed`** | <code>boolean \| null</code> | | 7.1.0 | iOS |
|
|
930
|
-
| **`source`** | <code><a href="#calendarsource">CalendarSource</a> \| null</code> | | 7.1.0 | iOS |
|
|
931
|
-
| **`visible`** | <code>boolean \| null</code> | Indicates if the events from this calendar should be shown. | 7.1.0 | Android |
|
|
932
|
-
| **`accountName`** | <code>string \| null</code> | The account under which the calendar is registered. | 7.1.0 | Android |
|
|
933
|
-
| **`ownerAccount`** | <code>string \| null</code> | The owner of the calendar. | 7.1.0 | Android |
|
|
934
|
-
| **`maxReminders`** | <code>number \| null</code> | Maximum number of reminders allowed per event. | 7.1.0 | Android |
|
|
935
|
-
| **`location`** | <code>string \| null</code> | | 7.1.0 | Android |
|
|
1313
|
+
#### Calendar
|
|
936
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 |
|
|
937
1332
|
|
|
938
1333
|
#### CalendarSource
|
|
939
1334
|
|
|
940
|
-
| Prop | Type | Since |
|
|
941
|
-
| ----------- | ----------------------------------------------------------------- | ----- |
|
|
942
|
-
| **`type`** | <code><a href="#calendarsourcetype">CalendarSourceType</a></code> | 7.1.0 |
|
|
943
|
-
| **`id`** | <code>string</code> | 7.1.0 |
|
|
944
|
-
| **`title`** | <code>string</code> | 7.1.0 |
|
|
945
|
-
|
|
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 |
|
|
946
1340
|
|
|
947
1341
|
#### SelectCalendarsWithPromptOptions
|
|
948
1342
|
|
|
@@ -951,58 +1345,125 @@ Retrieves reminders from multiple lists.
|
|
|
951
1345
|
| **`displayStyle`** | <code><a href="#calendarchooserdisplaystyle">CalendarChooserDisplayStyle</a></code> | | <code>CalendarChooserDisplayStyle.ALL_CALENDARS</code> | 7.1.0 |
|
|
952
1346
|
| **`multiple`** | <code>boolean</code> | Allow multiple selections. | <code>false</code> | 7.1.0 |
|
|
953
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 |
|
|
954
1365
|
|
|
955
1366
|
#### OpenCalendarOptions
|
|
956
1367
|
|
|
957
|
-
| Prop | Type | Default | Since |
|
|
958
|
-
| ---------- | ------------------- | ----------------------- | ----- |
|
|
959
|
-
| **`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 |
|
|
960
1371
|
|
|
1372
|
+
#### CreateCalendarResult
|
|
961
1373
|
|
|
962
|
-
|
|
1374
|
+
| Prop | Type | Description | Since | Platform |
|
|
1375
|
+
| -------- | ------------------- | ----------------------------------------- | ----- | ------------ |
|
|
1376
|
+
| **`id`** | <code>string</code> | Identifier of the newly created calendar. | 7.3.0 | Android, iOS |
|
|
963
1377
|
|
|
964
|
-
|
|
965
|
-
| ------------------ | ------------------- | ---------------------------------------------------------- | ----- | ------------ |
|
|
966
|
-
| **`title`** | <code>string</code> | | 5.2.0 | Android, iOS |
|
|
967
|
-
| **`color`** | <code>string</code> | The color of the calendar. Should be provided on Android. | 5.2.0 | Android, iOS |
|
|
968
|
-
| **`sourceId`** | <code>string</code> | | 5.2.0 | iOS |
|
|
969
|
-
| **`accountName`** | <code>string</code> | Only needed on Android. Typically set to an email address. | 7.1.0 | Android |
|
|
970
|
-
| **`ownerAccount`** | <code>string</code> | Only needed on Android. Typically set to an email address. | 7.1.0 | Android |
|
|
1378
|
+
#### CreateCalendarOptions
|
|
971
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 |
|
|
972
1387
|
|
|
973
1388
|
#### DeleteCalendarOptions
|
|
974
1389
|
|
|
975
|
-
| Prop | Type | Since |
|
|
976
|
-
| -------- | ------------------- | ----- |
|
|
977
|
-
| **`id`** | <code>string</code> | 7.1.0 |
|
|
1390
|
+
| Prop | Type | Since | Platform |
|
|
1391
|
+
| -------- | ------------------- | ----- | ------------ |
|
|
1392
|
+
| **`id`** | <code>string</code> | 7.1.0 | Android, iOS |
|
|
978
1393
|
|
|
1394
|
+
#### ModifyCalendarOptions
|
|
979
1395
|
|
|
980
|
-
|
|
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 |
|
|
981
1401
|
|
|
982
|
-
|
|
983
|
-
| -------------------- | --------------------------------------------------------- | ----- |
|
|
984
|
-
| **`title`** | <code>string</code> | 7.1.0 |
|
|
985
|
-
| **`listId`** | <code>string</code> | 7.1.0 |
|
|
986
|
-
| **`priority`** | <code>number</code> | 7.1.0 |
|
|
987
|
-
| **`isCompleted`** | <code>boolean</code> | 7.1.0 |
|
|
988
|
-
| **`startDate`** | <code>number</code> | 7.1.0 |
|
|
989
|
-
| **`dueDate`** | <code>number</code> | 7.1.0 |
|
|
990
|
-
| **`completionDate`** | <code>number</code> | 7.1.0 |
|
|
991
|
-
| **`notes`** | <code>string</code> | 7.1.0 |
|
|
992
|
-
| **`url`** | <code>string</code> | 7.1.0 |
|
|
993
|
-
| **`location`** | <code>string</code> | 7.1.0 |
|
|
994
|
-
| **`recurrence`** | <code><a href="#recurrencerule">RecurrenceRule</a></code> | 7.1.0 |
|
|
995
|
-
| **`alerts`** | <code>number[]</code> | 7.1.0 |
|
|
1402
|
+
#### CreateRemindersListResult
|
|
996
1403
|
|
|
1404
|
+
| Prop | Type | Description | Since | Platform |
|
|
1405
|
+
| -------- | ------------------- | ----------------------------------------------- | ----- | -------- |
|
|
1406
|
+
| **`id`** | <code>string</code> | Identifier of the newly created reminders list. | 7.3.0 | iOS |
|
|
997
1407
|
|
|
998
|
-
####
|
|
1408
|
+
#### CreateRemindersListOptions
|
|
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 |
|
|
1416
|
+
|
|
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 |
|
|
999
1429
|
|
|
1000
|
-
|
|
1001
|
-
| --------------- | ------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ----- |
|
|
1002
|
-
| **`frequency`** | <code><a href="#recurrencefrequency">RecurrenceFrequency</a></code> | | 7.1.0 |
|
|
1003
|
-
| **`interval`** | <code>number</code> | How often it repeats (e.g. 1 for every occurrence, 2 for every second occurrence). | 7.1.0 |
|
|
1004
|
-
| **`end`** | <code>number</code> | Timestamp of when the recurrence ends. | 7.1.0 |
|
|
1430
|
+
#### GetRemindersListsResult
|
|
1005
1431
|
|
|
1432
|
+
| Prop | Type | Description | Since | Platform |
|
|
1433
|
+
| ------------ | ----------------------- | ------------------------------ | ----- | -------- |
|
|
1434
|
+
| **`result`** | <code>Calendar[]</code> | All available reminders lists. | 7.1.0 | iOS |
|
|
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 |
|
|
1006
1467
|
|
|
1007
1468
|
#### DeleteRemindersByIdResult
|
|
1008
1469
|
|
|
@@ -1011,58 +1472,61 @@ Retrieves reminders from multiple lists.
|
|
|
1011
1472
|
| **`deleted`** | <code>string[]</code> | 7.1.0 |
|
|
1012
1473
|
| **`failed`** | <code>string[]</code> | 7.1.0 |
|
|
1013
1474
|
|
|
1014
|
-
|
|
1015
1475
|
#### DeleteRemindersByIdOptions
|
|
1016
1476
|
|
|
1017
1477
|
| Prop | Type | Since |
|
|
1018
1478
|
| --------- | --------------------- | ----- |
|
|
1019
1479
|
| **`ids`** | <code>string[]</code> | 7.1.0 |
|
|
1020
1480
|
|
|
1021
|
-
|
|
1022
1481
|
#### DeleteReminderOptions
|
|
1023
1482
|
|
|
1024
|
-
| Prop
|
|
1025
|
-
|
|
|
1026
|
-
| **`
|
|
1027
|
-
|
|
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 | |
|
|
1028
1487
|
|
|
1029
1488
|
#### ModifyReminderOptions
|
|
1030
1489
|
|
|
1031
|
-
| Prop | Type
|
|
1032
|
-
| -------------------- |
|
|
1033
|
-
| **`
|
|
1034
|
-
| **`
|
|
1035
|
-
| **`
|
|
1036
|
-
| **`
|
|
1037
|
-
| **`
|
|
1038
|
-
| **`
|
|
1039
|
-
| **`
|
|
1040
|
-
| **`
|
|
1041
|
-
| **`notes`** | <code>string</code> | 7.1.0 |
|
|
1042
|
-
| **`
|
|
1043
|
-
| **`
|
|
1044
|
-
| **`
|
|
1045
|
-
| **`
|
|
1046
|
-
|
|
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 |
|
|
1047
1512
|
|
|
1048
1513
|
#### Reminder
|
|
1049
1514
|
|
|
1050
|
-
| Prop | Type | Since |
|
|
1051
|
-
| -------------------- | ----------------------------- | ----- |
|
|
1052
|
-
| **`id`** | <code>string</code> | 7.1.0 |
|
|
1053
|
-
| **`title`** | <code>string \| null</code> | 7.1.0 |
|
|
1054
|
-
| **`listId`** | <code>string \| null</code> | 7.1.0 |
|
|
1055
|
-
| **`isCompleted`** | <code>boolean</code> | 7.1.0 |
|
|
1056
|
-
| **`priority`** | <code>number \| null</code> | 7.1.0 |
|
|
1057
|
-
| **`notes`** | <code>string \| null</code> | 7.1.0 |
|
|
1058
|
-
| **`location`** | <code>string \| null</code> | 7.1.0 |
|
|
1059
|
-
| **`url`** | <code>string \| null</code> | 7.1.0 |
|
|
1060
|
-
| **`startDate`** | <code>number \| null</code> | 7.1.0 |
|
|
1061
|
-
| **`dueDate`** | <code>number \| null</code> | 7.1.0 |
|
|
1062
|
-
| **`completionDate`** | <code>number \| null</code> | 7.1.0 |
|
|
1063
|
-
| **`recurrence`** | <code>RecurrenceRule[]</code> | 7.1.0 |
|
|
1064
|
-
| **`alerts`** | <code>number[]</code> | 7.1.0 |
|
|
1065
|
-
|
|
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 | |
|
|
1066
1530
|
|
|
1067
1531
|
#### GetReminderByIdOptions
|
|
1068
1532
|
|
|
@@ -1070,6 +1534,11 @@ Retrieves reminders from multiple lists.
|
|
|
1070
1534
|
| -------- | ------------------- | ----- |
|
|
1071
1535
|
| **`id`** | <code>string</code> | 7.1.0 |
|
|
1072
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 |
|
|
1073
1542
|
|
|
1074
1543
|
#### GetRemindersFromListsOptions
|
|
1075
1544
|
|
|
@@ -1077,54 +1546,100 @@ Retrieves reminders from multiple lists.
|
|
|
1077
1546
|
| ------------- | --------------------- | ----- |
|
|
1078
1547
|
| **`listIds`** | <code>string[]</code> | 7.1.0 |
|
|
1079
1548
|
|
|
1549
|
+
#### DeleteReminderWithPromptResult
|
|
1080
1550
|
|
|
1081
|
-
|
|
1551
|
+
| Prop | Type | Description | Since | Platform |
|
|
1552
|
+
| ------------- | -------------------- | ------------------------------------ | ----- | -------- |
|
|
1553
|
+
| **`deleted`** | <code>boolean</code> | Whether the user confirmed deletion. | 7.2.0 | iOS |
|
|
1082
1554
|
|
|
1555
|
+
#### DeleteReminderWithPromptOptions
|
|
1556
|
+
|
|
1557
|
+
| Prop | Type | Description | Default | Since |
|
|
1558
|
+
| ----------------------- | ------------------- | ----------------------------------- | --------------------- | ----- |
|
|
1559
|
+
| **`id`** | <code>string</code> | | | 7.2.0 |
|
|
1560
|
+
| **`title`** | <code>string</code> | Title of the dialog. | | 7.2.0 |
|
|
1561
|
+
| **`message`** | <code>string</code> | Message of the dialog. | | 7.2.0 |
|
|
1562
|
+
| **`confirmButtonText`** | <code>string</code> | Text to show on the confirm button. | <code>'Delete'</code> | 7.2.0 |
|
|
1563
|
+
| **`cancelButtonText`** | <code>string</code> | Text to show on the cancel button. | <code>'Cancel'</code> | 7.2.0 |
|
|
1564
|
+
|
|
1565
|
+
#### UpdateRemindersListResult
|
|
1566
|
+
|
|
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
|
|
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
|
|
1083
1581
|
|
|
1084
1582
|
#### PermissionState
|
|
1085
1583
|
|
|
1086
1584
|
<code>'prompt' | 'prompt-with-rationale' | 'granted' | 'denied'</code>
|
|
1087
1585
|
|
|
1088
|
-
|
|
1089
1586
|
#### CheckAllPermissionsResult
|
|
1090
1587
|
|
|
1091
|
-
<code
|
|
1092
|
-
|
|
1588
|
+
<code>
|
|
1589
|
+
<a href="#record">Record</a><<a href="#calendarpermissionscope">CalendarPermissionScope</a>,{' '}
|
|
1590
|
+
<a href="#permissionstate">PermissionState</a>>
|
|
1591
|
+
</code>
|
|
1093
1592
|
|
|
1094
1593
|
#### Record
|
|
1095
1594
|
|
|
1096
1595
|
Construct a type with a set of properties K of type T
|
|
1097
1596
|
|
|
1098
|
-
<code>{
|
|
1099
1597
|
[P in K]: T;
|
|
1100
1598
|
}</code>
|
|
1101
|
-
|
|
1599
|
+
<code>{
|
|
1600
|
+
[P in K]: T;
|
|
1601
|
+
}</code>
|
|
1102
1602
|
|
|
1103
1603
|
#### RequestAllPermissionsResult
|
|
1104
1604
|
|
|
1105
|
-
<code
|
|
1605
|
+
<code>
|
|
1606
|
+
<a href="#checkallpermissionsresult">CheckAllPermissionsResult</a>
|
|
1607
|
+
</code>
|
|
1106
1608
|
|
|
1609
|
+
#### RecurrenceFrequency
|
|
1610
|
+
|
|
1611
|
+
<code>'daily' | 'weekly' | 'monthly' | 'yearly'</code>
|
|
1107
1612
|
|
|
1108
1613
|
#### EventEditAction
|
|
1109
1614
|
|
|
1110
|
-
<code>
|
|
1615
|
+
<code>'canceled' | 'saved' | 'deleted'</code>
|
|
1616
|
+
|
|
1617
|
+
#### SystemColorName
|
|
1111
1618
|
|
|
1619
|
+
Named iOS system color.
|
|
1620
|
+
|
|
1621
|
+
<code>'blue' | 'brown' | 'gray' | 'green' | 'indigo' | 'orange' | 'pink' | 'purple' | 'red' | 'teal' | 'yellow'</code>
|
|
1112
1622
|
|
|
1113
1623
|
#### RemindersList
|
|
1114
1624
|
|
|
1115
|
-
|
|
1625
|
+
A reminders list on iOS.
|
|
1116
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.
|
|
1117
1630
|
|
|
1118
|
-
|
|
1631
|
+
<code>
|
|
1632
|
+
<a href="#calendar">Calendar</a>
|
|
1633
|
+
</code>
|
|
1119
1634
|
|
|
1635
|
+
### Enums
|
|
1120
1636
|
|
|
1121
1637
|
#### CalendarPermissionScope
|
|
1122
1638
|
|
|
1123
|
-
| Members | Value | Description
|
|
1124
|
-
| --------------------- | ----------------------------- |
|
|
1125
|
-
| **`READ_CALENDAR`** | <code>
|
|
1126
|
-
| **`READ_REMINDERS`** | <code>
|
|
1127
|
-
| **`WRITE_CALENDAR`** | <code>
|
|
1128
|
-
| **`WRITE_REMINDERS`** | <code>
|
|
1129
|
-
|
|
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 |
|
|
1130
1645
|
|
|
1131
1646
|
#### EventAvailability
|
|
1132
1647
|
|
|
@@ -1136,69 +1651,63 @@ Construct a type with a set of properties K of type T
|
|
|
1136
1651
|
| **`TENTATIVE`** | | 7.1.0 | Android, iOS |
|
|
1137
1652
|
| **`UNAVAILABLE`** | | 7.1.0 | iOS |
|
|
1138
1653
|
|
|
1139
|
-
|
|
1140
1654
|
#### EventSpan
|
|
1141
1655
|
|
|
1142
|
-
| Members | Since |
|
|
1143
|
-
| ---------------------------- | ----- |
|
|
1144
|
-
| **`THIS_EVENT`** | 7.1.0 |
|
|
1145
|
-
| **`THIS_AND_FUTURE_EVENTS`** | 7.1.0 |
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
#### EventStatus
|
|
1149
|
-
|
|
1150
|
-
| Members | Value | Since | Platform |
|
|
1151
|
-
| --------------- | ------------------------ | ----- | ------------ |
|
|
1152
|
-
| **`NONE`** | <code>"none"</code> | 7.1.0 | iOS |
|
|
1153
|
-
| **`CONFIRMED`** | <code>"confirmed"</code> | 7.1.0 | Android, iOS |
|
|
1154
|
-
| **`TENTATIVE`** | <code>"tentative"</code> | 7.1.0 | Android, iOS |
|
|
1155
|
-
| **`CANCELED`** | <code>"canceled"</code> | 7.1.0 | Android, iOS |
|
|
1156
|
-
|
|
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 |
|
|
1157
1660
|
|
|
1158
1661
|
#### AttendeeRole
|
|
1159
1662
|
|
|
1160
1663
|
| Members | Value | Since | Platform |
|
|
1161
1664
|
| --------------------- | ----------------------------- | ----- | ------------ |
|
|
1162
|
-
| **`UNKNOWN`** | <code>
|
|
1163
|
-
| **`REQUIRED`** | <code>
|
|
1164
|
-
| **`OPTIONAL`** | <code>
|
|
1165
|
-
| **`CHAIR`** | <code>
|
|
1166
|
-
| **`NON_PARTICIPANT`** | <code>
|
|
1167
|
-
| **`ATTENDEE`** | <code>
|
|
1168
|
-
| **`ORGANIZER`** | <code>
|
|
1169
|
-
| **`PERFORMER`** | <code>
|
|
1170
|
-
| **`SPEAKER`** | <code>
|
|
1171
|
-
|
|
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 |
|
|
1172
1674
|
|
|
1173
1675
|
#### AttendeeStatus
|
|
1174
1676
|
|
|
1175
1677
|
| Members | Value | Since | Platform |
|
|
1176
1678
|
| ---------------- | ------------------------ | ----- | ------------ |
|
|
1177
|
-
| **`NONE`** | <code>
|
|
1178
|
-
| **`ACCEPTED`** | <code>
|
|
1179
|
-
| **`DECLINED`** | <code>
|
|
1180
|
-
| **`INVITED`** | <code>
|
|
1181
|
-
| **`UNKNOWN`** | <code>
|
|
1182
|
-
| **`PENDING`** | <code>
|
|
1183
|
-
| **`TENTATIVE`** | <code>
|
|
1184
|
-
| **`DELEGATED`** | <code>
|
|
1185
|
-
| **`COMPLETED`** | <code>
|
|
1186
|
-
| **`IN_PROCESS`** | <code>
|
|
1187
|
-
|
|
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 |
|
|
1188
1689
|
|
|
1189
1690
|
#### AttendeeType
|
|
1190
1691
|
|
|
1191
1692
|
| Members | Value | Since | Platform |
|
|
1192
1693
|
| -------------- | ----------------------- | ----- | ------------ |
|
|
1193
|
-
| **`UNKNOWN`** | <code>
|
|
1194
|
-
| **`PERSON`** | <code>
|
|
1195
|
-
| **`ROOM`** | <code>
|
|
1196
|
-
| **`RESOURCE`** | <code>
|
|
1197
|
-
| **`GROUP`** | <code>
|
|
1198
|
-
| **`REQUIRED`** | <code>
|
|
1199
|
-
| **`NONE`** | <code>
|
|
1200
|
-
| **`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 |
|
|
1702
|
+
|
|
1703
|
+
#### EventStatus
|
|
1201
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 |
|
|
1202
1711
|
|
|
1203
1712
|
#### CalendarType
|
|
1204
1713
|
|
|
@@ -1210,7 +1719,6 @@ Construct a type with a set of properties K of type T
|
|
|
1210
1719
|
| **`SUBSCRIPTION`** | 7.1.0 |
|
|
1211
1720
|
| **`BIRTHDAY`** | 7.1.0 |
|
|
1212
1721
|
|
|
1213
|
-
|
|
1214
1722
|
#### CalendarSourceType
|
|
1215
1723
|
|
|
1216
1724
|
| Members | Since |
|
|
@@ -1222,7 +1730,6 @@ Construct a type with a set of properties K of type T
|
|
|
1222
1730
|
| **`SUBSCRIBED`** | 7.1.0 |
|
|
1223
1731
|
| **`BIRTHDAYS`** | 7.1.0 |
|
|
1224
1732
|
|
|
1225
|
-
|
|
1226
1733
|
#### CalendarChooserDisplayStyle
|
|
1227
1734
|
|
|
1228
1735
|
| Members | Since |
|
|
@@ -1230,16 +1737,6 @@ Construct a type with a set of properties K of type T
|
|
|
1230
1737
|
| **`ALL_CALENDARS`** | 0.2.0 |
|
|
1231
1738
|
| **`WRITABLE_CALENDARS_ONLY`** | 0.2.0 |
|
|
1232
1739
|
|
|
1233
|
-
|
|
1234
|
-
#### RecurrenceFrequency
|
|
1235
|
-
|
|
1236
|
-
| Members | Since |
|
|
1237
|
-
| ------------- | ----- |
|
|
1238
|
-
| **`DAILY`** | 7.1.0 |
|
|
1239
|
-
| **`WEEKLY`** | 7.1.0 |
|
|
1240
|
-
| **`MONTHLY`** | 7.1.0 |
|
|
1241
|
-
| **`YEARLY`** | 7.1.0 |
|
|
1242
|
-
|
|
1243
1740
|
</docgen-api>
|
|
1244
1741
|
|
|
1245
1742
|
## Contributing
|