@ebarooni/capacitor-calendar 7.0.0 → 7.2.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/README.md +863 -315
- package/android/src/main/java/dev/barooni/capacitor/calendar/CapacitorCalendarPlugin.kt +283 -316
- package/android/src/main/java/dev/barooni/capacitor/calendar/PluginError.kt +49 -0
- package/android/src/main/java/dev/barooni/capacitor/calendar/implementation/CapacitorCalendar.kt +363 -0
- package/android/src/main/java/dev/barooni/capacitor/calendar/models/data/CalendarEvent.kt +25 -0
- package/android/src/main/java/dev/barooni/capacitor/calendar/models/data/CalendarInfo.kt +14 -0
- package/android/src/main/java/dev/barooni/capacitor/calendar/models/data/EventGuest.kt +9 -0
- package/android/src/main/java/dev/barooni/capacitor/calendar/models/enums/CalendarPermissionScope.kt +15 -0
- package/android/src/main/java/dev/barooni/capacitor/calendar/models/inputs/CheckPermissionInput.kt +20 -0
- package/android/src/main/java/dev/barooni/capacitor/calendar/models/inputs/CreateCalendarInput.kt +18 -0
- package/android/src/main/java/dev/barooni/capacitor/calendar/models/inputs/CreateEventInput.kt +27 -0
- package/android/src/main/java/dev/barooni/capacitor/calendar/models/inputs/CreateEventWithPromptInput.kt +36 -0
- package/android/src/main/java/dev/barooni/capacitor/calendar/models/inputs/DeleteCalendarInput.kt +10 -0
- package/android/src/main/java/dev/barooni/capacitor/calendar/models/inputs/DeleteEventInput.kt +10 -0
- package/android/src/main/java/dev/barooni/capacitor/calendar/models/inputs/DeleteEventWithPromptInput.kt +14 -0
- package/android/src/main/java/dev/barooni/capacitor/calendar/models/inputs/DeleteEventsByIdInput.kt +11 -0
- package/android/src/main/java/dev/barooni/capacitor/calendar/models/inputs/ListEventsInRangeInput.kt +14 -0
- package/android/src/main/java/dev/barooni/capacitor/calendar/models/inputs/ModifyCalendarInput.kt +13 -0
- package/android/src/main/java/dev/barooni/capacitor/calendar/models/inputs/ModifyEvent.kt +25 -0
- package/android/src/main/java/dev/barooni/capacitor/calendar/models/inputs/ModifyEventWithPromptInput.kt +37 -0
- package/android/src/main/java/dev/barooni/capacitor/calendar/models/inputs/OpenCalendarInput.kt +10 -0
- package/android/src/main/java/dev/barooni/capacitor/calendar/models/inputs/RequestAllPermissionsInput.kt +9 -0
- package/android/src/main/java/dev/barooni/capacitor/calendar/models/inputs/RequestPermissionInput.kt +40 -0
- package/android/src/main/java/dev/barooni/capacitor/calendar/models/results/CheckAllPermissionsResult.kt +17 -0
- package/android/src/main/java/dev/barooni/capacitor/calendar/models/results/CheckPermissionResult.kt +15 -0
- package/android/src/main/java/dev/barooni/capacitor/calendar/models/results/CreateCalendarResult.kt +21 -0
- package/android/src/main/java/dev/barooni/capacitor/calendar/models/results/CreateEventResult.kt +21 -0
- package/android/src/main/java/dev/barooni/capacitor/calendar/models/results/CreateEventWithPromptResult.kt +12 -0
- package/android/src/main/java/dev/barooni/capacitor/calendar/models/results/DeleteEventWithPromptResult.kt +14 -0
- package/android/src/main/java/dev/barooni/capacitor/calendar/models/results/DeleteEventsByIdResult.kt +27 -0
- package/android/src/main/java/dev/barooni/capacitor/calendar/models/results/GetDefaultCalendarResult.kt +34 -0
- package/android/src/main/java/dev/barooni/capacitor/calendar/models/results/ListCalendarsResult.kt +39 -0
- package/android/src/main/java/dev/barooni/capacitor/calendar/models/results/ListEventsInRangeResult.kt +58 -0
- package/android/src/main/java/dev/barooni/capacitor/calendar/models/results/ModifyEventWithPromptResult.kt +12 -0
- package/android/src/main/java/dev/barooni/capacitor/calendar/models/results/RequestAllPermissionsResult.kt +30 -0
- package/android/src/main/java/dev/barooni/capacitor/calendar/models/results/RequestPermissionResult.kt +42 -0
- package/android/src/main/java/dev/barooni/capacitor/calendar/models/templates/JSResult.kt +7 -0
- package/android/src/main/java/dev/barooni/capacitor/calendar/utils/ImplementationHelper.kt +387 -0
- package/dist/docs.json +3966 -1107
- package/dist/esm/definitions.d.ts +6 -759
- package/dist/esm/definitions.js.map +1 -1
- package/dist/esm/index.d.ts +42 -12
- package/dist/esm/index.js +11 -6
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/schemas/enums/attendee-role.d.ts +50 -0
- package/dist/esm/schemas/enums/attendee-role.js +52 -0
- package/dist/esm/schemas/enums/attendee-role.js.map +1 -0
- package/dist/esm/schemas/enums/attendee-status.d.ts +55 -0
- package/dist/esm/schemas/enums/attendee-status.js +57 -0
- package/dist/esm/schemas/enums/attendee-status.js.map +1 -0
- package/dist/esm/schemas/enums/attendee-type.d.ts +45 -0
- package/dist/esm/schemas/enums/attendee-type.js +47 -0
- package/dist/esm/schemas/enums/attendee-type.js.map +1 -0
- package/dist/esm/schemas/enums/calendar-chooser-display-style.d.ts +3 -6
- package/dist/esm/schemas/enums/calendar-chooser-display-style.js +3 -6
- package/dist/esm/schemas/enums/calendar-chooser-display-style.js.map +1 -1
- package/dist/esm/schemas/enums/calendar-permission-scope.d.ts +60 -0
- package/dist/esm/schemas/enums/calendar-permission-scope.js +62 -0
- package/dist/esm/schemas/enums/calendar-permission-scope.js.map +1 -0
- package/dist/esm/schemas/enums/calendar-source-type.d.ts +7 -16
- package/dist/esm/schemas/enums/calendar-source-type.js +7 -16
- package/dist/esm/schemas/enums/calendar-source-type.js.map +1 -1
- package/dist/esm/schemas/enums/calendar-type.d.ts +6 -9
- package/dist/esm/schemas/enums/calendar-type.js +6 -9
- package/dist/esm/schemas/enums/calendar-type.js.map +1 -1
- package/dist/esm/schemas/enums/event-availability.d.ts +30 -0
- package/dist/esm/schemas/enums/event-availability.js +32 -0
- package/dist/esm/schemas/enums/event-availability.js.map +1 -0
- package/dist/esm/schemas/enums/event-span.d.ts +3 -6
- package/dist/esm/schemas/enums/event-span.js +3 -6
- package/dist/esm/schemas/enums/event-span.js.map +1 -1
- package/dist/esm/schemas/enums/event-status.d.ts +26 -0
- package/dist/esm/schemas/enums/event-status.js +28 -0
- package/dist/esm/schemas/enums/event-status.js.map +1 -0
- package/dist/esm/schemas/enums/recurrence-frequency.d.ts +21 -0
- package/dist/esm/schemas/enums/recurrence-frequency.js +23 -0
- package/dist/esm/schemas/enums/recurrence-frequency.js.map +1 -0
- package/dist/esm/schemas/enums/reminder-recurrence-frequency.d.ts +5 -8
- package/dist/esm/schemas/enums/reminder-recurrence-frequency.js +5 -8
- package/dist/esm/schemas/enums/reminder-recurrence-frequency.js.map +1 -1
- package/dist/esm/schemas/interfaces/calendar-event.d.ts +116 -48
- package/dist/esm/schemas/interfaces/calendar-event.js.map +1 -1
- package/dist/esm/schemas/interfaces/calendar-source.d.ts +10 -7
- package/dist/esm/schemas/interfaces/calendar-source.js.map +1 -1
- package/dist/esm/schemas/interfaces/calendar.d.ts +59 -25
- package/dist/esm/schemas/interfaces/calendar.js.map +1 -1
- package/dist/esm/schemas/interfaces/create-calendar-options.d.ts +38 -0
- package/dist/esm/schemas/interfaces/create-calendar-options.js +2 -0
- package/dist/esm/schemas/interfaces/create-calendar-options.js.map +1 -0
- package/dist/esm/schemas/interfaces/create-event-options.d.ts +96 -0
- package/dist/esm/schemas/interfaces/create-event-options.js +2 -0
- package/dist/esm/schemas/interfaces/create-event-options.js.map +1 -0
- package/dist/esm/schemas/interfaces/create-event-with-prompt-options.d.ts +70 -0
- package/dist/esm/schemas/interfaces/create-event-with-prompt-options.js +2 -0
- package/dist/esm/schemas/interfaces/create-event-with-prompt-options.js.map +1 -0
- package/dist/esm/schemas/interfaces/create-reminder-options.d.ts +54 -0
- package/dist/esm/schemas/interfaces/create-reminder-options.js +2 -0
- package/dist/esm/schemas/interfaces/create-reminder-options.js.map +1 -0
- package/dist/esm/schemas/interfaces/delete-calendar-options.d.ts +9 -0
- package/dist/esm/schemas/interfaces/delete-calendar-options.js +2 -0
- package/dist/esm/schemas/interfaces/delete-calendar-options.js.map +1 -0
- package/dist/esm/schemas/interfaces/delete-event-options.d.ts +18 -0
- package/dist/esm/schemas/interfaces/delete-event-options.js +2 -0
- package/dist/esm/schemas/interfaces/delete-event-options.js.map +1 -0
- package/dist/esm/schemas/interfaces/delete-event-with-prompt-options.d.ts +48 -0
- package/dist/esm/schemas/interfaces/delete-event-with-prompt-options.js +2 -0
- package/dist/esm/schemas/interfaces/delete-event-with-prompt-options.js.map +1 -0
- package/dist/esm/schemas/interfaces/delete-events-by-id-options.d.ts +18 -0
- package/dist/esm/schemas/interfaces/delete-events-by-id-options.js +2 -0
- package/dist/esm/schemas/interfaces/delete-events-by-id-options.js.map +1 -0
- package/dist/esm/schemas/interfaces/delete-reminder-options.d.ts +9 -0
- package/dist/esm/schemas/interfaces/delete-reminder-options.js +2 -0
- package/dist/esm/schemas/interfaces/delete-reminder-options.js.map +1 -0
- 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-reminders-by-id-options.d.ts +9 -0
- package/dist/esm/schemas/interfaces/delete-reminders-by-id-options.js +2 -0
- package/dist/esm/schemas/interfaces/delete-reminders-by-id-options.js.map +1 -0
- package/dist/esm/schemas/interfaces/event-guest.d.ts +13 -0
- package/dist/esm/schemas/interfaces/event-guest.js +2 -0
- package/dist/esm/schemas/interfaces/event-guest.js.map +1 -0
- package/dist/esm/schemas/interfaces/get-reminder-by-id-options.d.ts +6 -0
- package/dist/esm/schemas/interfaces/get-reminder-by-id-options.js +2 -0
- package/dist/esm/schemas/interfaces/get-reminder-by-id-options.js.map +1 -0
- package/dist/esm/schemas/interfaces/get-reminders-from-lists-options.d.ts +9 -0
- package/dist/esm/schemas/interfaces/get-reminders-from-lists-options.js +2 -0
- package/dist/esm/schemas/interfaces/get-reminders-from-lists-options.js.map +1 -0
- package/dist/esm/schemas/interfaces/list-events-in-range-options.d.ts +17 -0
- package/dist/esm/schemas/interfaces/list-events-in-range-options.js +2 -0
- package/dist/esm/schemas/interfaces/list-events-in-range-options.js.map +1 -0
- package/dist/esm/schemas/interfaces/modify-calendar-options.d.ts +21 -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 +103 -0
- package/dist/esm/schemas/interfaces/modify-event-options.js +2 -0
- package/dist/esm/schemas/interfaces/modify-event-options.js.map +1 -0
- package/dist/esm/schemas/interfaces/modify-event-with-prompt-options.d.ts +13 -0
- package/dist/esm/schemas/interfaces/modify-event-with-prompt-options.js +2 -0
- package/dist/esm/schemas/interfaces/modify-event-with-prompt-options.js.map +1 -0
- package/dist/esm/schemas/interfaces/modify-reminder-options.d.ts +58 -0
- package/dist/esm/schemas/interfaces/modify-reminder-options.js +2 -0
- package/dist/esm/schemas/interfaces/modify-reminder-options.js.map +1 -0
- package/dist/esm/schemas/interfaces/open-calendar-options.d.ts +10 -0
- package/dist/esm/schemas/interfaces/open-calendar-options.js +2 -0
- package/dist/esm/schemas/interfaces/open-calendar-options.js.map +1 -0
- package/dist/esm/schemas/interfaces/recurrence-rule.d.ts +22 -0
- package/dist/esm/schemas/interfaces/recurrence-rule.js +2 -0
- package/dist/esm/schemas/interfaces/recurrence-rule.js.map +1 -0
- package/dist/esm/schemas/interfaces/reminder-recurrence-rule.d.ts +6 -24
- package/dist/esm/schemas/interfaces/reminder-recurrence-rule.js.map +1 -1
- package/dist/esm/schemas/interfaces/reminder.d.ts +29 -38
- package/dist/esm/schemas/interfaces/reminder.js.map +1 -1
- package/dist/esm/schemas/interfaces/reminders-list.d.ts +3 -0
- package/dist/esm/schemas/interfaces/reminders-list.js.map +1 -1
- package/dist/esm/schemas/interfaces/select-calendars-with-prompt-options.d.ts +18 -0
- package/dist/esm/schemas/interfaces/select-calendars-with-prompt-options.js +2 -0
- package/dist/esm/schemas/interfaces/select-calendars-with-prompt-options.js.map +1 -0
- package/dist/esm/schemas/types/event-edit-action.d.ts +4 -0
- package/dist/esm/schemas/types/event-edit-action.js +2 -0
- package/dist/esm/schemas/types/event-edit-action.js.map +1 -0
- package/dist/esm/sub-definitions/calendar-access.d.ts +114 -0
- package/dist/esm/sub-definitions/calendar-access.js +2 -0
- package/dist/esm/sub-definitions/calendar-access.js.map +1 -0
- package/dist/esm/sub-definitions/calendar-operations.d.ts +85 -0
- package/dist/esm/sub-definitions/calendar-operations.js +2 -0
- package/dist/esm/sub-definitions/calendar-operations.js.map +1 -0
- package/dist/esm/sub-definitions/event-operations.d.ts +111 -0
- package/dist/esm/sub-definitions/event-operations.js +2 -0
- package/dist/esm/sub-definitions/event-operations.js.map +1 -0
- package/dist/esm/sub-definitions/reminders-access.d.ts +22 -0
- package/dist/esm/sub-definitions/reminders-access.js +2 -0
- package/dist/esm/sub-definitions/reminders-access.js.map +1 -0
- package/dist/esm/sub-definitions/reminders-operations.d.ts +120 -0
- package/dist/esm/sub-definitions/reminders-operations.js +2 -0
- package/dist/esm/sub-definitions/reminders-operations.js.map +1 -0
- package/dist/esm/web.d.ts +91 -150
- package/dist/esm/web.js +73 -49
- package/dist/esm/web.js.map +1 -1
- package/dist/plugin.cjs.js +398 -172
- package/dist/plugin.cjs.js.map +1 -1
- package/dist/plugin.js +398 -172
- package/dist/plugin.js.map +1 -1
- package/ios/Sources/CapacitorCalendarPlugin/CapacitorCalendarPlugin.swift +225 -528
- package/ios/Sources/CapacitorCalendarPlugin/Implementation/CapacitorCalendar.swift +596 -0
- package/ios/Sources/CapacitorCalendarPlugin/{PermissionState.swift → Models/Enums/CAPPermissionState.swift} +1 -3
- package/ios/Sources/CapacitorCalendarPlugin/Models/Enums/CalendarPermissionScope.swift +6 -0
- package/ios/Sources/CapacitorCalendarPlugin/Models/Enums/EventEditAction.swift +20 -0
- package/ios/Sources/CapacitorCalendarPlugin/Models/Inputs/CheckPermissionInput.swift +19 -0
- package/ios/Sources/CapacitorCalendarPlugin/Models/Inputs/CreateCalendarInput.swift +32 -0
- package/ios/Sources/CapacitorCalendarPlugin/Models/Inputs/CreateEventInput.swift +61 -0
- package/ios/Sources/CapacitorCalendarPlugin/Models/Inputs/CreateEventWithPromptInput.swift +89 -0
- package/ios/Sources/CapacitorCalendarPlugin/Models/Inputs/CreateReminderInput.swift +116 -0
- package/ios/Sources/CapacitorCalendarPlugin/Models/Inputs/DeleteCalendarInput.swift +16 -0
- package/ios/Sources/CapacitorCalendarPlugin/Models/Inputs/DeleteEventInput.swift +27 -0
- package/ios/Sources/CapacitorCalendarPlugin/Models/Inputs/DeleteEventWithPromptInput.swift +57 -0
- package/ios/Sources/CapacitorCalendarPlugin/Models/Inputs/DeleteEventsByIdInput.swift +27 -0
- package/ios/Sources/CapacitorCalendarPlugin/Models/Inputs/DeleteReminderInput.swift +16 -0
- package/ios/Sources/CapacitorCalendarPlugin/Models/Inputs/DeleteReminderWithPromptInput.swift +46 -0
- package/ios/Sources/CapacitorCalendarPlugin/Models/Inputs/DeleteRemindersByIdInput.swift +16 -0
- package/ios/Sources/CapacitorCalendarPlugin/Models/Inputs/GetReminderByIdInput.swift +16 -0
- package/ios/Sources/CapacitorCalendarPlugin/Models/Inputs/GetRemindersFromListsInput.swift +24 -0
- package/ios/Sources/CapacitorCalendarPlugin/Models/Inputs/ListEventsInRangeInput.swift +25 -0
- package/ios/Sources/CapacitorCalendarPlugin/Models/Inputs/ModifyCalendarInput.swift +32 -0
- package/ios/Sources/CapacitorCalendarPlugin/Models/Inputs/ModifyEventInput.swift +117 -0
- package/ios/Sources/CapacitorCalendarPlugin/Models/Inputs/ModifyEventWithPromptInput.swift +83 -0
- package/ios/Sources/CapacitorCalendarPlugin/Models/Inputs/ModifyReminderInput.swift +118 -0
- package/ios/Sources/CapacitorCalendarPlugin/Models/Inputs/OpenCalendarInput.swift +17 -0
- package/ios/Sources/CapacitorCalendarPlugin/Models/Inputs/RequestPermissionInput.swift +19 -0
- package/ios/Sources/CapacitorCalendarPlugin/Models/Inputs/SelectCalendarsWithPromptInput.swift +32 -0
- package/ios/Sources/CapacitorCalendarPlugin/Models/Results/CheckAllPermissionsResult.swift +15 -0
- package/ios/Sources/CapacitorCalendarPlugin/Models/Results/CheckPermissionResult.swift +16 -0
- package/ios/Sources/CapacitorCalendarPlugin/Models/Results/CreateCalendarResult.swift +18 -0
- package/ios/Sources/CapacitorCalendarPlugin/Models/Results/CreateEventResult.swift +18 -0
- package/ios/Sources/CapacitorCalendarPlugin/Models/Results/CreateEventWithPromptResult.swift +15 -0
- package/ios/Sources/CapacitorCalendarPlugin/Models/Results/CreateReminderResult.swift +16 -0
- package/ios/Sources/CapacitorCalendarPlugin/Models/Results/DeleteEventWithPromptResult.swift +15 -0
- package/ios/Sources/CapacitorCalendarPlugin/Models/Results/DeleteEventsByIdResult.swift +23 -0
- package/ios/Sources/CapacitorCalendarPlugin/Models/Results/DeleteRemindersByIdResult.swift +23 -0
- package/ios/Sources/CapacitorCalendarPlugin/Models/Results/FetchAllCalendarSourcesResult.swift +16 -0
- package/ios/Sources/CapacitorCalendarPlugin/Models/Results/GetDefaultCalendarResult.swift +16 -0
- package/ios/Sources/CapacitorCalendarPlugin/Models/Results/GetReminderByIdResult.swift +20 -0
- package/ios/Sources/CapacitorCalendarPlugin/Models/Results/GetRemindersFromListsResult.swift +16 -0
- package/ios/Sources/CapacitorCalendarPlugin/Models/Results/ListCalendarsResult.swift +16 -0
- package/ios/Sources/CapacitorCalendarPlugin/Models/Results/ListEventsInRangeResult.swift +16 -0
- package/ios/Sources/CapacitorCalendarPlugin/Models/Results/ModifyEventWithPromptResult.swift +16 -0
- package/ios/Sources/CapacitorCalendarPlugin/Models/Results/RequestAllPermissionsResult.swift +20 -0
- package/ios/Sources/CapacitorCalendarPlugin/Models/Results/RequestPermissionResult.swift +15 -0
- package/ios/Sources/CapacitorCalendarPlugin/Models/Results/SelectCalendarsWithPromptResult.swift +16 -0
- package/ios/Sources/CapacitorCalendarPlugin/Models/Templates/JSResult.swift +5 -0
- package/ios/Sources/CapacitorCalendarPlugin/PluginConfig.swift +44 -0
- package/ios/Sources/CapacitorCalendarPlugin/PluginError.swift +87 -0
- package/ios/Sources/CapacitorCalendarPlugin/Utils/ImplementationHelper.swift +361 -0
- package/ios/Sources/CapacitorCalendarPlugin/Utils/UIColorFromHexExtension.swift +32 -0
- package/package.json +58 -59
- package/android/src/main/java/dev/barooni/capacitor/calendar/CapacitorCalendar.kt +0 -358
- package/dist/esm/schemas/enums/calendar-chooser-selection-style.d.ts +0 -16
- package/dist/esm/schemas/enums/calendar-chooser-selection-style.js +0 -18
- package/dist/esm/schemas/enums/calendar-chooser-selection-style.js.map +0 -1
- package/dist/esm/schemas/enums/plugin-permission.d.ts +0 -58
- package/dist/esm/schemas/enums/plugin-permission.js +0 -60
- package/dist/esm/schemas/enums/plugin-permission.js.map +0 -1
- package/dist/esm/schemas/interfaces/plugin-permissions-map.d.ts +0 -2
- package/dist/esm/schemas/interfaces/plugin-permissions-map.js +0 -2
- package/dist/esm/schemas/interfaces/plugin-permissions-map.js.map +0 -1
- package/ios/Sources/CapacitorCalendarPlugin/CapacitorCalendar.swift +0 -635
- package/ios/Sources/CapacitorCalendarPlugin/CapacitorCalendarPluginError.swift +0 -14
- package/ios/Sources/CapacitorCalendarPlugin/CapacitorReminders.swift +0 -448
- package/ios/Sources/CapacitorCalendarPlugin/EventCreationParameters.swift +0 -14
- package/ios/Sources/CapacitorCalendarPlugin/EventDeleteResults.swift +0 -6
- package/ios/Sources/CapacitorCalendarPlugin/RecurrenceParameters.swift +0 -7
- package/ios/Sources/CapacitorCalendarPlugin/ReminderCreationParameters.swift +0 -15
- package/ios/Sources/CapacitorCalendarPlugin/UIColorExtensions.swift +0 -20
- /package/{LICENSE.txt → LICENSE} +0 -0
package/README.md
CHANGED
|
@@ -1,18 +1,21 @@
|
|
|
1
1
|
<p align="center">
|
|
2
2
|
<img src="assets/images/text-logo.png" alt="capacitor-calendar-logo" height="136"/>
|
|
3
|
-
|
|
4
3
|
<br>
|
|
5
|
-
|
|
6
|
-
A capacitor plugin for managing calendar events on iOS and Android, with reminder support on iOS.
|
|
7
|
-
</em>
|
|
4
|
+
<em>A capacitor plugin for managing calendar events on iOS and Android, with reminders support on iOS.</em>
|
|
8
5
|
</p>
|
|
9
6
|
|
|
10
7
|
<p align="center">
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
<
|
|
14
|
-
|
|
15
|
-
|
|
8
|
+
<img src="https://img.shields.io/maintenance/yes/2025?style=flat-square" />
|
|
9
|
+
<a href="https://www.npmjs.com/package/@ebarooni/capacitor-calendar">
|
|
10
|
+
<img src="https://img.shields.io/npm/l/@ebarooni/capacitor-calendar?style=flat-square" />
|
|
11
|
+
</a>
|
|
12
|
+
<br>
|
|
13
|
+
<a href="https://www.npmjs.com/package/@ebarooni/capacitor-calendar">
|
|
14
|
+
<img src="https://img.shields.io/npm/dw/@ebarooni/capacitor-calendar?style=flat-square" />
|
|
15
|
+
</a>
|
|
16
|
+
<a href="https://www.npmjs.com/package/@ebarooni/capacitor-calendar">
|
|
17
|
+
<img src="https://img.shields.io/npm/v/@ebarooni/capacitor-calendar?style=flat-square" />
|
|
18
|
+
</a>
|
|
16
19
|
</p>
|
|
17
20
|
|
|
18
21
|
## Table of Contents
|
|
@@ -20,9 +23,9 @@
|
|
|
20
23
|
- [Installation](#installation)
|
|
21
24
|
- [Demo](#demo)
|
|
22
25
|
- [Setup](#setup)
|
|
23
|
-
- [Documentation](
|
|
24
|
-
- [API](#-api)
|
|
26
|
+
- [Documentation](#documentation)
|
|
25
27
|
- [Changelog](#changelog)
|
|
28
|
+
- [API](#api)
|
|
26
29
|
- [Contributing](#contributing)
|
|
27
30
|
- [License](#license)
|
|
28
31
|
|
|
@@ -35,23 +38,32 @@ npx cap sync
|
|
|
35
38
|
|
|
36
39
|
## Demo
|
|
37
40
|
|
|
38
|
-
| iOS
|
|
41
|
+
| iOS 18 | Android 15 |
|
|
39
42
|
| :-----------------------------: | :---------------------------------: |
|
|
40
43
|
|  |  |
|
|
41
44
|
|
|
42
45
|
## Setup
|
|
43
46
|
|
|
44
|
-
-
|
|
45
|
-
|
|
47
|
+
This plugin requires additional platform-specific configuration. Follow the official guides:
|
|
48
|
+
|
|
49
|
+
- **iOS:** [Migrating to the Latest Calendar Access Levels](https://developer.apple.com/documentation/technotes/tn3152-migrating-to-the-latest-calendar-access-levels)
|
|
50
|
+
- **Android:** [Calendar Provider User Permissions](https://developer.android.com/identity/providers/calendar-provider#manifest)
|
|
46
51
|
|
|
47
|
-
##
|
|
52
|
+
## Documentation
|
|
48
53
|
|
|
49
|
-
For comprehensive
|
|
54
|
+
For comprehensive usage examples, detailed explanations, and API references, check out:
|
|
55
|
+
|
|
56
|
+
- **[Online documentation](https://ebarooni.github.io/capacitor-calendar/)**
|
|
57
|
+
- **[Type definitions & examples](src/definitions.ts)**
|
|
58
|
+
|
|
59
|
+
## Changelog
|
|
50
60
|
|
|
51
|
-
|
|
52
|
-
- **[Type Definitions and Examples](src/definitions.ts)**
|
|
61
|
+
See [CHANGELOG.md](CHANGELOG.md) for the latest updates and release history.
|
|
53
62
|
|
|
54
|
-
|
|
63
|
+
> [!NOTE]
|
|
64
|
+
> Version 7.1.0 introduces breaking changes.
|
|
65
|
+
|
|
66
|
+
## API
|
|
55
67
|
|
|
56
68
|
<docgen-index>
|
|
57
69
|
|
|
@@ -59,31 +71,38 @@ For comprehensive explanations, usage examples, and additional information, plea
|
|
|
59
71
|
* [`checkAllPermissions()`](#checkallpermissions)
|
|
60
72
|
* [`requestPermission(...)`](#requestpermission)
|
|
61
73
|
* [`requestAllPermissions()`](#requestallpermissions)
|
|
62
|
-
* [`createEventWithPrompt(...)`](#createeventwithprompt)
|
|
63
|
-
* [`selectCalendarsWithPrompt(...)`](#selectcalendarswithprompt)
|
|
64
|
-
* [`listCalendars()`](#listcalendars)
|
|
65
|
-
* [`getDefaultCalendar()`](#getdefaultcalendar)
|
|
66
|
-
* [`createEvent(...)`](#createevent)
|
|
67
|
-
* [`getDefaultRemindersList()`](#getdefaultreminderslist)
|
|
68
|
-
* [`getRemindersLists()`](#getreminderslists)
|
|
69
|
-
* [`createReminder(...)`](#createreminder)
|
|
70
|
-
* [`openCalendar(...)`](#opencalendar)
|
|
71
|
-
* [`openReminders()`](#openreminders)
|
|
72
|
-
* [`listEventsInRange(...)`](#listeventsinrange)
|
|
73
|
-
* [`deleteEventsById(...)`](#deleteeventsbyid)
|
|
74
|
-
* [`createCalendar(...)`](#createcalendar)
|
|
75
|
-
* [`deleteCalendar(...)`](#deletecalendar)
|
|
76
|
-
* [`getRemindersFromLists(...)`](#getremindersfromlists)
|
|
77
|
-
* [`deleteRemindersById(...)`](#deleteremindersbyid)
|
|
78
74
|
* [`requestWriteOnlyCalendarAccess()`](#requestwriteonlycalendaraccess)
|
|
79
75
|
* [`requestReadOnlyCalendarAccess()`](#requestreadonlycalendaraccess)
|
|
80
76
|
* [`requestFullCalendarAccess()`](#requestfullcalendaraccess)
|
|
81
77
|
* [`requestFullRemindersAccess()`](#requestfullremindersaccess)
|
|
78
|
+
* [`createEventWithPrompt(...)`](#createeventwithprompt)
|
|
82
79
|
* [`modifyEventWithPrompt(...)`](#modifyeventwithprompt)
|
|
80
|
+
* [`createEvent(...)`](#createevent)
|
|
83
81
|
* [`modifyEvent(...)`](#modifyevent)
|
|
82
|
+
* [`deleteEventsById(...)`](#deleteeventsbyid)
|
|
83
|
+
* [`deleteEvent(...)`](#deleteevent)
|
|
84
|
+
* [`deleteEventWithPrompt(...)`](#deleteeventwithprompt)
|
|
85
|
+
* [`listEventsInRange(...)`](#listeventsinrange)
|
|
86
|
+
* [`commit()`](#commit)
|
|
87
|
+
* [`selectCalendarsWithPrompt(...)`](#selectcalendarswithprompt)
|
|
84
88
|
* [`fetchAllCalendarSources()`](#fetchallcalendarsources)
|
|
89
|
+
* [`listCalendars()`](#listcalendars)
|
|
90
|
+
* [`getDefaultCalendar()`](#getdefaultcalendar)
|
|
91
|
+
* [`openCalendar(...)`](#opencalendar)
|
|
92
|
+
* [`createCalendar(...)`](#createcalendar)
|
|
93
|
+
* [`deleteCalendar(...)`](#deletecalendar)
|
|
94
|
+
* [`modifyCalendar(...)`](#modifycalendar)
|
|
85
95
|
* [`fetchAllRemindersSources()`](#fetchallreminderssources)
|
|
96
|
+
* [`openReminders()`](#openreminders)
|
|
97
|
+
* [`getDefaultRemindersList()`](#getdefaultreminderslist)
|
|
98
|
+
* [`getRemindersLists()`](#getreminderslists)
|
|
99
|
+
* [`createReminder(...)`](#createreminder)
|
|
100
|
+
* [`deleteRemindersById(...)`](#deleteremindersbyid)
|
|
101
|
+
* [`deleteReminder(...)`](#deletereminder)
|
|
86
102
|
* [`modifyReminder(...)`](#modifyreminder)
|
|
103
|
+
* [`getReminderById(...)`](#getreminderbyid)
|
|
104
|
+
* [`getRemindersFromLists(...)`](#getremindersfromlists)
|
|
105
|
+
* [`deleteReminderWithPrompt(...)`](#deletereminderwithprompt)
|
|
87
106
|
* [Interfaces](#interfaces)
|
|
88
107
|
* [Type Aliases](#type-aliases)
|
|
89
108
|
* [Enums](#enums)
|
|
@@ -96,226 +115,289 @@ For comprehensive explanations, usage examples, and additional information, plea
|
|
|
96
115
|
### checkPermission(...)
|
|
97
116
|
|
|
98
117
|
```typescript
|
|
99
|
-
checkPermission(options: {
|
|
118
|
+
checkPermission(options: { scope: CalendarPermissionScope; }) => Promise<{ result: PermissionState; }>
|
|
100
119
|
```
|
|
101
120
|
|
|
102
|
-
|
|
121
|
+
Retrieves the current permission state for a given scope.
|
|
103
122
|
|
|
104
|
-
| Param | Type
|
|
105
|
-
| ------------- |
|
|
106
|
-
| **`options`** | <code>{
|
|
123
|
+
| Param | Type |
|
|
124
|
+
| ------------- | --------------------------------------------------------------------------------------- |
|
|
125
|
+
| **`options`** | <code>{ scope: <a href="#calendarpermissionscope">CalendarPermissionScope</a>; }</code> |
|
|
107
126
|
|
|
108
127
|
**Returns:** <code>Promise<{ result: <a href="#permissionstate">PermissionState</a>; }></code>
|
|
109
128
|
|
|
110
129
|
**Since:** 0.1.0
|
|
111
130
|
|
|
131
|
+
**Platform:** Android, iOS
|
|
132
|
+
|
|
112
133
|
--------------------
|
|
113
134
|
|
|
114
135
|
|
|
115
136
|
### checkAllPermissions()
|
|
116
137
|
|
|
117
138
|
```typescript
|
|
118
|
-
checkAllPermissions() => Promise<
|
|
139
|
+
checkAllPermissions() => Promise<{ result: CheckAllPermissionsResult; }>
|
|
119
140
|
```
|
|
120
141
|
|
|
121
|
-
|
|
142
|
+
Retrieves the current state of all permissions.
|
|
122
143
|
|
|
123
|
-
**Returns:** <code>Promise<
|
|
144
|
+
**Returns:** <code>Promise<{ result: <a href="#checkallpermissionsresult">CheckAllPermissionsResult</a>; }></code>
|
|
124
145
|
|
|
125
146
|
**Since:** 0.1.0
|
|
126
147
|
|
|
148
|
+
**Platform:** Android, iOS
|
|
149
|
+
|
|
127
150
|
--------------------
|
|
128
151
|
|
|
129
152
|
|
|
130
153
|
### requestPermission(...)
|
|
131
154
|
|
|
132
155
|
```typescript
|
|
133
|
-
requestPermission(options: {
|
|
156
|
+
requestPermission(options: { scope: CalendarPermissionScope; }) => Promise<{ result: PermissionState; }>
|
|
134
157
|
```
|
|
135
158
|
|
|
136
|
-
Requests
|
|
137
|
-
If the permission is already granted, it will directly return the status.
|
|
159
|
+
Requests permission for a given scope.
|
|
138
160
|
|
|
139
|
-
| Param | Type
|
|
140
|
-
| ------------- |
|
|
141
|
-
| **`options`** | <code>{
|
|
161
|
+
| Param | Type |
|
|
162
|
+
| ------------- | --------------------------------------------------------------------------------------- |
|
|
163
|
+
| **`options`** | <code>{ scope: <a href="#calendarpermissionscope">CalendarPermissionScope</a>; }</code> |
|
|
142
164
|
|
|
143
165
|
**Returns:** <code>Promise<{ result: <a href="#permissionstate">PermissionState</a>; }></code>
|
|
144
166
|
|
|
145
167
|
**Since:** 0.1.0
|
|
146
168
|
|
|
169
|
+
**Platform:** Android, iOS
|
|
170
|
+
|
|
147
171
|
--------------------
|
|
148
172
|
|
|
149
173
|
|
|
150
174
|
### requestAllPermissions()
|
|
151
175
|
|
|
152
176
|
```typescript
|
|
153
|
-
requestAllPermissions() => Promise<
|
|
177
|
+
requestAllPermissions() => Promise<{ result: RequestAllPermissionsResult; }>
|
|
154
178
|
```
|
|
155
179
|
|
|
156
|
-
Requests
|
|
180
|
+
Requests permission for all calendar and reminder permissions.
|
|
157
181
|
|
|
158
|
-
**Returns:** <code>Promise<
|
|
182
|
+
**Returns:** <code>Promise<{ result: <a href="#checkallpermissionsresult">CheckAllPermissionsResult</a>; }></code>
|
|
159
183
|
|
|
160
184
|
**Since:** 0.1.0
|
|
161
185
|
|
|
186
|
+
**Platform:** Android, iOS
|
|
187
|
+
|
|
162
188
|
--------------------
|
|
163
189
|
|
|
164
190
|
|
|
165
|
-
###
|
|
191
|
+
### requestWriteOnlyCalendarAccess()
|
|
166
192
|
|
|
167
193
|
```typescript
|
|
168
|
-
|
|
194
|
+
requestWriteOnlyCalendarAccess() => Promise<{ result: PermissionState; }>
|
|
169
195
|
```
|
|
170
196
|
|
|
171
|
-
|
|
172
|
-
On iOS opens a native sheet and on Android opens an intent.
|
|
197
|
+
Requests write access to the calendar.
|
|
173
198
|
|
|
174
|
-
|
|
175
|
-
| ------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------- |
|
|
176
|
-
| **`options`** | <code>{ title: string; calendarId?: string; location?: string; startDate?: number; endDate?: number; isAllDay?: boolean; alertOffsetInMinutes?: number \| number[]; url?: string; notes?: string; eventIdOptional?: boolean; }</code> | Options for creating the event. |
|
|
199
|
+
**Returns:** <code>Promise<{ result: <a href="#permissionstate">PermissionState</a>; }></code>
|
|
177
200
|
|
|
178
|
-
**
|
|
201
|
+
**Since:** 5.4.0
|
|
179
202
|
|
|
180
|
-
**
|
|
203
|
+
**Platform:** Android, iOS
|
|
181
204
|
|
|
182
205
|
--------------------
|
|
183
206
|
|
|
184
207
|
|
|
185
|
-
###
|
|
208
|
+
### requestReadOnlyCalendarAccess()
|
|
186
209
|
|
|
187
210
|
```typescript
|
|
188
|
-
|
|
211
|
+
requestReadOnlyCalendarAccess() => Promise<{ result: PermissionState; }>
|
|
189
212
|
```
|
|
190
213
|
|
|
191
|
-
|
|
214
|
+
Requests read access to the calendar.
|
|
192
215
|
|
|
193
|
-
|
|
194
|
-
| ------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- |
|
|
195
|
-
| **`options`** | <code>{ displayStyle: <a href="#calendarchooserdisplaystyle">CalendarChooserDisplayStyle</a>; selectionStyle: <a href="#calendarchooserselectionstyle">CalendarChooserSelectionStyle</a>; }</code> | - Options for customizing the display and selection styles of the calendar chooser. |
|
|
216
|
+
**Returns:** <code>Promise<{ result: <a href="#permissionstate">PermissionState</a>; }></code>
|
|
196
217
|
|
|
197
|
-
**
|
|
218
|
+
**Since:** 5.4.0
|
|
198
219
|
|
|
199
|
-
**
|
|
220
|
+
**Platform:** Android
|
|
200
221
|
|
|
201
222
|
--------------------
|
|
202
223
|
|
|
203
224
|
|
|
204
|
-
###
|
|
225
|
+
### requestFullCalendarAccess()
|
|
205
226
|
|
|
206
227
|
```typescript
|
|
207
|
-
|
|
228
|
+
requestFullCalendarAccess() => Promise<{ result: PermissionState; }>
|
|
208
229
|
```
|
|
209
230
|
|
|
210
|
-
|
|
231
|
+
Requests read and write access to the calendar.
|
|
211
232
|
|
|
212
|
-
**Returns:** <code>Promise<{ result:
|
|
233
|
+
**Returns:** <code>Promise<{ result: <a href="#permissionstate">PermissionState</a>; }></code>
|
|
234
|
+
|
|
235
|
+
**Since:** 5.4.0
|
|
236
|
+
|
|
237
|
+
**Platform:** Android, iOS
|
|
213
238
|
|
|
214
239
|
--------------------
|
|
215
240
|
|
|
216
241
|
|
|
217
|
-
###
|
|
242
|
+
### requestFullRemindersAccess()
|
|
218
243
|
|
|
219
244
|
```typescript
|
|
220
|
-
|
|
245
|
+
requestFullRemindersAccess() => Promise<{ result: PermissionState; }>
|
|
221
246
|
```
|
|
222
247
|
|
|
223
|
-
|
|
248
|
+
Requests read and write access to the reminders.
|
|
224
249
|
|
|
225
|
-
**Returns:** <code>Promise<{ result: <a href="#
|
|
250
|
+
**Returns:** <code>Promise<{ result: <a href="#permissionstate">PermissionState</a>; }></code>
|
|
226
251
|
|
|
227
|
-
**Since:**
|
|
252
|
+
**Since:** 5.4.0
|
|
253
|
+
|
|
254
|
+
**Platform:** iOS
|
|
228
255
|
|
|
229
256
|
--------------------
|
|
230
257
|
|
|
231
258
|
|
|
232
|
-
###
|
|
259
|
+
### createEventWithPrompt(...)
|
|
233
260
|
|
|
234
261
|
```typescript
|
|
235
|
-
|
|
262
|
+
createEventWithPrompt(options?: CreateEventWithPromptOptions | undefined) => Promise<{ id: string | null; }>
|
|
236
263
|
```
|
|
237
264
|
|
|
238
|
-
|
|
265
|
+
Opens the system calendar interface to create a new event.
|
|
266
|
+
On Android always returns `null`.
|
|
267
|
+
Fetch the events to find the ID of the newly created event.
|
|
239
268
|
|
|
240
|
-
| Param | Type
|
|
241
|
-
| ------------- |
|
|
242
|
-
| **`options`** | <code>
|
|
269
|
+
| Param | Type |
|
|
270
|
+
| ------------- | ------------------------------------------------------------------------------------- |
|
|
271
|
+
| **`options`** | <code><a href="#createeventwithpromptoptions">CreateEventWithPromptOptions</a></code> |
|
|
243
272
|
|
|
244
|
-
**Returns:** <code>Promise<{
|
|
273
|
+
**Returns:** <code>Promise<{ id: string | null; }></code>
|
|
245
274
|
|
|
246
|
-
**Since:** 0.
|
|
275
|
+
**Since:** 0.1.0
|
|
276
|
+
|
|
277
|
+
**Platform:** Android, iOS
|
|
247
278
|
|
|
248
279
|
--------------------
|
|
249
280
|
|
|
250
281
|
|
|
251
|
-
###
|
|
282
|
+
### modifyEventWithPrompt(...)
|
|
252
283
|
|
|
253
284
|
```typescript
|
|
254
|
-
|
|
285
|
+
modifyEventWithPrompt(options: ModifyEventWithPromptOptions) => Promise<{ result: EventEditAction | null; }>
|
|
255
286
|
```
|
|
256
287
|
|
|
257
|
-
|
|
288
|
+
Opens a system calendar interface to modify an event.
|
|
289
|
+
On Android always returns `null`.
|
|
290
|
+
|
|
291
|
+
| Param | Type |
|
|
292
|
+
| ------------- | ------------------------------------------------------------------------------------- |
|
|
293
|
+
| **`options`** | <code><a href="#modifyeventwithpromptoptions">ModifyEventWithPromptOptions</a></code> |
|
|
258
294
|
|
|
259
|
-
**Returns:** <code>Promise<{ result: <a href="#
|
|
295
|
+
**Returns:** <code>Promise<{ result: <a href="#eventeditaction">EventEditAction</a> | null; }></code>
|
|
296
|
+
|
|
297
|
+
**Since:** 6.6.0
|
|
298
|
+
|
|
299
|
+
**Platform:** Android, iOS
|
|
260
300
|
|
|
261
301
|
--------------------
|
|
262
302
|
|
|
263
303
|
|
|
264
|
-
###
|
|
304
|
+
### createEvent(...)
|
|
265
305
|
|
|
266
306
|
```typescript
|
|
267
|
-
|
|
307
|
+
createEvent(options: CreateEventOptions) => Promise<{ id: string; }>
|
|
268
308
|
```
|
|
269
309
|
|
|
270
|
-
|
|
310
|
+
Creates an event in the calendar.
|
|
271
311
|
|
|
272
|
-
|
|
312
|
+
| Param | Type |
|
|
313
|
+
| ------------- | ----------------------------------------------------------------- |
|
|
314
|
+
| **`options`** | <code><a href="#createeventoptions">CreateEventOptions</a></code> |
|
|
315
|
+
|
|
316
|
+
**Returns:** <code>Promise<{ id: string; }></code>
|
|
317
|
+
|
|
318
|
+
**Since:** 0.4.0
|
|
319
|
+
|
|
320
|
+
**Platform:** iOS, Android
|
|
273
321
|
|
|
274
322
|
--------------------
|
|
275
323
|
|
|
276
324
|
|
|
277
|
-
###
|
|
325
|
+
### modifyEvent(...)
|
|
278
326
|
|
|
279
327
|
```typescript
|
|
280
|
-
|
|
328
|
+
modifyEvent(options: ModifyEventOptions) => Promise<void>
|
|
281
329
|
```
|
|
282
330
|
|
|
283
|
-
|
|
331
|
+
Modifies an event.
|
|
284
332
|
|
|
285
|
-
| Param | Type
|
|
286
|
-
| ------------- |
|
|
287
|
-
| **`options`** | <code
|
|
333
|
+
| Param | Type |
|
|
334
|
+
| ------------- | ----------------------------------------------------------------- |
|
|
335
|
+
| **`options`** | <code><a href="#modifyeventoptions">ModifyEventOptions</a></code> |
|
|
288
336
|
|
|
289
|
-
**
|
|
337
|
+
**Since:** 6.6.0
|
|
290
338
|
|
|
291
|
-
**
|
|
339
|
+
**Platform:** Android, iOS
|
|
292
340
|
|
|
293
341
|
--------------------
|
|
294
342
|
|
|
295
343
|
|
|
296
|
-
###
|
|
344
|
+
### deleteEventsById(...)
|
|
297
345
|
|
|
298
346
|
```typescript
|
|
299
|
-
|
|
347
|
+
deleteEventsById(options: DeleteEventsByIdOptions) => Promise<{ result: DeleteEventsByIdResult; }>
|
|
300
348
|
```
|
|
301
349
|
|
|
302
|
-
|
|
303
|
-
|
|
350
|
+
Deletes multiple events.
|
|
351
|
+
|
|
352
|
+
| Param | Type |
|
|
353
|
+
| ------------- | --------------------------------------------------------------------------- |
|
|
354
|
+
| **`options`** | <code><a href="#deleteeventsbyidoptions">DeleteEventsByIdOptions</a></code> |
|
|
355
|
+
|
|
356
|
+
**Returns:** <code>Promise<{ result: <a href="#deleteeventsbyidresult">DeleteEventsByIdResult</a>; }></code>
|
|
304
357
|
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
358
|
+
**Since:** 0.11.0
|
|
359
|
+
|
|
360
|
+
**Platform:** Android, iOS
|
|
308
361
|
|
|
309
362
|
--------------------
|
|
310
363
|
|
|
311
364
|
|
|
312
|
-
###
|
|
365
|
+
### deleteEvent(...)
|
|
313
366
|
|
|
314
367
|
```typescript
|
|
315
|
-
|
|
368
|
+
deleteEvent(options: DeleteEventOptions) => Promise<void>
|
|
316
369
|
```
|
|
317
370
|
|
|
318
|
-
|
|
371
|
+
Deletes an event.
|
|
372
|
+
|
|
373
|
+
| Param | Type |
|
|
374
|
+
| ------------- | ----------------------------------------------------------------- |
|
|
375
|
+
| **`options`** | <code><a href="#deleteeventoptions">DeleteEventOptions</a></code> |
|
|
376
|
+
|
|
377
|
+
**Since:** 7.1.0
|
|
378
|
+
|
|
379
|
+
**Platform:** Android, iOS
|
|
380
|
+
|
|
381
|
+
--------------------
|
|
382
|
+
|
|
383
|
+
|
|
384
|
+
### deleteEventWithPrompt(...)
|
|
385
|
+
|
|
386
|
+
```typescript
|
|
387
|
+
deleteEventWithPrompt(options: DeleteEventWithPromptOptions) => Promise<{ deleted: boolean; }>
|
|
388
|
+
```
|
|
389
|
+
|
|
390
|
+
Opens a dialog to delete an event.
|
|
391
|
+
|
|
392
|
+
| Param | Type |
|
|
393
|
+
| ------------- | ------------------------------------------------------------------------------------- |
|
|
394
|
+
| **`options`** | <code><a href="#deleteeventwithpromptoptions">DeleteEventWithPromptOptions</a></code> |
|
|
395
|
+
|
|
396
|
+
**Returns:** <code>Promise<{ deleted: boolean; }></code>
|
|
397
|
+
|
|
398
|
+
**Since:** 7.1.0
|
|
399
|
+
|
|
400
|
+
**Platform:** Android, iOS
|
|
319
401
|
|
|
320
402
|
--------------------
|
|
321
403
|
|
|
@@ -323,37 +405,126 @@ Opens the reminders app. Since the user leaves your app, use this method with ca
|
|
|
323
405
|
### listEventsInRange(...)
|
|
324
406
|
|
|
325
407
|
```typescript
|
|
326
|
-
listEventsInRange(options:
|
|
408
|
+
listEventsInRange(options: ListEventsInRangeOptions) => Promise<{ result: CalendarEvent[]; }>
|
|
327
409
|
```
|
|
328
410
|
|
|
329
|
-
Retrieves the
|
|
411
|
+
Retrieves the events within a date range.
|
|
330
412
|
|
|
331
|
-
| Param | Type
|
|
332
|
-
| ------------- |
|
|
333
|
-
| **`options`** | <code>
|
|
413
|
+
| Param | Type |
|
|
414
|
+
| ------------- | ----------------------------------------------------------------------------- |
|
|
415
|
+
| **`options`** | <code><a href="#listeventsinrangeoptions">ListEventsInRangeOptions</a></code> |
|
|
334
416
|
|
|
335
417
|
**Returns:** <code>Promise<{ result: CalendarEvent[]; }></code>
|
|
336
418
|
|
|
337
419
|
**Since:** 0.10.0
|
|
338
420
|
|
|
421
|
+
**Platform:** Android, iOS
|
|
422
|
+
|
|
339
423
|
--------------------
|
|
340
424
|
|
|
341
425
|
|
|
342
|
-
###
|
|
426
|
+
### commit()
|
|
343
427
|
|
|
344
428
|
```typescript
|
|
345
|
-
|
|
429
|
+
commit() => Promise<void>
|
|
346
430
|
```
|
|
347
431
|
|
|
348
|
-
|
|
432
|
+
Save the changes to the calendar.
|
|
349
433
|
|
|
350
|
-
|
|
351
|
-
| ------------- | ------------------------------- | ------------------------------- |
|
|
352
|
-
| **`options`** | <code>{ ids: string[]; }</code> | Options for defining event IDs. |
|
|
434
|
+
**Since:** 7.1.0
|
|
353
435
|
|
|
354
|
-
**
|
|
436
|
+
**Platform:** iOS
|
|
355
437
|
|
|
356
|
-
|
|
438
|
+
--------------------
|
|
439
|
+
|
|
440
|
+
|
|
441
|
+
### selectCalendarsWithPrompt(...)
|
|
442
|
+
|
|
443
|
+
```typescript
|
|
444
|
+
selectCalendarsWithPrompt(options?: SelectCalendarsWithPromptOptions | undefined) => Promise<{ result: Calendar[]; }>
|
|
445
|
+
```
|
|
446
|
+
|
|
447
|
+
Opens a system interface to choose one or multiple calendars.
|
|
448
|
+
|
|
449
|
+
| Param | Type |
|
|
450
|
+
| ------------- | --------------------------------------------------------------------------------------------- |
|
|
451
|
+
| **`options`** | <code><a href="#selectcalendarswithpromptoptions">SelectCalendarsWithPromptOptions</a></code> |
|
|
452
|
+
|
|
453
|
+
**Returns:** <code>Promise<{ result: Calendar[]; }></code>
|
|
454
|
+
|
|
455
|
+
**Since:** 0.2.0
|
|
456
|
+
|
|
457
|
+
**Platform:** iOS
|
|
458
|
+
|
|
459
|
+
--------------------
|
|
460
|
+
|
|
461
|
+
|
|
462
|
+
### fetchAllCalendarSources()
|
|
463
|
+
|
|
464
|
+
```typescript
|
|
465
|
+
fetchAllCalendarSources() => Promise<{ result: CalendarSource[]; }>
|
|
466
|
+
```
|
|
467
|
+
|
|
468
|
+
Retrieves a list of calendar sources.
|
|
469
|
+
|
|
470
|
+
**Returns:** <code>Promise<{ result: CalendarSource[]; }></code>
|
|
471
|
+
|
|
472
|
+
**Since:** 6.6.0
|
|
473
|
+
|
|
474
|
+
**Platform:** iOS
|
|
475
|
+
|
|
476
|
+
--------------------
|
|
477
|
+
|
|
478
|
+
|
|
479
|
+
### listCalendars()
|
|
480
|
+
|
|
481
|
+
```typescript
|
|
482
|
+
listCalendars() => Promise<{ result: Calendar[]; }>
|
|
483
|
+
```
|
|
484
|
+
|
|
485
|
+
Retrieves a list of all available calendars.
|
|
486
|
+
|
|
487
|
+
**Returns:** <code>Promise<{ result: Calendar[]; }></code>
|
|
488
|
+
|
|
489
|
+
**Since:** 7.1.0
|
|
490
|
+
|
|
491
|
+
**Platform:** Android, iOS
|
|
492
|
+
|
|
493
|
+
--------------------
|
|
494
|
+
|
|
495
|
+
|
|
496
|
+
### getDefaultCalendar()
|
|
497
|
+
|
|
498
|
+
```typescript
|
|
499
|
+
getDefaultCalendar() => Promise<{ result: Calendar | null; }>
|
|
500
|
+
```
|
|
501
|
+
|
|
502
|
+
Retrieves the default calendar.
|
|
503
|
+
|
|
504
|
+
**Returns:** <code>Promise<{ result: <a href="#calendar">Calendar</a> | null; }></code>
|
|
505
|
+
|
|
506
|
+
**Since:** 0.3.0
|
|
507
|
+
|
|
508
|
+
**Platform:** Android, iOS
|
|
509
|
+
|
|
510
|
+
--------------------
|
|
511
|
+
|
|
512
|
+
|
|
513
|
+
### openCalendar(...)
|
|
514
|
+
|
|
515
|
+
```typescript
|
|
516
|
+
openCalendar(options?: OpenCalendarOptions | undefined) => Promise<void>
|
|
517
|
+
```
|
|
518
|
+
|
|
519
|
+
Opens the calendar app.
|
|
520
|
+
|
|
521
|
+
| Param | Type |
|
|
522
|
+
| ------------- | ------------------------------------------------------------------- |
|
|
523
|
+
| **`options`** | <code><a href="#opencalendaroptions">OpenCalendarOptions</a></code> |
|
|
524
|
+
|
|
525
|
+
**Since:** 7.1.0
|
|
526
|
+
|
|
527
|
+
**Platform:** Android, iOS
|
|
357
528
|
|
|
358
529
|
--------------------
|
|
359
530
|
|
|
@@ -361,216 +532,267 @@ Deletes events from the calendar given their IDs.
|
|
|
361
532
|
### createCalendar(...)
|
|
362
533
|
|
|
363
534
|
```typescript
|
|
364
|
-
createCalendar(options:
|
|
535
|
+
createCalendar(options: CreateCalendarOptions) => Promise<{ id: string; }>
|
|
365
536
|
```
|
|
366
537
|
|
|
367
|
-
Creates a calendar
|
|
538
|
+
Creates a calendar.
|
|
368
539
|
|
|
369
|
-
| Param | Type
|
|
370
|
-
| ------------- |
|
|
371
|
-
| **`options`** | <code>
|
|
540
|
+
| Param | Type |
|
|
541
|
+
| ------------- | ----------------------------------------------------------------------- |
|
|
542
|
+
| **`options`** | <code><a href="#createcalendaroptions">CreateCalendarOptions</a></code> |
|
|
372
543
|
|
|
373
|
-
**Returns:** <code>Promise<{
|
|
544
|
+
**Returns:** <code>Promise<{ id: string; }></code>
|
|
374
545
|
|
|
375
546
|
**Since:** 5.2.0
|
|
376
547
|
|
|
548
|
+
**Platform:** Android, iOS
|
|
549
|
+
|
|
377
550
|
--------------------
|
|
378
551
|
|
|
379
552
|
|
|
380
553
|
### deleteCalendar(...)
|
|
381
554
|
|
|
382
555
|
```typescript
|
|
383
|
-
deleteCalendar(options:
|
|
556
|
+
deleteCalendar(options: DeleteCalendarOptions) => Promise<void>
|
|
384
557
|
```
|
|
385
558
|
|
|
386
|
-
Deletes a calendar by id
|
|
559
|
+
Deletes a calendar by id.
|
|
387
560
|
|
|
388
|
-
| Param | Type
|
|
389
|
-
| ------------- |
|
|
390
|
-
| **`options`** | <code>
|
|
561
|
+
| Param | Type |
|
|
562
|
+
| ------------- | ----------------------------------------------------------------------- |
|
|
563
|
+
| **`options`** | <code><a href="#deletecalendaroptions">DeleteCalendarOptions</a></code> |
|
|
391
564
|
|
|
392
565
|
**Since:** 5.2.0
|
|
393
566
|
|
|
567
|
+
**Platform:** Android, iOS
|
|
568
|
+
|
|
394
569
|
--------------------
|
|
395
570
|
|
|
396
571
|
|
|
397
|
-
###
|
|
572
|
+
### modifyCalendar(...)
|
|
398
573
|
|
|
399
574
|
```typescript
|
|
400
|
-
|
|
575
|
+
modifyCalendar(options: ModifyCalendarOptions) => Promise<void>
|
|
401
576
|
```
|
|
402
577
|
|
|
403
|
-
|
|
578
|
+
Modifies a calendar with options.
|
|
404
579
|
|
|
405
|
-
| Param | Type
|
|
406
|
-
| ------------- |
|
|
407
|
-
| **`options`** | <code>
|
|
580
|
+
| Param | Type |
|
|
581
|
+
| ------------- | ----------------------------------------------------------------------- |
|
|
582
|
+
| **`options`** | <code><a href="#modifycalendaroptions">ModifyCalendarOptions</a></code> |
|
|
408
583
|
|
|
409
|
-
**
|
|
584
|
+
**Since:** 7.2.0
|
|
410
585
|
|
|
411
|
-
**
|
|
586
|
+
**Platform:** Android, iOS
|
|
412
587
|
|
|
413
588
|
--------------------
|
|
414
589
|
|
|
415
590
|
|
|
416
|
-
###
|
|
591
|
+
### fetchAllRemindersSources()
|
|
417
592
|
|
|
418
593
|
```typescript
|
|
419
|
-
|
|
594
|
+
fetchAllRemindersSources() => Promise<{ result: CalendarSource[]; }>
|
|
420
595
|
```
|
|
421
596
|
|
|
422
|
-
|
|
597
|
+
Retrieves a list of calendar sources.
|
|
423
598
|
|
|
424
|
-
|
|
425
|
-
| ------------- | ------------------------------- | ---------------------------------- |
|
|
426
|
-
| **`options`** | <code>{ ids: string[]; }</code> | Options for defining reminder IDs. |
|
|
599
|
+
**Returns:** <code>Promise<{ result: CalendarSource[]; }></code>
|
|
427
600
|
|
|
428
|
-
**
|
|
601
|
+
**Since:** 6.6.0
|
|
429
602
|
|
|
430
|
-
**
|
|
603
|
+
**Platform:** iOS
|
|
431
604
|
|
|
432
605
|
--------------------
|
|
433
606
|
|
|
434
607
|
|
|
435
|
-
###
|
|
608
|
+
### openReminders()
|
|
436
609
|
|
|
437
610
|
```typescript
|
|
438
|
-
|
|
611
|
+
openReminders() => Promise<void>
|
|
439
612
|
```
|
|
440
613
|
|
|
441
|
-
|
|
614
|
+
Opens the reminders app.
|
|
442
615
|
|
|
443
|
-
**
|
|
616
|
+
**Since:** 7.1.0
|
|
444
617
|
|
|
445
|
-
**
|
|
618
|
+
**Platform:** iOS
|
|
446
619
|
|
|
447
620
|
--------------------
|
|
448
621
|
|
|
449
622
|
|
|
450
|
-
###
|
|
623
|
+
### getDefaultRemindersList()
|
|
451
624
|
|
|
452
625
|
```typescript
|
|
453
|
-
|
|
626
|
+
getDefaultRemindersList() => Promise<{ result: RemindersList | null; }>
|
|
454
627
|
```
|
|
455
628
|
|
|
456
|
-
|
|
629
|
+
Retrieves the default reminders list.
|
|
457
630
|
|
|
458
|
-
**Returns:** <code>Promise<{ result: <a href="#
|
|
631
|
+
**Returns:** <code>Promise<{ result: <a href="#calendar">Calendar</a> | null; }></code>
|
|
459
632
|
|
|
460
|
-
**Since:**
|
|
633
|
+
**Since:** 7.1.0
|
|
634
|
+
|
|
635
|
+
**Platform:** iOS
|
|
461
636
|
|
|
462
637
|
--------------------
|
|
463
638
|
|
|
464
639
|
|
|
465
|
-
###
|
|
640
|
+
### getRemindersLists()
|
|
466
641
|
|
|
467
642
|
```typescript
|
|
468
|
-
|
|
643
|
+
getRemindersLists() => Promise<{ result: RemindersList[]; }>
|
|
469
644
|
```
|
|
470
645
|
|
|
471
|
-
|
|
646
|
+
Retrieves all available reminders lists.
|
|
472
647
|
|
|
473
|
-
**Returns:** <code>Promise<{ result:
|
|
648
|
+
**Returns:** <code>Promise<{ result: Calendar[]; }></code>
|
|
474
649
|
|
|
475
|
-
**Since:**
|
|
650
|
+
**Since:** 7.1.0
|
|
651
|
+
|
|
652
|
+
**Platform:** iOS
|
|
476
653
|
|
|
477
654
|
--------------------
|
|
478
655
|
|
|
479
656
|
|
|
480
|
-
###
|
|
657
|
+
### createReminder(...)
|
|
481
658
|
|
|
482
659
|
```typescript
|
|
483
|
-
|
|
660
|
+
createReminder(options: CreateReminderOptions) => Promise<{ id: string; }>
|
|
484
661
|
```
|
|
485
662
|
|
|
486
|
-
|
|
663
|
+
Creates a reminder.
|
|
487
664
|
|
|
488
|
-
|
|
665
|
+
| Param | Type |
|
|
666
|
+
| ------------- | ----------------------------------------------------------------------- |
|
|
667
|
+
| **`options`** | <code><a href="#createreminderoptions">CreateReminderOptions</a></code> |
|
|
489
668
|
|
|
490
|
-
**
|
|
669
|
+
**Returns:** <code>Promise<{ id: string; }></code>
|
|
670
|
+
|
|
671
|
+
**Since:** 0.5.0
|
|
672
|
+
|
|
673
|
+
**Platform:** iOS
|
|
491
674
|
|
|
492
675
|
--------------------
|
|
493
676
|
|
|
494
677
|
|
|
495
|
-
###
|
|
678
|
+
### deleteRemindersById(...)
|
|
496
679
|
|
|
497
680
|
```typescript
|
|
498
|
-
|
|
681
|
+
deleteRemindersById(options: DeleteRemindersByIdOptions) => Promise<{ result: DeleteRemindersByIdResult; }>
|
|
499
682
|
```
|
|
500
683
|
|
|
501
|
-
|
|
684
|
+
Deletes multiple reminders.
|
|
502
685
|
|
|
503
|
-
| Param | Type
|
|
504
|
-
| ------------- |
|
|
505
|
-
| **`options`** | <code>
|
|
686
|
+
| Param | Type |
|
|
687
|
+
| ------------- | --------------------------------------------------------------------------------- |
|
|
688
|
+
| **`options`** | <code><a href="#deleteremindersbyidoptions">DeleteRemindersByIdOptions</a></code> |
|
|
506
689
|
|
|
507
|
-
**Returns:** <code>Promise<{ result:
|
|
690
|
+
**Returns:** <code>Promise<{ result: <a href="#deleteremindersbyidresult">DeleteRemindersByIdResult</a>; }></code>
|
|
508
691
|
|
|
509
|
-
**Since:**
|
|
692
|
+
**Since:** 5.3.0
|
|
693
|
+
|
|
694
|
+
**Platform:** iOS
|
|
510
695
|
|
|
511
696
|
--------------------
|
|
512
697
|
|
|
513
698
|
|
|
514
|
-
###
|
|
699
|
+
### deleteReminder(...)
|
|
515
700
|
|
|
516
701
|
```typescript
|
|
517
|
-
|
|
702
|
+
deleteReminder(options: DeleteReminderOptions) => Promise<void>
|
|
518
703
|
```
|
|
519
704
|
|
|
520
|
-
|
|
705
|
+
Deletes a reminder.
|
|
521
706
|
|
|
522
|
-
| Param | Type
|
|
523
|
-
| ------------- |
|
|
524
|
-
| **`options`** | <code
|
|
707
|
+
| Param | Type |
|
|
708
|
+
| ------------- | ----------------------------------------------------------------------- |
|
|
709
|
+
| **`options`** | <code><a href="#deletereminderoptions">DeleteReminderOptions</a></code> |
|
|
525
710
|
|
|
526
|
-
**Since:**
|
|
711
|
+
**Since:** 7.1.0
|
|
712
|
+
|
|
713
|
+
**Platform:** iOS
|
|
527
714
|
|
|
528
715
|
--------------------
|
|
529
716
|
|
|
530
717
|
|
|
531
|
-
###
|
|
718
|
+
### modifyReminder(...)
|
|
532
719
|
|
|
533
720
|
```typescript
|
|
534
|
-
|
|
721
|
+
modifyReminder(options: ModifyReminderOptions) => Promise<void>
|
|
535
722
|
```
|
|
536
723
|
|
|
537
|
-
|
|
724
|
+
Modifies a reminder.
|
|
538
725
|
|
|
539
|
-
|
|
726
|
+
| Param | Type |
|
|
727
|
+
| ------------- | ----------------------------------------------------------------------- |
|
|
728
|
+
| **`options`** | <code><a href="#modifyreminderoptions">ModifyReminderOptions</a></code> |
|
|
540
729
|
|
|
541
|
-
**Since:** 6.
|
|
730
|
+
**Since:** 6.7.0
|
|
731
|
+
|
|
732
|
+
**Platform:** iOS
|
|
542
733
|
|
|
543
734
|
--------------------
|
|
544
735
|
|
|
545
736
|
|
|
546
|
-
###
|
|
737
|
+
### getReminderById(...)
|
|
547
738
|
|
|
548
739
|
```typescript
|
|
549
|
-
|
|
740
|
+
getReminderById(options: GetReminderByIdOptions) => Promise<{ result: Reminder | null; }>
|
|
550
741
|
```
|
|
551
742
|
|
|
552
|
-
|
|
743
|
+
Retrieve a reminder by ID.
|
|
553
744
|
|
|
554
|
-
|
|
745
|
+
| Param | Type |
|
|
746
|
+
| ------------- | ------------------------------------------------------------------------- |
|
|
747
|
+
| **`options`** | <code><a href="#getreminderbyidoptions">GetReminderByIdOptions</a></code> |
|
|
555
748
|
|
|
556
|
-
**
|
|
749
|
+
**Returns:** <code>Promise<{ result: <a href="#reminder">Reminder</a> | null; }></code>
|
|
750
|
+
|
|
751
|
+
**Since:** 7.1.0
|
|
752
|
+
|
|
753
|
+
**Platform:** iOS
|
|
557
754
|
|
|
558
755
|
--------------------
|
|
559
756
|
|
|
560
757
|
|
|
561
|
-
###
|
|
758
|
+
### getRemindersFromLists(...)
|
|
562
759
|
|
|
563
760
|
```typescript
|
|
564
|
-
|
|
761
|
+
getRemindersFromLists(options: GetRemindersFromListsOptions) => Promise<{ result: Reminder[]; }>
|
|
565
762
|
```
|
|
566
763
|
|
|
567
|
-
|
|
764
|
+
Retrieves reminders from multiple lists.
|
|
568
765
|
|
|
569
|
-
| Param | Type
|
|
570
|
-
| ------------- |
|
|
571
|
-
| **`options`** | <code
|
|
766
|
+
| Param | Type |
|
|
767
|
+
| ------------- | ------------------------------------------------------------------------------------- |
|
|
768
|
+
| **`options`** | <code><a href="#getremindersfromlistsoptions">GetRemindersFromListsOptions</a></code> |
|
|
572
769
|
|
|
573
|
-
**
|
|
770
|
+
**Returns:** <code>Promise<{ result: Reminder[]; }></code>
|
|
771
|
+
|
|
772
|
+
**Since:** 5.3.0
|
|
773
|
+
|
|
774
|
+
**Platform:** iOS
|
|
775
|
+
|
|
776
|
+
--------------------
|
|
777
|
+
|
|
778
|
+
|
|
779
|
+
### deleteReminderWithPrompt(...)
|
|
780
|
+
|
|
781
|
+
```typescript
|
|
782
|
+
deleteReminderWithPrompt(options: DeleteReminderWithPromptOptions) => Promise<{ deleted: boolean; }>
|
|
783
|
+
```
|
|
784
|
+
|
|
785
|
+
Opens a dialog to delete a reminder.
|
|
786
|
+
|
|
787
|
+
| Param | Type |
|
|
788
|
+
| ------------- | ------------------------------------------------------------------------------------------- |
|
|
789
|
+
| **`options`** | <code><a href="#deletereminderwithpromptoptions">DeleteReminderWithPromptOptions</a></code> |
|
|
790
|
+
|
|
791
|
+
**Returns:** <code>Promise<{ deleted: boolean; }></code>
|
|
792
|
+
|
|
793
|
+
**Since:** 7.2.0
|
|
794
|
+
|
|
795
|
+
**Platform:** iOS
|
|
574
796
|
|
|
575
797
|
--------------------
|
|
576
798
|
|
|
@@ -578,82 +800,344 @@ Modifies a reminder given its id and update details.
|
|
|
578
800
|
### Interfaces
|
|
579
801
|
|
|
580
802
|
|
|
581
|
-
####
|
|
803
|
+
#### CreateEventWithPromptOptions
|
|
804
|
+
|
|
805
|
+
| Prop | Type | Description | Since | Platform |
|
|
806
|
+
| ------------------ | --------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | ----- | ------------ |
|
|
807
|
+
| **`title`** | <code>string</code> | | 0.1.0 | Android, iOS |
|
|
808
|
+
| **`calendarId`** | <code>string</code> | | 0.1.0 | iOS |
|
|
809
|
+
| **`location`** | <code>string</code> | | 0.1.0 | Android, iOS |
|
|
810
|
+
| **`startDate`** | <code>number</code> | | 0.1.0 | Android, iOS |
|
|
811
|
+
| **`endDate`** | <code>number</code> | | 0.1.0 | Android, iOS |
|
|
812
|
+
| **`isAllDay`** | <code>boolean</code> | | 0.1.0 | Android, iOS |
|
|
813
|
+
| **`alerts`** | <code>number[]</code> | Sets alerts before or after the start of the event in minutes. On iOS only 2 alerts are supported. | 7.1.0 | iOS |
|
|
814
|
+
| **`url`** | <code>string</code> | | 0.1.0 | iOS |
|
|
815
|
+
| **`description`** | <code>string</code> | | 7.1.0 | Android, iOS |
|
|
816
|
+
| **`availability`** | <code><a href="#eventavailability">EventAvailability</a></code> | | 7.1.0 | Android, iOS |
|
|
817
|
+
| **`invitees`** | <code>string[]</code> | An array of emails to invite. | 7.1.0 | Android |
|
|
818
|
+
|
|
819
|
+
|
|
820
|
+
#### ModifyEventWithPromptOptions
|
|
821
|
+
|
|
822
|
+
| Prop | Type | Description | Since | Platform |
|
|
823
|
+
| ------------------ | --------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | ----- | ------------ |
|
|
824
|
+
| **`title`** | <code>string</code> | | 0.1.0 | Android, iOS |
|
|
825
|
+
| **`calendarId`** | <code>string</code> | | 0.1.0 | iOS |
|
|
826
|
+
| **`location`** | <code>string</code> | | 0.1.0 | Android, iOS |
|
|
827
|
+
| **`startDate`** | <code>number</code> | | 0.1.0 | Android, iOS |
|
|
828
|
+
| **`endDate`** | <code>number</code> | | 0.1.0 | Android, iOS |
|
|
829
|
+
| **`isAllDay`** | <code>boolean</code> | | 0.1.0 | Android, iOS |
|
|
830
|
+
| **`alerts`** | <code>number[]</code> | Sets alerts before or after the start of the event in minutes. On iOS only 2 alerts are supported. | 7.1.0 | iOS |
|
|
831
|
+
| **`url`** | <code>string</code> | | 0.1.0 | iOS |
|
|
832
|
+
| **`description`** | <code>string</code> | | 7.1.0 | Android, iOS |
|
|
833
|
+
| **`availability`** | <code><a href="#eventavailability">EventAvailability</a></code> | | 7.1.0 | Android, iOS |
|
|
834
|
+
| **`invitees`** | <code>string[]</code> | An array of emails to invite. | 7.1.0 | Android |
|
|
835
|
+
| **`id`** | <code>string</code> | The ID of the event to be modified. | 7.1.0 | Android, iOS |
|
|
836
|
+
|
|
837
|
+
|
|
838
|
+
#### CreateEventOptions
|
|
839
|
+
|
|
840
|
+
| Prop | Type | Description | Default | Since | Platform |
|
|
841
|
+
| ------------------ | --------------------------------------------------------------- | -------------------------------------------------------------------------- | ----------------- | ----- | ------------ |
|
|
842
|
+
| **`title`** | <code>string</code> | | | 0.4.0 | Android, iOS |
|
|
843
|
+
| **`calendarId`** | <code>string</code> | | | 0.1.0 | Android, iOS |
|
|
844
|
+
| **`location`** | <code>string</code> | | | 0.1.0 | Android, iOS |
|
|
845
|
+
| **`startDate`** | <code>number</code> | | | 0.1.0 | Android, iOS |
|
|
846
|
+
| **`endDate`** | <code>number</code> | | | 0.1.0 | Android, iOS |
|
|
847
|
+
| **`isAllDay`** | <code>boolean</code> | | | 0.1.0 | Android, iOS |
|
|
848
|
+
| **`alerts`** | <code>number[]</code> | | | 7.1.0 | Android, iOS |
|
|
849
|
+
| **`url`** | <code>string</code> | | | 0.1.0 | iOS |
|
|
850
|
+
| **`description`** | <code>string</code> | | | 7.1.0 | Android, iOS |
|
|
851
|
+
| **`availability`** | <code><a href="#eventavailability">EventAvailability</a></code> | | | 7.1.0 | Android, iOS |
|
|
852
|
+
| **`organizer`** | <code>string</code> | Email of the event organizer. | | 7.1.0 | Android |
|
|
853
|
+
| **`color`** | <code>string</code> | | | 7.1.0 | Android |
|
|
854
|
+
| **`duration`** | <code>string</code> | Duration of the event in RFC2445 format. | | 7.1.0 | Android |
|
|
855
|
+
| **`commit`** | <code>boolean</code> | Whether to save immediately (`true`) or batch changes for later (`false`). | <code>true</code> | 7.1.0 | iOS |
|
|
856
|
+
| **`attendees`** | <code>EventGuest[]</code> | The event guests. | | 7.1.0 | Android |
|
|
857
|
+
|
|
858
|
+
|
|
859
|
+
#### EventGuest
|
|
860
|
+
|
|
861
|
+
| Prop | Type | Since |
|
|
862
|
+
| ----------- | ------------------- | ----- |
|
|
863
|
+
| **`name`** | <code>string</code> | 7.1.0 |
|
|
864
|
+
| **`email`** | <code>string</code> | 7.1.0 |
|
|
865
|
+
|
|
866
|
+
|
|
867
|
+
#### ModifyEventOptions
|
|
868
|
+
|
|
869
|
+
| Prop | Type | Description | Default | Since | Platform |
|
|
870
|
+
| ------------------ | --------------------------------------------------------------- | ---------------------------------------- | --------------------------------- | ----- | ------------ |
|
|
871
|
+
| **`id`** | <code>string</code> | The ID of the event to be modified. | | 7.1.0 | Android, iOS |
|
|
872
|
+
| **`title`** | <code>string</code> | | | 0.4.0 | Android, iOS |
|
|
873
|
+
| **`calendarId`** | <code>string</code> | | | 0.1.0 | Android, iOS |
|
|
874
|
+
| **`location`** | <code>string</code> | | | 0.1.0 | Android, iOS |
|
|
875
|
+
| **`startDate`** | <code>number</code> | | | 0.1.0 | Android, iOS |
|
|
876
|
+
| **`endDate`** | <code>number</code> | | | 0.1.0 | Android, iOS |
|
|
877
|
+
| **`isAllDay`** | <code>boolean</code> | | | 0.1.0 | Android, iOS |
|
|
878
|
+
| **`alerts`** | <code>number[]</code> | | | 7.1.0 | Android, iOS |
|
|
879
|
+
| **`url`** | <code>string</code> | | | 0.1.0 | iOS |
|
|
880
|
+
| **`description`** | <code>string</code> | | | 7.1.0 | Android, iOS |
|
|
881
|
+
| **`availability`** | <code><a href="#eventavailability">EventAvailability</a></code> | | | 7.1.0 | Android, iOS |
|
|
882
|
+
| **`organizer`** | <code>string</code> | Email of the event organizer. | | 7.1.0 | Android |
|
|
883
|
+
| **`color`** | <code>string</code> | | | 7.1.0 | Android |
|
|
884
|
+
| **`duration`** | <code>string</code> | Duration of the event in RFC2445 format. | | 7.1.0 | Android |
|
|
885
|
+
| **`attendees`** | <code>EventGuest[]</code> | The event guests. | | 7.1.0 | Android |
|
|
886
|
+
| **`span`** | <code><a href="#eventspan">EventSpan</a></code> | The span of modifications. | <code>EventSpan.THIS_EVENT</code> | | iOS |
|
|
887
|
+
|
|
888
|
+
|
|
889
|
+
#### DeleteEventsByIdResult
|
|
890
|
+
|
|
891
|
+
| Prop | Type | Since |
|
|
892
|
+
| ------------- | --------------------- | ----- |
|
|
893
|
+
| **`deleted`** | <code>string[]</code> | 7.1.0 |
|
|
894
|
+
| **`failed`** | <code>string[]</code> | 7.1.0 |
|
|
895
|
+
|
|
896
|
+
|
|
897
|
+
#### DeleteEventsByIdOptions
|
|
898
|
+
|
|
899
|
+
| Prop | Type | Description | Default | Since | Platform |
|
|
900
|
+
| ---------- | ----------------------------------------------- | --------------------- | --------------------------------- | ----- | -------- |
|
|
901
|
+
| **`ids`** | <code>string[]</code> | | | 7.1.0 | |
|
|
902
|
+
| **`span`** | <code><a href="#eventspan">EventSpan</a></code> | The span of deletion. | <code>EventSpan.THIS_EVENT</code> | | iOS |
|
|
903
|
+
|
|
904
|
+
|
|
905
|
+
#### DeleteEventOptions
|
|
906
|
+
|
|
907
|
+
| Prop | Type | Description | Default | Since | Platform |
|
|
908
|
+
| ---------- | ----------------------------------------------- | --------------------- | --------------------------------- | ----- | -------- |
|
|
909
|
+
| **`id`** | <code>string</code> | | | 7.1.0 | |
|
|
910
|
+
| **`span`** | <code><a href="#eventspan">EventSpan</a></code> | The span of deletion. | <code>EventSpan.THIS_EVENT</code> | | iOS |
|
|
911
|
+
|
|
912
|
+
|
|
913
|
+
#### DeleteEventWithPromptOptions
|
|
914
|
+
|
|
915
|
+
| Prop | Type | Description | Default | Since | Platform |
|
|
916
|
+
| ----------------------- | ----------------------------------------------- | ----------------------------------- | --------------------------------- | ----- | ------------ |
|
|
917
|
+
| **`id`** | <code>string</code> | | | 7.1.0 | |
|
|
918
|
+
| **`span`** | <code><a href="#eventspan">EventSpan</a></code> | The span of deletion. | <code>EventSpan.THIS_EVENT</code> | | iOS |
|
|
919
|
+
| **`title`** | <code>string</code> | Title of the dialog. | | 7.1.0 | Android, iOS |
|
|
920
|
+
| **`message`** | <code>string</code> | Message of the dialog. | | 7.1.0 | Android, iOS |
|
|
921
|
+
| **`confirmButtonText`** | <code>string</code> | Text to show on the confirm button. | <code>'Delete'</code> | 7.1.0 | Android, iOS |
|
|
922
|
+
| **`cancelButtonText`** | <code>string</code> | Text to show on the cancel button. | <code>'Cancel'</code> | 7.1.0 | Android, iOS |
|
|
923
|
+
|
|
582
924
|
|
|
583
|
-
|
|
925
|
+
#### CalendarEvent
|
|
584
926
|
|
|
585
|
-
| Prop
|
|
586
|
-
|
|
|
587
|
-
| **`id`**
|
|
588
|
-
| **`title`**
|
|
589
|
-
| **`
|
|
590
|
-
| **`
|
|
591
|
-
| **`
|
|
592
|
-
| **`
|
|
593
|
-
| **`
|
|
594
|
-
| **`
|
|
927
|
+
| Prop | Type | Since | Platform |
|
|
928
|
+
| ------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----- | ------------ |
|
|
929
|
+
| **`id`** | <code>string</code> | 7.1.0 | Android, iOS |
|
|
930
|
+
| **`title`** | <code>string</code> | 7.1.0 | Android, iOS |
|
|
931
|
+
| **`calendarId`** | <code>string \| null</code> | 7.1.0 | Android, iOS |
|
|
932
|
+
| **`location`** | <code>string \| null</code> | 7.1.0 | Android, iOS |
|
|
933
|
+
| **`startDate`** | <code>number</code> | 7.1.0 | Android, iOS |
|
|
934
|
+
| **`endDate`** | <code>number</code> | 7.1.0 | Android, iOS |
|
|
935
|
+
| **`isAllDay`** | <code>boolean</code> | 7.1.0 | Android, iOS |
|
|
936
|
+
| **`alerts`** | <code>number[]</code> | 7.1.0 | Android, iOS |
|
|
937
|
+
| **`url`** | <code>string \| null</code> | 7.1.0 | iOS |
|
|
938
|
+
| **`description`** | <code>string \| null</code> | 7.1.0 | Android, iOS |
|
|
939
|
+
| **`availability`** | <code><a href="#eventavailability">EventAvailability</a> \| null</code> | 7.1.0 | Android, iOS |
|
|
940
|
+
| **`organizer`** | <code>string \| null</code> | 7.1.0 | Android, iOS |
|
|
941
|
+
| **`color`** | <code>string \| null</code> | 7.1.0 | Android, iOS |
|
|
942
|
+
| **`duration`** | <code>string \| null</code> | 7.1.0 | Android |
|
|
943
|
+
| **`isDetached`** | <code>boolean \| null</code> | 7.1.0 | iOS |
|
|
944
|
+
| **`birthdayContactIdentifier`** | <code>string \| null</code> | 7.1.0 | iOS |
|
|
945
|
+
| **`status`** | <code><a href="#eventstatus">EventStatus</a> \| null</code> | 7.1.0 | Android, iOS |
|
|
946
|
+
| **`creationDate`** | <code>number \| null</code> | 7.1.0 | iOS |
|
|
947
|
+
| **`lastModifiedDate`** | <code>number \| null</code> | 7.1.0 | iOS |
|
|
948
|
+
| **`attendees`** | <code>{ email: string \| null; name: string \| null; role: <a href="#attendeerole">AttendeeRole</a> \| null; status: <a href="#attendeestatus">AttendeeStatus</a> \| null; type: <a href="#attendeetype">AttendeeType</a> \| null; }[]</code> | 7.1.0 | Android, iOS |
|
|
949
|
+
| **`timezone`** | <code>string \| null</code> | 7.1.0 | Android, iOS |
|
|
950
|
+
|
|
951
|
+
|
|
952
|
+
#### ListEventsInRangeOptions
|
|
953
|
+
|
|
954
|
+
| Prop | Type | Description | Since |
|
|
955
|
+
| ---------- | ------------------- | ------------------------------ | ----- |
|
|
956
|
+
| **`from`** | <code>number</code> | The timestamp in milliseconds. | 7.1.0 |
|
|
957
|
+
| **`to`** | <code>number</code> | The timestamp in milliseconds. | 7.1.0 |
|
|
958
|
+
|
|
959
|
+
|
|
960
|
+
#### Calendar
|
|
961
|
+
|
|
962
|
+
| Prop | Type | Description | Since | Platform |
|
|
963
|
+
| -------------------------------- | ----------------------------------------------------------------- | ------------------------------------------------------------------ | ----- | ------------ |
|
|
964
|
+
| **`id`** | <code>string</code> | | 7.1.0 | Android, iOS |
|
|
965
|
+
| **`title`** | <code>string</code> | | 7.1.0 | Android, iOS |
|
|
966
|
+
| **`internalTitle`** | <code>string \| null</code> | Internal name of the calendar (`CalendarContract.Calendars.NAME`). | 7.1.0 | Android |
|
|
967
|
+
| **`color`** | <code>string</code> | | 7.1.0 | Android, iOS |
|
|
968
|
+
| **`isImmutable`** | <code>boolean \| null</code> | | 7.1.0 | iOS |
|
|
969
|
+
| **`allowsContentModifications`** | <code>boolean \| null</code> | | 7.1.0 | iOS |
|
|
970
|
+
| **`type`** | <code><a href="#calendartype">CalendarType</a> \| null</code> | | 7.1.0 | iOS |
|
|
971
|
+
| **`isSubscribed`** | <code>boolean \| null</code> | | 7.1.0 | iOS |
|
|
972
|
+
| **`source`** | <code><a href="#calendarsource">CalendarSource</a> \| null</code> | | 7.1.0 | iOS |
|
|
973
|
+
| **`visible`** | <code>boolean \| null</code> | Indicates if the events from this calendar should be shown. | 7.1.0 | Android |
|
|
974
|
+
| **`accountName`** | <code>string \| null</code> | The account under which the calendar is registered. | 7.1.0 | Android |
|
|
975
|
+
| **`ownerAccount`** | <code>string \| null</code> | The owner of the calendar. | 7.1.0 | Android |
|
|
976
|
+
| **`maxReminders`** | <code>number \| null</code> | Maximum number of reminders allowed per event. | 7.1.0 | Android |
|
|
977
|
+
| **`location`** | <code>string \| null</code> | | 7.1.0 | Android |
|
|
595
978
|
|
|
596
979
|
|
|
597
980
|
#### CalendarSource
|
|
598
981
|
|
|
599
|
-
|
|
982
|
+
| Prop | Type | Since |
|
|
983
|
+
| ----------- | ----------------------------------------------------------------- | ----- |
|
|
984
|
+
| **`type`** | <code><a href="#calendarsourcetype">CalendarSourceType</a></code> | 7.1.0 |
|
|
985
|
+
| **`id`** | <code>string</code> | 7.1.0 |
|
|
986
|
+
| **`title`** | <code>string</code> | 7.1.0 |
|
|
600
987
|
|
|
601
|
-
| Prop | Type |
|
|
602
|
-
| ----------- | ----------------------------------------------------------------- |
|
|
603
|
-
| **`type`** | <code><a href="#calendarsourcetype">CalendarSourceType</a></code> |
|
|
604
|
-
| **`id`** | <code>string</code> |
|
|
605
|
-
| **`title`** | <code>string</code> |
|
|
606
988
|
|
|
989
|
+
#### SelectCalendarsWithPromptOptions
|
|
607
990
|
|
|
608
|
-
|
|
991
|
+
| Prop | Type | Description | Default | Since |
|
|
992
|
+
| ------------------ | ----------------------------------------------------------------------------------- | -------------------------- | ------------------------------------------------------ | ----- |
|
|
993
|
+
| **`displayStyle`** | <code><a href="#calendarchooserdisplaystyle">CalendarChooserDisplayStyle</a></code> | | <code>CalendarChooserDisplayStyle.ALL_CALENDARS</code> | 7.1.0 |
|
|
994
|
+
| **`multiple`** | <code>boolean</code> | Allow multiple selections. | <code>false</code> | 7.1.0 |
|
|
609
995
|
|
|
610
|
-
| Prop | Type | Description |
|
|
611
|
-
| --------------- | ----------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- |
|
|
612
|
-
| **`frequency`** | <code><a href="#reminderrecurrencefrequency">ReminderRecurrenceFrequency</a></code> | How frequent should the reminder repeat. |
|
|
613
|
-
| **`interval`** | <code>number</code> | The interval should be a number greater than 0. For values lower than 1 the method will throw an error. |
|
|
614
|
-
| **`end`** | <code>number</code> | When provided, the reminder will stop repeating at the given time. |
|
|
615
996
|
|
|
997
|
+
#### OpenCalendarOptions
|
|
616
998
|
|
|
617
|
-
|
|
999
|
+
| Prop | Type | Default | Since |
|
|
1000
|
+
| ---------- | ------------------- | ----------------------- | ----- |
|
|
1001
|
+
| **`date`** | <code>number</code> | <code>Date.now()</code> | 7.1.0 |
|
|
1002
|
+
|
|
1003
|
+
|
|
1004
|
+
#### CreateCalendarOptions
|
|
1005
|
+
|
|
1006
|
+
| Prop | Type | Description | Since | Platform |
|
|
1007
|
+
| ------------------ | ------------------- | ---------------------------------------------------------- | ----- | ------------ |
|
|
1008
|
+
| **`title`** | <code>string</code> | | 5.2.0 | Android, iOS |
|
|
1009
|
+
| **`color`** | <code>string</code> | The color of the calendar. Should be provided on Android. | 5.2.0 | Android, iOS |
|
|
1010
|
+
| **`sourceId`** | <code>string</code> | | 5.2.0 | iOS |
|
|
1011
|
+
| **`accountName`** | <code>string</code> | Only needed on Android. Typically set to an email address. | 7.1.0 | Android |
|
|
1012
|
+
| **`ownerAccount`** | <code>string</code> | Only needed on Android. Typically set to an email address. | 7.1.0 | Android |
|
|
1013
|
+
|
|
1014
|
+
|
|
1015
|
+
#### DeleteCalendarOptions
|
|
1016
|
+
|
|
1017
|
+
| Prop | Type | Since |
|
|
1018
|
+
| -------- | ------------------- | ----- |
|
|
1019
|
+
| **`id`** | <code>string</code> | 7.1.0 |
|
|
1020
|
+
|
|
1021
|
+
|
|
1022
|
+
#### ModifyCalendarOptions
|
|
1023
|
+
|
|
1024
|
+
| Prop | Type | Since | Platform |
|
|
1025
|
+
| ----------- | ------------------- | ----- | ------------ |
|
|
1026
|
+
| **`id`** | <code>string</code> | 7.2.0 | Android, iOS |
|
|
1027
|
+
| **`title`** | <code>string</code> | 7.2.0 | Android, iOS |
|
|
1028
|
+
| **`color`** | <code>string</code> | 7.2.0 | Android, iOS |
|
|
1029
|
+
|
|
1030
|
+
|
|
1031
|
+
#### CreateReminderOptions
|
|
1032
|
+
|
|
1033
|
+
| Prop | Type | Since |
|
|
1034
|
+
| -------------------- | --------------------------------------------------------- | ----- |
|
|
1035
|
+
| **`title`** | <code>string</code> | 7.1.0 |
|
|
1036
|
+
| **`listId`** | <code>string</code> | 7.1.0 |
|
|
1037
|
+
| **`priority`** | <code>number</code> | 7.1.0 |
|
|
1038
|
+
| **`isCompleted`** | <code>boolean</code> | 7.1.0 |
|
|
1039
|
+
| **`startDate`** | <code>number</code> | 7.1.0 |
|
|
1040
|
+
| **`dueDate`** | <code>number</code> | 7.1.0 |
|
|
1041
|
+
| **`completionDate`** | <code>number</code> | 7.1.0 |
|
|
1042
|
+
| **`notes`** | <code>string</code> | 7.1.0 |
|
|
1043
|
+
| **`url`** | <code>string</code> | 7.1.0 |
|
|
1044
|
+
| **`location`** | <code>string</code> | 7.1.0 |
|
|
1045
|
+
| **`recurrence`** | <code><a href="#recurrencerule">RecurrenceRule</a></code> | 7.1.0 |
|
|
1046
|
+
| **`alerts`** | <code>number[]</code> | 7.1.0 |
|
|
1047
|
+
|
|
1048
|
+
|
|
1049
|
+
#### RecurrenceRule
|
|
1050
|
+
|
|
1051
|
+
| Prop | Type | Description | Since |
|
|
1052
|
+
| --------------- | ------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ----- |
|
|
1053
|
+
| **`frequency`** | <code><a href="#recurrencefrequency">RecurrenceFrequency</a></code> | | 7.1.0 |
|
|
1054
|
+
| **`interval`** | <code>number</code> | How often it repeats (e.g. 1 for every occurrence, 2 for every second occurrence). | 7.1.0 |
|
|
1055
|
+
| **`end`** | <code>number</code> | Timestamp of when the recurrence ends. | 7.1.0 |
|
|
1056
|
+
|
|
1057
|
+
|
|
1058
|
+
#### DeleteRemindersByIdResult
|
|
1059
|
+
|
|
1060
|
+
| Prop | Type | Since |
|
|
1061
|
+
| ------------- | --------------------- | ----- |
|
|
1062
|
+
| **`deleted`** | <code>string[]</code> | 7.1.0 |
|
|
1063
|
+
| **`failed`** | <code>string[]</code> | 7.1.0 |
|
|
618
1064
|
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
|
623
|
-
|
|
|
624
|
-
| **`
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
|
630
|
-
|
|
|
631
|
-
| **`
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
|
1065
|
+
|
|
1066
|
+
#### DeleteRemindersByIdOptions
|
|
1067
|
+
|
|
1068
|
+
| Prop | Type | Since |
|
|
1069
|
+
| --------- | --------------------- | ----- |
|
|
1070
|
+
| **`ids`** | <code>string[]</code> | 7.1.0 |
|
|
1071
|
+
|
|
1072
|
+
|
|
1073
|
+
#### DeleteReminderOptions
|
|
1074
|
+
|
|
1075
|
+
| Prop | Type | Since |
|
|
1076
|
+
| -------- | ------------------- | ----- |
|
|
1077
|
+
| **`id`** | <code>string</code> | 7.1.0 |
|
|
1078
|
+
|
|
1079
|
+
|
|
1080
|
+
#### ModifyReminderOptions
|
|
1081
|
+
|
|
1082
|
+
| Prop | Type | Since |
|
|
1083
|
+
| -------------------- | --------------------------------------------------------- | ----- |
|
|
1084
|
+
| **`id`** | <code>string</code> | 7.1.0 |
|
|
1085
|
+
| **`title`** | <code>string</code> | 7.1.0 |
|
|
1086
|
+
| **`listId`** | <code>string</code> | 7.1.0 |
|
|
1087
|
+
| **`priority`** | <code>number</code> | 7.1.0 |
|
|
1088
|
+
| **`isCompleted`** | <code>boolean</code> | 7.1.0 |
|
|
1089
|
+
| **`startDate`** | <code>number</code> | 7.1.0 |
|
|
1090
|
+
| **`dueDate`** | <code>number</code> | 7.1.0 |
|
|
1091
|
+
| **`completionDate`** | <code>number</code> | 7.1.0 |
|
|
1092
|
+
| **`notes`** | <code>string</code> | 7.1.0 |
|
|
1093
|
+
| **`url`** | <code>string</code> | 7.1.0 |
|
|
1094
|
+
| **`location`** | <code>string</code> | 7.1.0 |
|
|
1095
|
+
| **`recurrence`** | <code><a href="#recurrencerule">RecurrenceRule</a></code> | 7.1.0 |
|
|
1096
|
+
| **`alerts`** | <code>number[]</code> | 7.1.0 |
|
|
637
1097
|
|
|
638
1098
|
|
|
639
1099
|
#### Reminder
|
|
640
1100
|
|
|
641
|
-
|
|
1101
|
+
| Prop | Type | Since |
|
|
1102
|
+
| -------------------- | ----------------------------- | ----- |
|
|
1103
|
+
| **`id`** | <code>string</code> | 7.1.0 |
|
|
1104
|
+
| **`title`** | <code>string \| null</code> | 7.1.0 |
|
|
1105
|
+
| **`listId`** | <code>string \| null</code> | 7.1.0 |
|
|
1106
|
+
| **`isCompleted`** | <code>boolean</code> | 7.1.0 |
|
|
1107
|
+
| **`priority`** | <code>number \| null</code> | 7.1.0 |
|
|
1108
|
+
| **`notes`** | <code>string \| null</code> | 7.1.0 |
|
|
1109
|
+
| **`location`** | <code>string \| null</code> | 7.1.0 |
|
|
1110
|
+
| **`url`** | <code>string \| null</code> | 7.1.0 |
|
|
1111
|
+
| **`startDate`** | <code>number \| null</code> | 7.1.0 |
|
|
1112
|
+
| **`dueDate`** | <code>number \| null</code> | 7.1.0 |
|
|
1113
|
+
| **`completionDate`** | <code>number \| null</code> | 7.1.0 |
|
|
1114
|
+
| **`recurrence`** | <code>RecurrenceRule[]</code> | 7.1.0 |
|
|
1115
|
+
| **`alerts`** | <code>number[]</code> | 7.1.0 |
|
|
1116
|
+
|
|
1117
|
+
|
|
1118
|
+
#### GetReminderByIdOptions
|
|
1119
|
+
|
|
1120
|
+
| Prop | Type | Since |
|
|
1121
|
+
| -------- | ------------------- | ----- |
|
|
1122
|
+
| **`id`** | <code>string</code> | 7.1.0 |
|
|
642
1123
|
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
|
647
|
-
|
|
|
648
|
-
| **`
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
|
654
|
-
|
|
|
655
|
-
| **`
|
|
656
|
-
| **`
|
|
1124
|
+
|
|
1125
|
+
#### GetRemindersFromListsOptions
|
|
1126
|
+
|
|
1127
|
+
| Prop | Type | Since |
|
|
1128
|
+
| ------------- | --------------------- | ----- |
|
|
1129
|
+
| **`listIds`** | <code>string[]</code> | 7.1.0 |
|
|
1130
|
+
|
|
1131
|
+
|
|
1132
|
+
#### DeleteReminderWithPromptOptions
|
|
1133
|
+
|
|
1134
|
+
| Prop | Type | Description | Default | Since |
|
|
1135
|
+
| ----------------------- | ------------------- | ----------------------------------- | --------------------- | ----- |
|
|
1136
|
+
| **`id`** | <code>string</code> | | | 7.2.0 |
|
|
1137
|
+
| **`title`** | <code>string</code> | Title of the dialog. | | 7.2.0 |
|
|
1138
|
+
| **`message`** | <code>string</code> | Message of the dialog. | | 7.2.0 |
|
|
1139
|
+
| **`confirmButtonText`** | <code>string</code> | Text to show on the confirm button. | <code>'Delete'</code> | 7.2.0 |
|
|
1140
|
+
| **`cancelButtonText`** | <code>string</code> | Text to show on the cancel button. | <code>'Cancel'</code> | 7.2.0 |
|
|
657
1141
|
|
|
658
1142
|
|
|
659
1143
|
### Type Aliases
|
|
@@ -664,9 +1148,9 @@ Represents a reminder in a reminders list.
|
|
|
664
1148
|
<code>'prompt' | 'prompt-with-rationale' | 'granted' | 'denied'</code>
|
|
665
1149
|
|
|
666
1150
|
|
|
667
|
-
####
|
|
1151
|
+
#### CheckAllPermissionsResult
|
|
668
1152
|
|
|
669
|
-
<code><a href="#record">Record</a><
|
|
1153
|
+
<code><a href="#record">Record</a>< <a href="#calendarpermissionscope">CalendarPermissionScope</a>, <a href="#permissionstate">PermissionState</a> ></code>
|
|
670
1154
|
|
|
671
1155
|
|
|
672
1156
|
#### Record
|
|
@@ -676,6 +1160,16 @@ Construct a type with a set of properties K of type T
|
|
|
676
1160
|
<code>{
|
|
677
1161
|
[P in K]: T;
|
|
678
1162
|
}</code>
|
|
679
1163
|
|
|
680
1164
|
|
|
1165
|
+
#### RequestAllPermissionsResult
|
|
1166
|
+
|
|
1167
|
+
<code><a href="#checkallpermissionsresult">CheckAllPermissionsResult</a></code>
|
|
1168
|
+
|
|
1169
|
+
|
|
1170
|
+
#### EventEditAction
|
|
1171
|
+
|
|
1172
|
+
<code>"canceled" | "saved" | "deleted"</code>
|
|
1173
|
+
|
|
1174
|
+
|
|
681
1175
|
#### RemindersList
|
|
682
1176
|
|
|
683
1177
|
<code><a href="#calendar">Calendar</a></code>
|
|
@@ -684,82 +1178,136 @@ Construct a type with a set of properties K of type T
|
|
|
684
1178
|
### Enums
|
|
685
1179
|
|
|
686
1180
|
|
|
687
|
-
####
|
|
1181
|
+
#### CalendarPermissionScope
|
|
688
1182
|
|
|
689
|
-
| Members | Value | Description
|
|
690
|
-
| --------------------- | ----------------------------- |
|
|
691
|
-
| **`READ_CALENDAR`** | <code>"readCalendar"</code> |
|
|
692
|
-
| **`
|
|
693
|
-
| **`
|
|
694
|
-
| **`WRITE_REMINDERS`** | <code>"writeReminders"</code> |
|
|
1183
|
+
| Members | Value | Description | Since | Platform |
|
|
1184
|
+
| --------------------- | ----------------------------- | ------------------------------------------------------------ | ----- | ------------ |
|
|
1185
|
+
| **`READ_CALENDAR`** | <code>"readCalendar"</code> | Permission required for reading calendar events. | 7.1.0 | Android, iOS |
|
|
1186
|
+
| **`READ_REMINDERS`** | <code>"readReminders"</code> | Permission required for reading reminders. | 7.1.0 | iOS |
|
|
1187
|
+
| **`WRITE_CALENDAR`** | <code>"writeCalendar"</code> | Permission required for adding or modifying calendar events. | 7.1.0 | Android, iOS |
|
|
1188
|
+
| **`WRITE_REMINDERS`** | <code>"writeReminders"</code> | Permission required for adding or modifying reminders. | 7.1.0 | iOS |
|
|
695
1189
|
|
|
696
1190
|
|
|
697
|
-
####
|
|
1191
|
+
#### EventAvailability
|
|
698
1192
|
|
|
699
|
-
| Members
|
|
700
|
-
|
|
|
701
|
-
| **`
|
|
702
|
-
| **`
|
|
703
|
-
| **`
|
|
704
|
-
| **`
|
|
705
|
-
| **`
|
|
1193
|
+
| Members | Value | Since | Platform |
|
|
1194
|
+
| ------------------- | --------------- | ----- | ------------ |
|
|
1195
|
+
| **`NOT_SUPPORTED`** | <code>-1</code> | 7.1.0 | iOS |
|
|
1196
|
+
| **`BUSY`** | | 7.1.0 | Android, iOS |
|
|
1197
|
+
| **`FREE`** | | 7.1.0 | Android, iOS |
|
|
1198
|
+
| **`TENTATIVE`** | | 7.1.0 | Android, iOS |
|
|
1199
|
+
| **`UNAVAILABLE`** | | 7.1.0 | iOS |
|
|
706
1200
|
|
|
707
1201
|
|
|
708
|
-
####
|
|
1202
|
+
#### EventSpan
|
|
709
1203
|
|
|
710
|
-
| Members
|
|
711
|
-
|
|
|
712
|
-
| **`
|
|
713
|
-
| **`
|
|
714
|
-
| **`CAL_DAV`** | Calendars that use the CalDAV protocol for synchronization. This includes calendars from services like Google <a href="#calendar">Calendar</a> and Yahoo <a href="#calendar">Calendar</a>. |
|
|
715
|
-
| **`MOBILE_ME`** | Calendars that were previously associated with MobileMe, Apple's cloud service before iCloud. This source type is largely obsolete now. |
|
|
716
|
-
| **`SUBSCRIBED`** | Calendars that the user has subscribed to. These are read-only calendars that can be added by subscribing to a calendar URL. |
|
|
717
|
-
| **`BIRTHDAYS`** | The built-in Birthdays calendar, which shows birthdays of contacts from the user's address book. This calendar is typically read-only and is managed by the system. |
|
|
1204
|
+
| Members | Since |
|
|
1205
|
+
| ---------------------------- | ----- |
|
|
1206
|
+
| **`THIS_EVENT`** | 7.1.0 |
|
|
1207
|
+
| **`THIS_AND_FUTURE_EVENTS`** | 7.1.0 |
|
|
718
1208
|
|
|
719
1209
|
|
|
720
|
-
####
|
|
1210
|
+
#### EventStatus
|
|
721
1211
|
|
|
722
|
-
| Members
|
|
723
|
-
|
|
|
724
|
-
| **`
|
|
725
|
-
| **`
|
|
1212
|
+
| Members | Value | Since | Platform |
|
|
1213
|
+
| --------------- | ------------------------ | ----- | ------------ |
|
|
1214
|
+
| **`NONE`** | <code>"none"</code> | 7.1.0 | iOS |
|
|
1215
|
+
| **`CONFIRMED`** | <code>"confirmed"</code> | 7.1.0 | Android, iOS |
|
|
1216
|
+
| **`TENTATIVE`** | <code>"tentative"</code> | 7.1.0 | Android, iOS |
|
|
1217
|
+
| **`CANCELED`** | <code>"canceled"</code> | 7.1.0 | Android, iOS |
|
|
726
1218
|
|
|
727
1219
|
|
|
728
|
-
####
|
|
1220
|
+
#### AttendeeRole
|
|
729
1221
|
|
|
730
|
-
| Members
|
|
731
|
-
|
|
|
732
|
-
| **`
|
|
733
|
-
| **`
|
|
1222
|
+
| Members | Value | Since | Platform |
|
|
1223
|
+
| --------------------- | ----------------------------- | ----- | ------------ |
|
|
1224
|
+
| **`UNKNOWN`** | <code>"unknown"</code> | 7.1.0 | Android, iOS |
|
|
1225
|
+
| **`REQUIRED`** | <code>"required"</code> | 7.1.0 | iOS |
|
|
1226
|
+
| **`OPTIONAL`** | <code>"optional"</code> | 7.1.0 | iOS |
|
|
1227
|
+
| **`CHAIR`** | <code>"chair"</code> | 7.1.0 | iOS |
|
|
1228
|
+
| **`NON_PARTICIPANT`** | <code>"nonParticipant"</code> | 7.1.0 | Android, iOS |
|
|
1229
|
+
| **`ATTENDEE`** | <code>"attendee"</code> | 7.1.0 | Android |
|
|
1230
|
+
| **`ORGANIZER`** | <code>"organizer"</code> | 7.1.0 | Android |
|
|
1231
|
+
| **`PERFORMER`** | <code>"performer"</code> | 7.1.0 | Android |
|
|
1232
|
+
| **`SPEAKER`** | <code>"speaker"</code> | 7.1.0 | Android |
|
|
734
1233
|
|
|
735
1234
|
|
|
736
|
-
####
|
|
1235
|
+
#### AttendeeStatus
|
|
737
1236
|
|
|
738
|
-
| Members
|
|
739
|
-
|
|
|
740
|
-
| **`
|
|
741
|
-
| **`
|
|
742
|
-
| **`
|
|
743
|
-
| **`
|
|
1237
|
+
| Members | Value | Since | Platform |
|
|
1238
|
+
| ---------------- | ------------------------ | ----- | ------------ |
|
|
1239
|
+
| **`NONE`** | <code>"none"</code> | 7.1.0 | Android |
|
|
1240
|
+
| **`ACCEPTED`** | <code>"accepted"</code> | 7.1.0 | Android, iOS |
|
|
1241
|
+
| **`DECLINED`** | <code>"declined"</code> | 7.1.0 | Android, iOS |
|
|
1242
|
+
| **`INVITED`** | <code>"invited"</code> | 7.1.0 | Android |
|
|
1243
|
+
| **`UNKNOWN`** | <code>"unknown"</code> | 7.1.0 | iOS |
|
|
1244
|
+
| **`PENDING`** | <code>"pending"</code> | 7.1.0 | iOS |
|
|
1245
|
+
| **`TENTATIVE`** | <code>"tentative"</code> | 7.1.0 | Android, iOS |
|
|
1246
|
+
| **`DELEGATED`** | <code>"delegated"</code> | 7.1.0 | iOS |
|
|
1247
|
+
| **`COMPLETED`** | <code>"completed"</code> | 7.1.0 | iOS |
|
|
1248
|
+
| **`IN_PROCESS`** | <code>"inProcess"</code> | 7.1.0 | iOS |
|
|
744
1249
|
|
|
745
1250
|
|
|
746
|
-
####
|
|
1251
|
+
#### AttendeeType
|
|
747
1252
|
|
|
748
|
-
| Members
|
|
749
|
-
|
|
|
750
|
-
| **`
|
|
751
|
-
| **`
|
|
1253
|
+
| Members | Value | Since | Platform |
|
|
1254
|
+
| -------------- | ----------------------- | ----- | ------------ |
|
|
1255
|
+
| **`UNKNOWN`** | <code>"unknown"</code> | 7.1.0 | Android, iOS |
|
|
1256
|
+
| **`PERSON`** | <code>"person"</code> | 7.1.0 | iOS |
|
|
1257
|
+
| **`ROOM`** | <code>"room"</code> | 7.1.0 | iOS |
|
|
1258
|
+
| **`RESOURCE`** | <code>"resource"</code> | 7.1.0 | Android, iOS |
|
|
1259
|
+
| **`GROUP`** | <code>"group"</code> | 7.1.0 | iOS |
|
|
1260
|
+
| **`REQUIRED`** | <code>"required"</code> | 7.1.0 | Android |
|
|
1261
|
+
| **`NONE`** | <code>"none"</code> | 7.1.0 | Android |
|
|
1262
|
+
| **`OPTIONAL`** | <code>"optional"</code> | 7.1.0 | Android |
|
|
752
1263
|
|
|
753
|
-
</docgen-api>
|
|
754
1264
|
|
|
755
|
-
|
|
1265
|
+
#### CalendarType
|
|
1266
|
+
|
|
1267
|
+
| Members | Since |
|
|
1268
|
+
| ------------------ | ----- |
|
|
1269
|
+
| **`LOCAL`** | 7.1.0 |
|
|
1270
|
+
| **`CAL_DAV`** | 7.1.0 |
|
|
1271
|
+
| **`EXCHANGE`** | 7.1.0 |
|
|
1272
|
+
| **`SUBSCRIPTION`** | 7.1.0 |
|
|
1273
|
+
| **`BIRTHDAY`** | 7.1.0 |
|
|
756
1274
|
|
|
757
|
-
|
|
1275
|
+
|
|
1276
|
+
#### CalendarSourceType
|
|
1277
|
+
|
|
1278
|
+
| Members | Since |
|
|
1279
|
+
| ---------------- | ----- |
|
|
1280
|
+
| **`LOCAL`** | 7.1.0 |
|
|
1281
|
+
| **`EXCHANGE`** | 7.1.0 |
|
|
1282
|
+
| **`CAL_DAV`** | 7.1.0 |
|
|
1283
|
+
| **`MOBILE_ME`** | 7.1.0 |
|
|
1284
|
+
| **`SUBSCRIBED`** | 7.1.0 |
|
|
1285
|
+
| **`BIRTHDAYS`** | 7.1.0 |
|
|
1286
|
+
|
|
1287
|
+
|
|
1288
|
+
#### CalendarChooserDisplayStyle
|
|
1289
|
+
|
|
1290
|
+
| Members | Since |
|
|
1291
|
+
| ----------------------------- | ----- |
|
|
1292
|
+
| **`ALL_CALENDARS`** | 0.2.0 |
|
|
1293
|
+
| **`WRITABLE_CALENDARS_ONLY`** | 0.2.0 |
|
|
1294
|
+
|
|
1295
|
+
|
|
1296
|
+
#### RecurrenceFrequency
|
|
1297
|
+
|
|
1298
|
+
| Members | Since |
|
|
1299
|
+
| ------------- | ----- |
|
|
1300
|
+
| **`DAILY`** | 7.1.0 |
|
|
1301
|
+
| **`WEEKLY`** | 7.1.0 |
|
|
1302
|
+
| **`MONTHLY`** | 7.1.0 |
|
|
1303
|
+
| **`YEARLY`** | 7.1.0 |
|
|
1304
|
+
|
|
1305
|
+
</docgen-api>
|
|
758
1306
|
|
|
759
1307
|
## Contributing
|
|
760
1308
|
|
|
761
|
-
See [CONTRIBUTING.md](CONTRIBUTING.md)
|
|
1309
|
+
See [CONTRIBUTING.md](CONTRIBUTING.md) for guidelines.
|
|
762
1310
|
|
|
763
1311
|
## License
|
|
764
1312
|
|
|
765
|
-
See [LICENSE
|
|
1313
|
+
This project is licensed under the **MIT License**. See [LICENSE](LICENSE) for details.
|