@ebarooni/capacitor-calendar 7.0.0 → 7.1.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 +803 -317
- package/android/src/main/java/dev/barooni/capacitor/calendar/CapacitorCalendarPlugin.kt +267 -317
- package/android/src/main/java/dev/barooni/capacitor/calendar/PluginError.kt +47 -0
- package/android/src/main/java/dev/barooni/capacitor/calendar/implementation/CapacitorCalendar.kt +348 -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/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 +3762 -1105
- package/dist/esm/definitions.d.ts +6 -759
- package/dist/esm/definitions.js.map +1 -1
- package/dist/esm/index.d.ts +40 -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-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-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 +77 -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 +110 -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 +86 -151
- package/dist/esm/web.js +67 -49
- package/dist/esm/web.js.map +1 -1
- package/dist/plugin.cjs.js +392 -172
- package/dist/plugin.cjs.js.map +1 -1
- package/dist/plugin.js +392 -172
- package/dist/plugin.js.map +1 -1
- package/ios/Sources/CapacitorCalendarPlugin/CapacitorCalendarPlugin.swift +202 -531
- package/ios/Sources/CapacitorCalendarPlugin/Implementation/CapacitorCalendar.swift +554 -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/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/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 +42 -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)
|
|
51
|
+
|
|
52
|
+
## Documentation
|
|
53
|
+
|
|
54
|
+
For comprehensive usage examples, detailed explanations, and API references, check out:
|
|
46
55
|
|
|
47
|
-
|
|
56
|
+
- **[Online documentation](https://ebarooni.github.io/capacitor-calendar/)**
|
|
57
|
+
- **[Type definitions & examples](src/definitions.ts)**
|
|
48
58
|
|
|
49
|
-
|
|
59
|
+
## Changelog
|
|
60
|
+
|
|
61
|
+
See [CHANGELOG.md](CHANGELOG.md) for the latest updates and release history.
|
|
50
62
|
|
|
51
|
-
|
|
52
|
-
|
|
63
|
+
> [!NOTE]
|
|
64
|
+
> Version 7.1.0 introduces breaking changes.
|
|
53
65
|
|
|
54
|
-
##
|
|
66
|
+
## API
|
|
55
67
|
|
|
56
68
|
<docgen-index>
|
|
57
69
|
|
|
@@ -59,31 +71,36 @@ 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)
|
|
85
94
|
* [`fetchAllRemindersSources()`](#fetchallreminderssources)
|
|
95
|
+
* [`openReminders()`](#openreminders)
|
|
96
|
+
* [`getDefaultRemindersList()`](#getdefaultreminderslist)
|
|
97
|
+
* [`getRemindersLists()`](#getreminderslists)
|
|
98
|
+
* [`createReminder(...)`](#createreminder)
|
|
99
|
+
* [`deleteRemindersById(...)`](#deleteremindersbyid)
|
|
100
|
+
* [`deleteReminder(...)`](#deletereminder)
|
|
86
101
|
* [`modifyReminder(...)`](#modifyreminder)
|
|
102
|
+
* [`getReminderById(...)`](#getreminderbyid)
|
|
103
|
+
* [`getRemindersFromLists(...)`](#getremindersfromlists)
|
|
87
104
|
* [Interfaces](#interfaces)
|
|
88
105
|
* [Type Aliases](#type-aliases)
|
|
89
106
|
* [Enums](#enums)
|
|
@@ -96,226 +113,289 @@ For comprehensive explanations, usage examples, and additional information, plea
|
|
|
96
113
|
### checkPermission(...)
|
|
97
114
|
|
|
98
115
|
```typescript
|
|
99
|
-
checkPermission(options: {
|
|
116
|
+
checkPermission(options: { scope: CalendarPermissionScope; }) => Promise<{ result: PermissionState; }>
|
|
100
117
|
```
|
|
101
118
|
|
|
102
|
-
|
|
119
|
+
Retrieves the current permission state for a given scope.
|
|
103
120
|
|
|
104
|
-
| Param | Type
|
|
105
|
-
| ------------- |
|
|
106
|
-
| **`options`** | <code>{
|
|
121
|
+
| Param | Type |
|
|
122
|
+
| ------------- | --------------------------------------------------------------------------------------- |
|
|
123
|
+
| **`options`** | <code>{ scope: <a href="#calendarpermissionscope">CalendarPermissionScope</a>; }</code> |
|
|
107
124
|
|
|
108
125
|
**Returns:** <code>Promise<{ result: <a href="#permissionstate">PermissionState</a>; }></code>
|
|
109
126
|
|
|
110
127
|
**Since:** 0.1.0
|
|
111
128
|
|
|
129
|
+
**Platform:** Android, iOS
|
|
130
|
+
|
|
112
131
|
--------------------
|
|
113
132
|
|
|
114
133
|
|
|
115
134
|
### checkAllPermissions()
|
|
116
135
|
|
|
117
136
|
```typescript
|
|
118
|
-
checkAllPermissions() => Promise<
|
|
137
|
+
checkAllPermissions() => Promise<{ result: CheckAllPermissionsResult; }>
|
|
119
138
|
```
|
|
120
139
|
|
|
121
|
-
|
|
140
|
+
Retrieves the current state of all permissions.
|
|
122
141
|
|
|
123
|
-
**Returns:** <code>Promise<
|
|
142
|
+
**Returns:** <code>Promise<{ result: <a href="#checkallpermissionsresult">CheckAllPermissionsResult</a>; }></code>
|
|
124
143
|
|
|
125
144
|
**Since:** 0.1.0
|
|
126
145
|
|
|
146
|
+
**Platform:** Android, iOS
|
|
147
|
+
|
|
127
148
|
--------------------
|
|
128
149
|
|
|
129
150
|
|
|
130
151
|
### requestPermission(...)
|
|
131
152
|
|
|
132
153
|
```typescript
|
|
133
|
-
requestPermission(options: {
|
|
154
|
+
requestPermission(options: { scope: CalendarPermissionScope; }) => Promise<{ result: PermissionState; }>
|
|
134
155
|
```
|
|
135
156
|
|
|
136
|
-
Requests
|
|
137
|
-
If the permission is already granted, it will directly return the status.
|
|
157
|
+
Requests permission for a given scope.
|
|
138
158
|
|
|
139
|
-
| Param | Type
|
|
140
|
-
| ------------- |
|
|
141
|
-
| **`options`** | <code>{
|
|
159
|
+
| Param | Type |
|
|
160
|
+
| ------------- | --------------------------------------------------------------------------------------- |
|
|
161
|
+
| **`options`** | <code>{ scope: <a href="#calendarpermissionscope">CalendarPermissionScope</a>; }</code> |
|
|
142
162
|
|
|
143
163
|
**Returns:** <code>Promise<{ result: <a href="#permissionstate">PermissionState</a>; }></code>
|
|
144
164
|
|
|
145
165
|
**Since:** 0.1.0
|
|
146
166
|
|
|
167
|
+
**Platform:** Android, iOS
|
|
168
|
+
|
|
147
169
|
--------------------
|
|
148
170
|
|
|
149
171
|
|
|
150
172
|
### requestAllPermissions()
|
|
151
173
|
|
|
152
174
|
```typescript
|
|
153
|
-
requestAllPermissions() => Promise<
|
|
175
|
+
requestAllPermissions() => Promise<{ result: RequestAllPermissionsResult; }>
|
|
154
176
|
```
|
|
155
177
|
|
|
156
|
-
Requests
|
|
178
|
+
Requests permission for all calendar and reminder permissions.
|
|
157
179
|
|
|
158
|
-
**Returns:** <code>Promise<
|
|
180
|
+
**Returns:** <code>Promise<{ result: <a href="#checkallpermissionsresult">CheckAllPermissionsResult</a>; }></code>
|
|
159
181
|
|
|
160
182
|
**Since:** 0.1.0
|
|
161
183
|
|
|
184
|
+
**Platform:** Android, iOS
|
|
185
|
+
|
|
162
186
|
--------------------
|
|
163
187
|
|
|
164
188
|
|
|
165
|
-
###
|
|
189
|
+
### requestWriteOnlyCalendarAccess()
|
|
166
190
|
|
|
167
191
|
```typescript
|
|
168
|
-
|
|
192
|
+
requestWriteOnlyCalendarAccess() => Promise<{ result: PermissionState; }>
|
|
169
193
|
```
|
|
170
194
|
|
|
171
|
-
|
|
172
|
-
On iOS opens a native sheet and on Android opens an intent.
|
|
195
|
+
Requests write access to the calendar.
|
|
173
196
|
|
|
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. |
|
|
197
|
+
**Returns:** <code>Promise<{ result: <a href="#permissionstate">PermissionState</a>; }></code>
|
|
177
198
|
|
|
178
|
-
**
|
|
199
|
+
**Since:** 5.4.0
|
|
179
200
|
|
|
180
|
-
**
|
|
201
|
+
**Platform:** Android, iOS
|
|
181
202
|
|
|
182
203
|
--------------------
|
|
183
204
|
|
|
184
205
|
|
|
185
|
-
###
|
|
206
|
+
### requestReadOnlyCalendarAccess()
|
|
186
207
|
|
|
187
208
|
```typescript
|
|
188
|
-
|
|
209
|
+
requestReadOnlyCalendarAccess() => Promise<{ result: PermissionState; }>
|
|
189
210
|
```
|
|
190
211
|
|
|
191
|
-
|
|
212
|
+
Requests read access to the calendar.
|
|
192
213
|
|
|
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. |
|
|
214
|
+
**Returns:** <code>Promise<{ result: <a href="#permissionstate">PermissionState</a>; }></code>
|
|
196
215
|
|
|
197
|
-
**
|
|
216
|
+
**Since:** 5.4.0
|
|
198
217
|
|
|
199
|
-
**
|
|
218
|
+
**Platform:** Android
|
|
200
219
|
|
|
201
220
|
--------------------
|
|
202
221
|
|
|
203
222
|
|
|
204
|
-
###
|
|
223
|
+
### requestFullCalendarAccess()
|
|
205
224
|
|
|
206
225
|
```typescript
|
|
207
|
-
|
|
226
|
+
requestFullCalendarAccess() => Promise<{ result: PermissionState; }>
|
|
208
227
|
```
|
|
209
228
|
|
|
210
|
-
|
|
229
|
+
Requests read and write access to the calendar.
|
|
211
230
|
|
|
212
|
-
**Returns:** <code>Promise<{ result:
|
|
231
|
+
**Returns:** <code>Promise<{ result: <a href="#permissionstate">PermissionState</a>; }></code>
|
|
232
|
+
|
|
233
|
+
**Since:** 5.4.0
|
|
234
|
+
|
|
235
|
+
**Platform:** Android, iOS
|
|
213
236
|
|
|
214
237
|
--------------------
|
|
215
238
|
|
|
216
239
|
|
|
217
|
-
###
|
|
240
|
+
### requestFullRemindersAccess()
|
|
218
241
|
|
|
219
242
|
```typescript
|
|
220
|
-
|
|
243
|
+
requestFullRemindersAccess() => Promise<{ result: PermissionState; }>
|
|
221
244
|
```
|
|
222
245
|
|
|
223
|
-
|
|
246
|
+
Requests read and write access to the reminders.
|
|
224
247
|
|
|
225
|
-
**Returns:** <code>Promise<{ result: <a href="#
|
|
248
|
+
**Returns:** <code>Promise<{ result: <a href="#permissionstate">PermissionState</a>; }></code>
|
|
226
249
|
|
|
227
|
-
**Since:**
|
|
250
|
+
**Since:** 5.4.0
|
|
251
|
+
|
|
252
|
+
**Platform:** iOS
|
|
228
253
|
|
|
229
254
|
--------------------
|
|
230
255
|
|
|
231
256
|
|
|
232
|
-
###
|
|
257
|
+
### createEventWithPrompt(...)
|
|
233
258
|
|
|
234
259
|
```typescript
|
|
235
|
-
|
|
260
|
+
createEventWithPrompt(options?: CreateEventWithPromptOptions | undefined) => Promise<{ id: string | null; }>
|
|
236
261
|
```
|
|
237
262
|
|
|
238
|
-
|
|
263
|
+
Opens the system calendar interface to create a new event.
|
|
264
|
+
On Android always returns `null`.
|
|
265
|
+
Fetch the events to find the ID of the newly created event.
|
|
239
266
|
|
|
240
|
-
| Param | Type
|
|
241
|
-
| ------------- |
|
|
242
|
-
| **`options`** | <code>
|
|
267
|
+
| Param | Type |
|
|
268
|
+
| ------------- | ------------------------------------------------------------------------------------- |
|
|
269
|
+
| **`options`** | <code><a href="#createeventwithpromptoptions">CreateEventWithPromptOptions</a></code> |
|
|
243
270
|
|
|
244
|
-
**Returns:** <code>Promise<{
|
|
271
|
+
**Returns:** <code>Promise<{ id: string | null; }></code>
|
|
245
272
|
|
|
246
|
-
**Since:** 0.
|
|
273
|
+
**Since:** 0.1.0
|
|
274
|
+
|
|
275
|
+
**Platform:** Android, iOS
|
|
247
276
|
|
|
248
277
|
--------------------
|
|
249
278
|
|
|
250
279
|
|
|
251
|
-
###
|
|
280
|
+
### modifyEventWithPrompt(...)
|
|
252
281
|
|
|
253
282
|
```typescript
|
|
254
|
-
|
|
283
|
+
modifyEventWithPrompt(options: ModifyEventWithPromptOptions) => Promise<{ result: EventEditAction | null; }>
|
|
255
284
|
```
|
|
256
285
|
|
|
257
|
-
|
|
286
|
+
Opens a system calendar interface to modify an event.
|
|
287
|
+
On Android always returns `null`.
|
|
288
|
+
|
|
289
|
+
| Param | Type |
|
|
290
|
+
| ------------- | ------------------------------------------------------------------------------------- |
|
|
291
|
+
| **`options`** | <code><a href="#modifyeventwithpromptoptions">ModifyEventWithPromptOptions</a></code> |
|
|
292
|
+
|
|
293
|
+
**Returns:** <code>Promise<{ result: <a href="#eventeditaction">EventEditAction</a> | null; }></code>
|
|
294
|
+
|
|
295
|
+
**Since:** 6.6.0
|
|
258
296
|
|
|
259
|
-
**
|
|
297
|
+
**Platform:** Android, iOS
|
|
260
298
|
|
|
261
299
|
--------------------
|
|
262
300
|
|
|
263
301
|
|
|
264
|
-
###
|
|
302
|
+
### createEvent(...)
|
|
265
303
|
|
|
266
304
|
```typescript
|
|
267
|
-
|
|
305
|
+
createEvent(options: CreateEventOptions) => Promise<{ id: string; }>
|
|
268
306
|
```
|
|
269
307
|
|
|
270
|
-
|
|
308
|
+
Creates an event in the calendar.
|
|
271
309
|
|
|
272
|
-
|
|
310
|
+
| Param | Type |
|
|
311
|
+
| ------------- | ----------------------------------------------------------------- |
|
|
312
|
+
| **`options`** | <code><a href="#createeventoptions">CreateEventOptions</a></code> |
|
|
313
|
+
|
|
314
|
+
**Returns:** <code>Promise<{ id: string; }></code>
|
|
315
|
+
|
|
316
|
+
**Since:** 0.4.0
|
|
317
|
+
|
|
318
|
+
**Platform:** iOS, Android
|
|
273
319
|
|
|
274
320
|
--------------------
|
|
275
321
|
|
|
276
322
|
|
|
277
|
-
###
|
|
323
|
+
### modifyEvent(...)
|
|
278
324
|
|
|
279
325
|
```typescript
|
|
280
|
-
|
|
326
|
+
modifyEvent(options: ModifyEventOptions) => Promise<void>
|
|
281
327
|
```
|
|
282
328
|
|
|
283
|
-
|
|
329
|
+
Modifies an event.
|
|
284
330
|
|
|
285
|
-
| Param | Type
|
|
286
|
-
| ------------- |
|
|
287
|
-
| **`options`** | <code
|
|
331
|
+
| Param | Type |
|
|
332
|
+
| ------------- | ----------------------------------------------------------------- |
|
|
333
|
+
| **`options`** | <code><a href="#modifyeventoptions">ModifyEventOptions</a></code> |
|
|
288
334
|
|
|
289
|
-
**
|
|
335
|
+
**Since:** 6.6.0
|
|
290
336
|
|
|
291
|
-
**
|
|
337
|
+
**Platform:** Android, iOS
|
|
292
338
|
|
|
293
339
|
--------------------
|
|
294
340
|
|
|
295
341
|
|
|
296
|
-
###
|
|
342
|
+
### deleteEventsById(...)
|
|
343
|
+
|
|
344
|
+
```typescript
|
|
345
|
+
deleteEventsById(options: DeleteEventsByIdOptions) => Promise<{ result: DeleteEventsByIdResult; }>
|
|
346
|
+
```
|
|
347
|
+
|
|
348
|
+
Deletes multiple events.
|
|
349
|
+
|
|
350
|
+
| Param | Type |
|
|
351
|
+
| ------------- | --------------------------------------------------------------------------- |
|
|
352
|
+
| **`options`** | <code><a href="#deleteeventsbyidoptions">DeleteEventsByIdOptions</a></code> |
|
|
353
|
+
|
|
354
|
+
**Returns:** <code>Promise<{ result: <a href="#deleteeventsbyidresult">DeleteEventsByIdResult</a>; }></code>
|
|
355
|
+
|
|
356
|
+
**Since:** 0.11.0
|
|
357
|
+
|
|
358
|
+
**Platform:** Android, iOS
|
|
359
|
+
|
|
360
|
+
--------------------
|
|
361
|
+
|
|
362
|
+
|
|
363
|
+
### deleteEvent(...)
|
|
297
364
|
|
|
298
365
|
```typescript
|
|
299
|
-
|
|
366
|
+
deleteEvent(options: DeleteEventOptions) => Promise<void>
|
|
300
367
|
```
|
|
301
368
|
|
|
302
|
-
|
|
303
|
-
|
|
369
|
+
Deletes an event.
|
|
370
|
+
|
|
371
|
+
| Param | Type |
|
|
372
|
+
| ------------- | ----------------------------------------------------------------- |
|
|
373
|
+
| **`options`** | <code><a href="#deleteeventoptions">DeleteEventOptions</a></code> |
|
|
304
374
|
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
375
|
+
**Since:** 7.1.0
|
|
376
|
+
|
|
377
|
+
**Platform:** Android, iOS
|
|
308
378
|
|
|
309
379
|
--------------------
|
|
310
380
|
|
|
311
381
|
|
|
312
|
-
###
|
|
382
|
+
### deleteEventWithPrompt(...)
|
|
313
383
|
|
|
314
384
|
```typescript
|
|
315
|
-
|
|
385
|
+
deleteEventWithPrompt(options: DeleteEventWithPromptOptions) => Promise<{ deleted: boolean; }>
|
|
316
386
|
```
|
|
317
387
|
|
|
318
|
-
Opens
|
|
388
|
+
Opens a dialog to delete an event.
|
|
389
|
+
|
|
390
|
+
| Param | Type |
|
|
391
|
+
| ------------- | ------------------------------------------------------------------------------------- |
|
|
392
|
+
| **`options`** | <code><a href="#deleteeventwithpromptoptions">DeleteEventWithPromptOptions</a></code> |
|
|
393
|
+
|
|
394
|
+
**Returns:** <code>Promise<{ deleted: boolean; }></code>
|
|
395
|
+
|
|
396
|
+
**Since:** 7.1.0
|
|
397
|
+
|
|
398
|
+
**Platform:** Android, iOS
|
|
319
399
|
|
|
320
400
|
--------------------
|
|
321
401
|
|
|
@@ -323,237 +403,293 @@ Opens the reminders app. Since the user leaves your app, use this method with ca
|
|
|
323
403
|
### listEventsInRange(...)
|
|
324
404
|
|
|
325
405
|
```typescript
|
|
326
|
-
listEventsInRange(options:
|
|
406
|
+
listEventsInRange(options: ListEventsInRangeOptions) => Promise<{ result: CalendarEvent[]; }>
|
|
327
407
|
```
|
|
328
408
|
|
|
329
|
-
Retrieves the
|
|
409
|
+
Retrieves the events within a date range.
|
|
330
410
|
|
|
331
|
-
| Param | Type
|
|
332
|
-
| ------------- |
|
|
333
|
-
| **`options`** | <code>
|
|
411
|
+
| Param | Type |
|
|
412
|
+
| ------------- | ----------------------------------------------------------------------------- |
|
|
413
|
+
| **`options`** | <code><a href="#listeventsinrangeoptions">ListEventsInRangeOptions</a></code> |
|
|
334
414
|
|
|
335
415
|
**Returns:** <code>Promise<{ result: CalendarEvent[]; }></code>
|
|
336
416
|
|
|
337
417
|
**Since:** 0.10.0
|
|
338
418
|
|
|
419
|
+
**Platform:** Android, iOS
|
|
420
|
+
|
|
339
421
|
--------------------
|
|
340
422
|
|
|
341
423
|
|
|
342
|
-
###
|
|
424
|
+
### commit()
|
|
343
425
|
|
|
344
426
|
```typescript
|
|
345
|
-
|
|
427
|
+
commit() => Promise<void>
|
|
346
428
|
```
|
|
347
429
|
|
|
348
|
-
|
|
430
|
+
Save the changes to the calendar.
|
|
349
431
|
|
|
350
|
-
|
|
351
|
-
| ------------- | ------------------------------- | ------------------------------- |
|
|
352
|
-
| **`options`** | <code>{ ids: string[]; }</code> | Options for defining event IDs. |
|
|
432
|
+
**Since:** 7.1.0
|
|
353
433
|
|
|
354
|
-
**
|
|
434
|
+
**Platform:** iOS
|
|
355
435
|
|
|
356
|
-
|
|
436
|
+
--------------------
|
|
437
|
+
|
|
438
|
+
|
|
439
|
+
### selectCalendarsWithPrompt(...)
|
|
440
|
+
|
|
441
|
+
```typescript
|
|
442
|
+
selectCalendarsWithPrompt(options?: SelectCalendarsWithPromptOptions | undefined) => Promise<{ result: Calendar[]; }>
|
|
443
|
+
```
|
|
444
|
+
|
|
445
|
+
Opens a system interface to choose one or multiple calendars.
|
|
446
|
+
|
|
447
|
+
| Param | Type |
|
|
448
|
+
| ------------- | --------------------------------------------------------------------------------------------- |
|
|
449
|
+
| **`options`** | <code><a href="#selectcalendarswithpromptoptions">SelectCalendarsWithPromptOptions</a></code> |
|
|
450
|
+
|
|
451
|
+
**Returns:** <code>Promise<{ result: Calendar[]; }></code>
|
|
452
|
+
|
|
453
|
+
**Since:** 0.2.0
|
|
454
|
+
|
|
455
|
+
**Platform:** iOS
|
|
357
456
|
|
|
358
457
|
--------------------
|
|
359
458
|
|
|
360
459
|
|
|
361
|
-
###
|
|
460
|
+
### fetchAllCalendarSources()
|
|
362
461
|
|
|
363
462
|
```typescript
|
|
364
|
-
|
|
463
|
+
fetchAllCalendarSources() => Promise<{ result: CalendarSource[]; }>
|
|
365
464
|
```
|
|
366
465
|
|
|
367
|
-
|
|
466
|
+
Retrieves a list of calendar sources.
|
|
368
467
|
|
|
369
|
-
|
|
370
|
-
| ------------- | ------------------------------------------------------------------ | -------------------------------- |
|
|
371
|
-
| **`options`** | <code>{ title: string; color?: string; sourceId?: string; }</code> | Options for creating a calendar. |
|
|
468
|
+
**Returns:** <code>Promise<{ result: CalendarSource[]; }></code>
|
|
372
469
|
|
|
373
|
-
**
|
|
470
|
+
**Since:** 6.6.0
|
|
374
471
|
|
|
375
|
-
**
|
|
472
|
+
**Platform:** iOS
|
|
376
473
|
|
|
377
474
|
--------------------
|
|
378
475
|
|
|
379
476
|
|
|
380
|
-
###
|
|
477
|
+
### listCalendars()
|
|
381
478
|
|
|
382
479
|
```typescript
|
|
383
|
-
|
|
480
|
+
listCalendars() => Promise<{ result: Calendar[]; }>
|
|
384
481
|
```
|
|
385
482
|
|
|
386
|
-
|
|
483
|
+
Retrieves a list of all available calendars.
|
|
387
484
|
|
|
388
|
-
|
|
389
|
-
| ------------- | ---------------------------- | -------------------------------- |
|
|
390
|
-
| **`options`** | <code>{ id: string; }</code> | Options for deleting a calendar. |
|
|
485
|
+
**Returns:** <code>Promise<{ result: Calendar[]; }></code>
|
|
391
486
|
|
|
392
|
-
**Since:**
|
|
487
|
+
**Since:** 7.1.0
|
|
488
|
+
|
|
489
|
+
**Platform:** Android, iOS
|
|
393
490
|
|
|
394
491
|
--------------------
|
|
395
492
|
|
|
396
493
|
|
|
397
|
-
###
|
|
494
|
+
### getDefaultCalendar()
|
|
398
495
|
|
|
399
496
|
```typescript
|
|
400
|
-
|
|
497
|
+
getDefaultCalendar() => Promise<{ result: Calendar | null; }>
|
|
401
498
|
```
|
|
402
499
|
|
|
403
|
-
Retrieves the
|
|
500
|
+
Retrieves the default calendar.
|
|
404
501
|
|
|
405
|
-
|
|
406
|
-
| ------------- | ----------------------------------- | --------------------------------------------------------------------------------------------------------------------- |
|
|
407
|
-
| **`options`** | <code>{ listIds: string[]; }</code> | Options for defining the date range. It Will fetch all reminders from all available lists if not provided. (Optional) |
|
|
502
|
+
**Returns:** <code>Promise<{ result: <a href="#calendar">Calendar</a> | null; }></code>
|
|
408
503
|
|
|
409
|
-
**
|
|
504
|
+
**Since:** 0.3.0
|
|
410
505
|
|
|
411
|
-
**
|
|
506
|
+
**Platform:** Android, iOS
|
|
412
507
|
|
|
413
508
|
--------------------
|
|
414
509
|
|
|
415
510
|
|
|
416
|
-
###
|
|
511
|
+
### openCalendar(...)
|
|
417
512
|
|
|
418
513
|
```typescript
|
|
419
|
-
|
|
514
|
+
openCalendar(options?: OpenCalendarOptions | undefined) => Promise<void>
|
|
420
515
|
```
|
|
421
516
|
|
|
422
|
-
|
|
517
|
+
Opens the calendar app.
|
|
423
518
|
|
|
424
|
-
| Param | Type
|
|
425
|
-
| ------------- |
|
|
426
|
-
| **`options`** | <code>
|
|
519
|
+
| Param | Type |
|
|
520
|
+
| ------------- | ------------------------------------------------------------------- |
|
|
521
|
+
| **`options`** | <code><a href="#opencalendaroptions">OpenCalendarOptions</a></code> |
|
|
427
522
|
|
|
428
|
-
**
|
|
523
|
+
**Since:** 7.1.0
|
|
429
524
|
|
|
430
|
-
**
|
|
525
|
+
**Platform:** Android, iOS
|
|
431
526
|
|
|
432
527
|
--------------------
|
|
433
528
|
|
|
434
529
|
|
|
435
|
-
###
|
|
530
|
+
### createCalendar(...)
|
|
436
531
|
|
|
437
532
|
```typescript
|
|
438
|
-
|
|
533
|
+
createCalendar(options: CreateCalendarOptions) => Promise<{ id: string; }>
|
|
439
534
|
```
|
|
440
535
|
|
|
441
|
-
|
|
536
|
+
Creates a calendar.
|
|
442
537
|
|
|
443
|
-
|
|
538
|
+
| Param | Type |
|
|
539
|
+
| ------------- | ----------------------------------------------------------------------- |
|
|
540
|
+
| **`options`** | <code><a href="#createcalendaroptions">CreateCalendarOptions</a></code> |
|
|
444
541
|
|
|
445
|
-
**
|
|
542
|
+
**Returns:** <code>Promise<{ id: string; }></code>
|
|
543
|
+
|
|
544
|
+
**Since:** 5.2.0
|
|
545
|
+
|
|
546
|
+
**Platform:** Android, iOS
|
|
446
547
|
|
|
447
548
|
--------------------
|
|
448
549
|
|
|
449
550
|
|
|
450
|
-
###
|
|
551
|
+
### deleteCalendar(...)
|
|
451
552
|
|
|
452
553
|
```typescript
|
|
453
|
-
|
|
554
|
+
deleteCalendar(options: DeleteCalendarOptions) => Promise<void>
|
|
454
555
|
```
|
|
455
556
|
|
|
456
|
-
|
|
557
|
+
Deletes a calendar by id.
|
|
457
558
|
|
|
458
|
-
|
|
559
|
+
| Param | Type |
|
|
560
|
+
| ------------- | ----------------------------------------------------------------------- |
|
|
561
|
+
| **`options`** | <code><a href="#deletecalendaroptions">DeleteCalendarOptions</a></code> |
|
|
459
562
|
|
|
460
|
-
**Since:** 5.
|
|
563
|
+
**Since:** 5.2.0
|
|
564
|
+
|
|
565
|
+
**Platform:** Android, iOS
|
|
461
566
|
|
|
462
567
|
--------------------
|
|
463
568
|
|
|
464
569
|
|
|
465
|
-
###
|
|
570
|
+
### fetchAllRemindersSources()
|
|
466
571
|
|
|
467
572
|
```typescript
|
|
468
|
-
|
|
573
|
+
fetchAllRemindersSources() => Promise<{ result: CalendarSource[]; }>
|
|
469
574
|
```
|
|
470
575
|
|
|
471
|
-
|
|
576
|
+
Retrieves a list of calendar sources.
|
|
577
|
+
|
|
578
|
+
**Returns:** <code>Promise<{ result: CalendarSource[]; }></code>
|
|
472
579
|
|
|
473
|
-
**
|
|
580
|
+
**Since:** 6.6.0
|
|
474
581
|
|
|
475
|
-
**
|
|
582
|
+
**Platform:** iOS
|
|
476
583
|
|
|
477
584
|
--------------------
|
|
478
585
|
|
|
479
586
|
|
|
480
|
-
###
|
|
587
|
+
### openReminders()
|
|
481
588
|
|
|
482
589
|
```typescript
|
|
483
|
-
|
|
590
|
+
openReminders() => Promise<void>
|
|
484
591
|
```
|
|
485
592
|
|
|
486
|
-
|
|
593
|
+
Opens the reminders app.
|
|
487
594
|
|
|
488
|
-
**
|
|
595
|
+
**Since:** 7.1.0
|
|
489
596
|
|
|
490
|
-
**
|
|
597
|
+
**Platform:** iOS
|
|
491
598
|
|
|
492
599
|
--------------------
|
|
493
600
|
|
|
494
601
|
|
|
495
|
-
###
|
|
602
|
+
### getDefaultRemindersList()
|
|
496
603
|
|
|
497
604
|
```typescript
|
|
498
|
-
|
|
605
|
+
getDefaultRemindersList() => Promise<{ result: RemindersList | null; }>
|
|
499
606
|
```
|
|
500
607
|
|
|
501
|
-
|
|
608
|
+
Retrieves the default reminders list.
|
|
502
609
|
|
|
503
|
-
|
|
504
|
-
| ------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------- |
|
|
505
|
-
| **`options`** | <code>{ id: string; update?: { title?: string; calendarId?: string; location?: string; startDate?: number; endDate?: number; isAllDay?: boolean; alertOffsetInMinutes?: number \| number[]; url?: string; notes?: string; }; }</code> | The options for modifying an event. |
|
|
610
|
+
**Returns:** <code>Promise<{ result: <a href="#calendar">Calendar</a> | null; }></code>
|
|
506
611
|
|
|
507
|
-
**
|
|
612
|
+
**Since:** 7.1.0
|
|
508
613
|
|
|
509
|
-
**
|
|
614
|
+
**Platform:** iOS
|
|
510
615
|
|
|
511
616
|
--------------------
|
|
512
617
|
|
|
513
618
|
|
|
514
|
-
###
|
|
619
|
+
### getRemindersLists()
|
|
515
620
|
|
|
516
621
|
```typescript
|
|
517
|
-
|
|
622
|
+
getRemindersLists() => Promise<{ result: RemindersList[]; }>
|
|
518
623
|
```
|
|
519
624
|
|
|
520
|
-
|
|
625
|
+
Retrieves all available reminders lists.
|
|
521
626
|
|
|
522
|
-
|
|
523
|
-
| ------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------- |
|
|
524
|
-
| **`options`** | <code>{ id: string; span?: <a href="#eventspan">EventSpan</a>; update: { title?: string; calendarId?: string; location?: string; startDate?: number; endDate?: number; isAllDay?: boolean; alertOffsetInMinutes?: number \| number[]; url?: string; notes?: string; }; }</code> | The options for updating an event. |
|
|
627
|
+
**Returns:** <code>Promise<{ result: Calendar[]; }></code>
|
|
525
628
|
|
|
526
|
-
**Since:**
|
|
629
|
+
**Since:** 7.1.0
|
|
630
|
+
|
|
631
|
+
**Platform:** iOS
|
|
527
632
|
|
|
528
633
|
--------------------
|
|
529
634
|
|
|
530
635
|
|
|
531
|
-
###
|
|
636
|
+
### createReminder(...)
|
|
532
637
|
|
|
533
638
|
```typescript
|
|
534
|
-
|
|
639
|
+
createReminder(options: CreateReminderOptions) => Promise<{ id: string; }>
|
|
535
640
|
```
|
|
536
641
|
|
|
537
|
-
|
|
642
|
+
Creates a reminder.
|
|
538
643
|
|
|
539
|
-
|
|
644
|
+
| Param | Type |
|
|
645
|
+
| ------------- | ----------------------------------------------------------------------- |
|
|
646
|
+
| **`options`** | <code><a href="#createreminderoptions">CreateReminderOptions</a></code> |
|
|
540
647
|
|
|
541
|
-
**
|
|
648
|
+
**Returns:** <code>Promise<{ id: string; }></code>
|
|
649
|
+
|
|
650
|
+
**Since:** 0.5.0
|
|
651
|
+
|
|
652
|
+
**Platform:** iOS
|
|
542
653
|
|
|
543
654
|
--------------------
|
|
544
655
|
|
|
545
656
|
|
|
546
|
-
###
|
|
657
|
+
### deleteRemindersById(...)
|
|
547
658
|
|
|
548
659
|
```typescript
|
|
549
|
-
|
|
660
|
+
deleteRemindersById(options: DeleteRemindersByIdOptions) => Promise<{ result: DeleteRemindersByIdResult; }>
|
|
550
661
|
```
|
|
551
662
|
|
|
552
|
-
|
|
663
|
+
Deletes multiple reminders.
|
|
553
664
|
|
|
554
|
-
|
|
665
|
+
| Param | Type |
|
|
666
|
+
| ------------- | --------------------------------------------------------------------------------- |
|
|
667
|
+
| **`options`** | <code><a href="#deleteremindersbyidoptions">DeleteRemindersByIdOptions</a></code> |
|
|
555
668
|
|
|
556
|
-
**
|
|
669
|
+
**Returns:** <code>Promise<{ result: <a href="#deleteremindersbyidresult">DeleteRemindersByIdResult</a>; }></code>
|
|
670
|
+
|
|
671
|
+
**Since:** 5.3.0
|
|
672
|
+
|
|
673
|
+
**Platform:** iOS
|
|
674
|
+
|
|
675
|
+
--------------------
|
|
676
|
+
|
|
677
|
+
|
|
678
|
+
### deleteReminder(...)
|
|
679
|
+
|
|
680
|
+
```typescript
|
|
681
|
+
deleteReminder(options: DeleteReminderOptions) => Promise<void>
|
|
682
|
+
```
|
|
683
|
+
|
|
684
|
+
Deletes a reminder.
|
|
685
|
+
|
|
686
|
+
| Param | Type |
|
|
687
|
+
| ------------- | ----------------------------------------------------------------------- |
|
|
688
|
+
| **`options`** | <code><a href="#deletereminderoptions">DeleteReminderOptions</a></code> |
|
|
689
|
+
|
|
690
|
+
**Since:** 7.1.0
|
|
691
|
+
|
|
692
|
+
**Platform:** iOS
|
|
557
693
|
|
|
558
694
|
--------------------
|
|
559
695
|
|
|
@@ -561,99 +697,385 @@ Retrieves a list of reminders sources.
|
|
|
561
697
|
### modifyReminder(...)
|
|
562
698
|
|
|
563
699
|
```typescript
|
|
564
|
-
modifyReminder(options:
|
|
700
|
+
modifyReminder(options: ModifyReminderOptions) => Promise<void>
|
|
565
701
|
```
|
|
566
702
|
|
|
567
|
-
Modifies a reminder
|
|
703
|
+
Modifies a reminder.
|
|
568
704
|
|
|
569
|
-
| Param | Type
|
|
570
|
-
| ------------- |
|
|
571
|
-
| **`options`** | <code
|
|
705
|
+
| Param | Type |
|
|
706
|
+
| ------------- | ----------------------------------------------------------------------- |
|
|
707
|
+
| **`options`** | <code><a href="#modifyreminderoptions">ModifyReminderOptions</a></code> |
|
|
572
708
|
|
|
573
709
|
**Since:** 6.7.0
|
|
574
710
|
|
|
711
|
+
**Platform:** iOS
|
|
712
|
+
|
|
713
|
+
--------------------
|
|
714
|
+
|
|
715
|
+
|
|
716
|
+
### getReminderById(...)
|
|
717
|
+
|
|
718
|
+
```typescript
|
|
719
|
+
getReminderById(options: GetReminderByIdOptions) => Promise<{ result: Reminder | null; }>
|
|
720
|
+
```
|
|
721
|
+
|
|
722
|
+
Retrieve a reminder by ID.
|
|
723
|
+
|
|
724
|
+
| Param | Type |
|
|
725
|
+
| ------------- | ------------------------------------------------------------------------- |
|
|
726
|
+
| **`options`** | <code><a href="#getreminderbyidoptions">GetReminderByIdOptions</a></code> |
|
|
727
|
+
|
|
728
|
+
**Returns:** <code>Promise<{ result: <a href="#reminder">Reminder</a> | null; }></code>
|
|
729
|
+
|
|
730
|
+
**Since:** 7.1.0
|
|
731
|
+
|
|
732
|
+
**Platform:** iOS
|
|
733
|
+
|
|
734
|
+
--------------------
|
|
735
|
+
|
|
736
|
+
|
|
737
|
+
### getRemindersFromLists(...)
|
|
738
|
+
|
|
739
|
+
```typescript
|
|
740
|
+
getRemindersFromLists(options: GetRemindersFromListsOptions) => Promise<{ result: Reminder[]; }>
|
|
741
|
+
```
|
|
742
|
+
|
|
743
|
+
Retrieves reminders from multiple lists.
|
|
744
|
+
|
|
745
|
+
| Param | Type |
|
|
746
|
+
| ------------- | ------------------------------------------------------------------------------------- |
|
|
747
|
+
| **`options`** | <code><a href="#getremindersfromlistsoptions">GetRemindersFromListsOptions</a></code> |
|
|
748
|
+
|
|
749
|
+
**Returns:** <code>Promise<{ result: Reminder[]; }></code>
|
|
750
|
+
|
|
751
|
+
**Since:** 5.3.0
|
|
752
|
+
|
|
753
|
+
**Platform:** iOS
|
|
754
|
+
|
|
575
755
|
--------------------
|
|
576
756
|
|
|
577
757
|
|
|
578
758
|
### Interfaces
|
|
579
759
|
|
|
580
760
|
|
|
581
|
-
####
|
|
761
|
+
#### CreateEventWithPromptOptions
|
|
762
|
+
|
|
763
|
+
| Prop | Type | Description | Since | Platform |
|
|
764
|
+
| ------------------ | --------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | ----- | ------------ |
|
|
765
|
+
| **`title`** | <code>string</code> | | 0.1.0 | Android, iOS |
|
|
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 |
|
|
776
|
+
|
|
777
|
+
|
|
778
|
+
#### ModifyEventWithPromptOptions
|
|
779
|
+
|
|
780
|
+
| Prop | Type | Description | Since | Platform |
|
|
781
|
+
| ------------------ | --------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | ----- | ------------ |
|
|
782
|
+
| **`title`** | <code>string</code> | | 0.1.0 | Android, iOS |
|
|
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 |
|
|
794
|
+
|
|
795
|
+
|
|
796
|
+
#### CreateEventOptions
|
|
797
|
+
|
|
798
|
+
| Prop | Type | Description | Default | Since | Platform |
|
|
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 |
|
|
815
|
+
|
|
816
|
+
|
|
817
|
+
#### EventGuest
|
|
818
|
+
|
|
819
|
+
| Prop | Type | Since |
|
|
820
|
+
| ----------- | ------------------- | ----- |
|
|
821
|
+
| **`name`** | <code>string</code> | 7.1.0 |
|
|
822
|
+
| **`email`** | <code>string</code> | 7.1.0 |
|
|
823
|
+
|
|
824
|
+
|
|
825
|
+
#### ModifyEventOptions
|
|
826
|
+
|
|
827
|
+
| Prop | Type | Description | Default | Since | Platform |
|
|
828
|
+
| ------------------ | --------------------------------------------------------------- | ---------------------------------------- | --------------------------------- | ----- | ------------ |
|
|
829
|
+
| **`id`** | <code>string</code> | The ID of the event to be modified. | | 7.1.0 | Android, iOS |
|
|
830
|
+
| **`title`** | <code>string</code> | | | 0.4.0 | Android, iOS |
|
|
831
|
+
| **`calendarId`** | <code>string</code> | | | 0.1.0 | Android, iOS |
|
|
832
|
+
| **`location`** | <code>string</code> | | | 0.1.0 | Android, iOS |
|
|
833
|
+
| **`startDate`** | <code>number</code> | | | 0.1.0 | Android, iOS |
|
|
834
|
+
| **`endDate`** | <code>number</code> | | | 0.1.0 | Android, iOS |
|
|
835
|
+
| **`isAllDay`** | <code>boolean</code> | | | 0.1.0 | Android, iOS |
|
|
836
|
+
| **`alerts`** | <code>number[]</code> | | | 7.1.0 | Android, iOS |
|
|
837
|
+
| **`url`** | <code>string</code> | | | 0.1.0 | iOS |
|
|
838
|
+
| **`description`** | <code>string</code> | | | 7.1.0 | Android, iOS |
|
|
839
|
+
| **`availability`** | <code><a href="#eventavailability">EventAvailability</a></code> | | | 7.1.0 | Android, iOS |
|
|
840
|
+
| **`organizer`** | <code>string</code> | Email of the event organizer. | | 7.1.0 | Android |
|
|
841
|
+
| **`color`** | <code>string</code> | | | 7.1.0 | Android |
|
|
842
|
+
| **`duration`** | <code>string</code> | Duration of the event in RFC2445 format. | | 7.1.0 | Android |
|
|
843
|
+
| **`attendees`** | <code>EventGuest[]</code> | The event guests. | | 7.1.0 | Android |
|
|
844
|
+
| **`span`** | <code><a href="#eventspan">EventSpan</a></code> | The span of modifications. | <code>EventSpan.THIS_EVENT</code> | | iOS |
|
|
845
|
+
|
|
846
|
+
|
|
847
|
+
#### DeleteEventsByIdResult
|
|
848
|
+
|
|
849
|
+
| Prop | Type | Since |
|
|
850
|
+
| ------------- | --------------------- | ----- |
|
|
851
|
+
| **`deleted`** | <code>string[]</code> | 7.1.0 |
|
|
852
|
+
| **`failed`** | <code>string[]</code> | 7.1.0 |
|
|
853
|
+
|
|
854
|
+
|
|
855
|
+
#### DeleteEventsByIdOptions
|
|
856
|
+
|
|
857
|
+
| Prop | Type | Description | Default | Since | Platform |
|
|
858
|
+
| ---------- | ----------------------------------------------- | --------------------- | --------------------------------- | ----- | -------- |
|
|
859
|
+
| **`ids`** | <code>string[]</code> | | | 7.1.0 | |
|
|
860
|
+
| **`span`** | <code><a href="#eventspan">EventSpan</a></code> | The span of deletion. | <code>EventSpan.THIS_EVENT</code> | | iOS |
|
|
861
|
+
|
|
862
|
+
|
|
863
|
+
#### DeleteEventOptions
|
|
864
|
+
|
|
865
|
+
| Prop | Type | Description | Default | Since | Platform |
|
|
866
|
+
| ---------- | ----------------------------------------------- | --------------------- | --------------------------------- | ----- | -------- |
|
|
867
|
+
| **`id`** | <code>string</code> | | | 7.1.0 | |
|
|
868
|
+
| **`span`** | <code><a href="#eventspan">EventSpan</a></code> | The span of deletion. | <code>EventSpan.THIS_EVENT</code> | | iOS |
|
|
869
|
+
|
|
870
|
+
|
|
871
|
+
#### DeleteEventWithPromptOptions
|
|
872
|
+
|
|
873
|
+
| Prop | Type | Description | Default | Since | Platform |
|
|
874
|
+
| ----------------------- | ----------------------------------------------- | ----------------------------------- | --------------------------------- | ----- | ------------ |
|
|
875
|
+
| **`id`** | <code>string</code> | | | 7.1.0 | |
|
|
876
|
+
| **`span`** | <code><a href="#eventspan">EventSpan</a></code> | The span of deletion. | <code>EventSpan.THIS_EVENT</code> | | iOS |
|
|
877
|
+
| **`title`** | <code>string</code> | Title of the dialog. | | 7.1.0 | Android, iOS |
|
|
878
|
+
| **`message`** | <code>string</code> | Message of the dialog. | | 7.1.0 | Android, iOS |
|
|
879
|
+
| **`confirmButtonText`** | <code>string</code> | Text to show on the confirm button. | <code>'Delete'</code> | 7.1.0 | Android, iOS |
|
|
880
|
+
| **`cancelButtonText`** | <code>string</code> | Text to show on the cancel button. | <code>'Cancel'</code> | 7.1.0 | Android, iOS |
|
|
881
|
+
|
|
882
|
+
|
|
883
|
+
#### CalendarEvent
|
|
884
|
+
|
|
885
|
+
| Prop | Type | Since | Platform |
|
|
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 |
|
|
908
|
+
|
|
909
|
+
|
|
910
|
+
#### ListEventsInRangeOptions
|
|
911
|
+
|
|
912
|
+
| Prop | Type | Description | Since |
|
|
913
|
+
| ---------- | ------------------- | ------------------------------ | ----- |
|
|
914
|
+
| **`from`** | <code>number</code> | The timestamp in milliseconds. | 7.1.0 |
|
|
915
|
+
| **`to`** | <code>number</code> | The timestamp in milliseconds. | 7.1.0 |
|
|
582
916
|
|
|
583
|
-
Represents a calendar object.
|
|
584
917
|
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
|
588
|
-
|
|
|
589
|
-
| **`
|
|
590
|
-
| **`
|
|
591
|
-
| **`
|
|
592
|
-
| **`
|
|
593
|
-
| **`
|
|
594
|
-
| **`
|
|
918
|
+
#### Calendar
|
|
919
|
+
|
|
920
|
+
| Prop | Type | Description | Since | Platform |
|
|
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 |
|
|
595
936
|
|
|
596
937
|
|
|
597
938
|
#### CalendarSource
|
|
598
939
|
|
|
599
|
-
|
|
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 |
|
|
600
945
|
|
|
601
|
-
| Prop | Type |
|
|
602
|
-
| ----------- | ----------------------------------------------------------------- |
|
|
603
|
-
| **`type`** | <code><a href="#calendarsourcetype">CalendarSourceType</a></code> |
|
|
604
|
-
| **`id`** | <code>string</code> |
|
|
605
|
-
| **`title`** | <code>string</code> |
|
|
606
946
|
|
|
947
|
+
#### SelectCalendarsWithPromptOptions
|
|
607
948
|
|
|
608
|
-
|
|
949
|
+
| Prop | Type | Description | Default | Since |
|
|
950
|
+
| ------------------ | ----------------------------------------------------------------------------------- | -------------------------- | ------------------------------------------------------ | ----- |
|
|
951
|
+
| **`displayStyle`** | <code><a href="#calendarchooserdisplaystyle">CalendarChooserDisplayStyle</a></code> | | <code>CalendarChooserDisplayStyle.ALL_CALENDARS</code> | 7.1.0 |
|
|
952
|
+
| **`multiple`** | <code>boolean</code> | Allow multiple selections. | <code>false</code> | 7.1.0 |
|
|
609
953
|
|
|
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
954
|
|
|
955
|
+
#### OpenCalendarOptions
|
|
616
956
|
|
|
617
|
-
|
|
957
|
+
| Prop | Type | Default | Since |
|
|
958
|
+
| ---------- | ------------------- | ----------------------- | ----- |
|
|
959
|
+
| **`date`** | <code>number</code> | <code>Date.now()</code> | 7.1.0 |
|
|
960
|
+
|
|
961
|
+
|
|
962
|
+
#### CreateCalendarOptions
|
|
963
|
+
|
|
964
|
+
| Prop | Type | Description | Since | Platform |
|
|
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 |
|
|
971
|
+
|
|
972
|
+
|
|
973
|
+
#### DeleteCalendarOptions
|
|
974
|
+
|
|
975
|
+
| Prop | Type | Since |
|
|
976
|
+
| -------- | ------------------- | ----- |
|
|
977
|
+
| **`id`** | <code>string</code> | 7.1.0 |
|
|
978
|
+
|
|
979
|
+
|
|
980
|
+
#### CreateReminderOptions
|
|
981
|
+
|
|
982
|
+
| Prop | Type | Since |
|
|
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 |
|
|
996
|
+
|
|
997
|
+
|
|
998
|
+
#### RecurrenceRule
|
|
999
|
+
|
|
1000
|
+
| Prop | Type | Description | Since |
|
|
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 |
|
|
1005
|
+
|
|
1006
|
+
|
|
1007
|
+
#### DeleteRemindersByIdResult
|
|
1008
|
+
|
|
1009
|
+
| Prop | Type | Since |
|
|
1010
|
+
| ------------- | --------------------- | ----- |
|
|
1011
|
+
| **`deleted`** | <code>string[]</code> | 7.1.0 |
|
|
1012
|
+
| **`failed`** | <code>string[]</code> | 7.1.0 |
|
|
618
1013
|
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
|
623
|
-
|
|
|
624
|
-
| **`
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
|
630
|
-
|
|
|
631
|
-
| **`
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
|
1014
|
+
|
|
1015
|
+
#### DeleteRemindersByIdOptions
|
|
1016
|
+
|
|
1017
|
+
| Prop | Type | Since |
|
|
1018
|
+
| --------- | --------------------- | ----- |
|
|
1019
|
+
| **`ids`** | <code>string[]</code> | 7.1.0 |
|
|
1020
|
+
|
|
1021
|
+
|
|
1022
|
+
#### DeleteReminderOptions
|
|
1023
|
+
|
|
1024
|
+
| Prop | Type | Since |
|
|
1025
|
+
| -------- | ------------------- | ----- |
|
|
1026
|
+
| **`id`** | <code>string</code> | 7.1.0 |
|
|
1027
|
+
|
|
1028
|
+
|
|
1029
|
+
#### ModifyReminderOptions
|
|
1030
|
+
|
|
1031
|
+
| Prop | Type | Since |
|
|
1032
|
+
| -------------------- | --------------------------------------------------------- | ----- |
|
|
1033
|
+
| **`id`** | <code>string</code> | 7.1.0 |
|
|
1034
|
+
| **`title`** | <code>string</code> | 7.1.0 |
|
|
1035
|
+
| **`listId`** | <code>string</code> | 7.1.0 |
|
|
1036
|
+
| **`priority`** | <code>number</code> | 7.1.0 |
|
|
1037
|
+
| **`isCompleted`** | <code>boolean</code> | 7.1.0 |
|
|
1038
|
+
| **`startDate`** | <code>number</code> | 7.1.0 |
|
|
1039
|
+
| **`dueDate`** | <code>number</code> | 7.1.0 |
|
|
1040
|
+
| **`completionDate`** | <code>number</code> | 7.1.0 |
|
|
1041
|
+
| **`notes`** | <code>string</code> | 7.1.0 |
|
|
1042
|
+
| **`url`** | <code>string</code> | 7.1.0 |
|
|
1043
|
+
| **`location`** | <code>string</code> | 7.1.0 |
|
|
1044
|
+
| **`recurrence`** | <code><a href="#recurrencerule">RecurrenceRule</a></code> | 7.1.0 |
|
|
1045
|
+
| **`alerts`** | <code>number[]</code> | 7.1.0 |
|
|
637
1046
|
|
|
638
1047
|
|
|
639
1048
|
#### Reminder
|
|
640
1049
|
|
|
641
|
-
|
|
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
|
+
|
|
1066
|
+
|
|
1067
|
+
#### GetReminderByIdOptions
|
|
642
1068
|
|
|
643
|
-
| Prop
|
|
644
|
-
|
|
|
645
|
-
| **`id`**
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
|
651
|
-
|
|
|
652
|
-
| **`
|
|
653
|
-
| **`startDate`** | <code>number</code> |
|
|
654
|
-
| **`dueDate`** | <code>number</code> |
|
|
655
|
-
| **`completionDate`** | <code>number</code> |
|
|
656
|
-
| **`recurrence`** | <code>ReminderRecurrenceRule[]</code> |
|
|
1069
|
+
| Prop | Type | Since |
|
|
1070
|
+
| -------- | ------------------- | ----- |
|
|
1071
|
+
| **`id`** | <code>string</code> | 7.1.0 |
|
|
1072
|
+
|
|
1073
|
+
|
|
1074
|
+
#### GetRemindersFromListsOptions
|
|
1075
|
+
|
|
1076
|
+
| Prop | Type | Since |
|
|
1077
|
+
| ------------- | --------------------- | ----- |
|
|
1078
|
+
| **`listIds`** | <code>string[]</code> | 7.1.0 |
|
|
657
1079
|
|
|
658
1080
|
|
|
659
1081
|
### Type Aliases
|
|
@@ -664,9 +1086,9 @@ Represents a reminder in a reminders list.
|
|
|
664
1086
|
<code>'prompt' | 'prompt-with-rationale' | 'granted' | 'denied'</code>
|
|
665
1087
|
|
|
666
1088
|
|
|
667
|
-
####
|
|
1089
|
+
#### CheckAllPermissionsResult
|
|
668
1090
|
|
|
669
|
-
<code><a href="#record">Record</a><
|
|
1091
|
+
<code><a href="#record">Record</a>< <a href="#calendarpermissionscope">CalendarPermissionScope</a>, <a href="#permissionstate">PermissionState</a> ></code>
|
|
670
1092
|
|
|
671
1093
|
|
|
672
1094
|
#### Record
|
|
@@ -676,6 +1098,16 @@ Construct a type with a set of properties K of type T
|
|
|
676
1098
|
<code>{
|
|
677
1099
|
[P in K]: T;
|
|
678
1100
|
}</code>
|
|
679
1101
|
|
|
680
1102
|
|
|
1103
|
+
#### RequestAllPermissionsResult
|
|
1104
|
+
|
|
1105
|
+
<code><a href="#checkallpermissionsresult">CheckAllPermissionsResult</a></code>
|
|
1106
|
+
|
|
1107
|
+
|
|
1108
|
+
#### EventEditAction
|
|
1109
|
+
|
|
1110
|
+
<code>"canceled" | "saved" | "deleted"</code>
|
|
1111
|
+
|
|
1112
|
+
|
|
681
1113
|
#### RemindersList
|
|
682
1114
|
|
|
683
1115
|
<code><a href="#calendar">Calendar</a></code>
|
|
@@ -684,82 +1116,136 @@ Construct a type with a set of properties K of type T
|
|
|
684
1116
|
### Enums
|
|
685
1117
|
|
|
686
1118
|
|
|
687
|
-
####
|
|
1119
|
+
#### CalendarPermissionScope
|
|
688
1120
|
|
|
689
|
-
| Members | Value | Description
|
|
690
|
-
| --------------------- | ----------------------------- |
|
|
691
|
-
| **`READ_CALENDAR`** | <code>"readCalendar"</code> |
|
|
692
|
-
| **`
|
|
693
|
-
| **`
|
|
694
|
-
| **`WRITE_REMINDERS`** | <code>"writeReminders"</code> |
|
|
1121
|
+
| Members | Value | Description | Since | Platform |
|
|
1122
|
+
| --------------------- | ----------------------------- | ------------------------------------------------------------ | ----- | ------------ |
|
|
1123
|
+
| **`READ_CALENDAR`** | <code>"readCalendar"</code> | Permission required for reading calendar events. | 7.1.0 | Android, iOS |
|
|
1124
|
+
| **`READ_REMINDERS`** | <code>"readReminders"</code> | Permission required for reading reminders. | 7.1.0 | iOS |
|
|
1125
|
+
| **`WRITE_CALENDAR`** | <code>"writeCalendar"</code> | Permission required for adding or modifying calendar events. | 7.1.0 | Android, iOS |
|
|
1126
|
+
| **`WRITE_REMINDERS`** | <code>"writeReminders"</code> | Permission required for adding or modifying reminders. | 7.1.0 | iOS |
|
|
695
1127
|
|
|
696
1128
|
|
|
697
|
-
####
|
|
1129
|
+
#### EventAvailability
|
|
698
1130
|
|
|
699
|
-
| Members
|
|
700
|
-
|
|
|
701
|
-
| **`
|
|
702
|
-
| **`
|
|
703
|
-
| **`
|
|
704
|
-
| **`
|
|
705
|
-
| **`
|
|
1131
|
+
| Members | Value | Since | Platform |
|
|
1132
|
+
| ------------------- | --------------- | ----- | ------------ |
|
|
1133
|
+
| **`NOT_SUPPORTED`** | <code>-1</code> | 7.1.0 | iOS |
|
|
1134
|
+
| **`BUSY`** | | 7.1.0 | Android, iOS |
|
|
1135
|
+
| **`FREE`** | | 7.1.0 | Android, iOS |
|
|
1136
|
+
| **`TENTATIVE`** | | 7.1.0 | Android, iOS |
|
|
1137
|
+
| **`UNAVAILABLE`** | | 7.1.0 | iOS |
|
|
706
1138
|
|
|
707
1139
|
|
|
708
|
-
####
|
|
1140
|
+
#### EventSpan
|
|
709
1141
|
|
|
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. |
|
|
1142
|
+
| Members | Since |
|
|
1143
|
+
| ---------------------------- | ----- |
|
|
1144
|
+
| **`THIS_EVENT`** | 7.1.0 |
|
|
1145
|
+
| **`THIS_AND_FUTURE_EVENTS`** | 7.1.0 |
|
|
718
1146
|
|
|
719
1147
|
|
|
720
|
-
####
|
|
1148
|
+
#### EventStatus
|
|
721
1149
|
|
|
722
|
-
| Members
|
|
723
|
-
|
|
|
724
|
-
| **`
|
|
725
|
-
| **`
|
|
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 |
|
|
726
1156
|
|
|
727
1157
|
|
|
728
|
-
####
|
|
1158
|
+
#### AttendeeRole
|
|
729
1159
|
|
|
730
|
-
| Members
|
|
731
|
-
|
|
|
732
|
-
| **`
|
|
733
|
-
| **`
|
|
1160
|
+
| Members | Value | Since | Platform |
|
|
1161
|
+
| --------------------- | ----------------------------- | ----- | ------------ |
|
|
1162
|
+
| **`UNKNOWN`** | <code>"unknown"</code> | 7.1.0 | Android, iOS |
|
|
1163
|
+
| **`REQUIRED`** | <code>"required"</code> | 7.1.0 | iOS |
|
|
1164
|
+
| **`OPTIONAL`** | <code>"optional"</code> | 7.1.0 | iOS |
|
|
1165
|
+
| **`CHAIR`** | <code>"chair"</code> | 7.1.0 | iOS |
|
|
1166
|
+
| **`NON_PARTICIPANT`** | <code>"nonParticipant"</code> | 7.1.0 | Android, iOS |
|
|
1167
|
+
| **`ATTENDEE`** | <code>"attendee"</code> | 7.1.0 | Android |
|
|
1168
|
+
| **`ORGANIZER`** | <code>"organizer"</code> | 7.1.0 | Android |
|
|
1169
|
+
| **`PERFORMER`** | <code>"performer"</code> | 7.1.0 | Android |
|
|
1170
|
+
| **`SPEAKER`** | <code>"speaker"</code> | 7.1.0 | Android |
|
|
734
1171
|
|
|
735
1172
|
|
|
736
|
-
####
|
|
1173
|
+
#### AttendeeStatus
|
|
737
1174
|
|
|
738
|
-
| Members
|
|
739
|
-
|
|
|
740
|
-
| **`
|
|
741
|
-
| **`
|
|
742
|
-
| **`
|
|
743
|
-
| **`
|
|
1175
|
+
| Members | Value | Since | Platform |
|
|
1176
|
+
| ---------------- | ------------------------ | ----- | ------------ |
|
|
1177
|
+
| **`NONE`** | <code>"none"</code> | 7.1.0 | Android |
|
|
1178
|
+
| **`ACCEPTED`** | <code>"accepted"</code> | 7.1.0 | Android, iOS |
|
|
1179
|
+
| **`DECLINED`** | <code>"declined"</code> | 7.1.0 | Android, iOS |
|
|
1180
|
+
| **`INVITED`** | <code>"invited"</code> | 7.1.0 | Android |
|
|
1181
|
+
| **`UNKNOWN`** | <code>"unknown"</code> | 7.1.0 | iOS |
|
|
1182
|
+
| **`PENDING`** | <code>"pending"</code> | 7.1.0 | iOS |
|
|
1183
|
+
| **`TENTATIVE`** | <code>"tentative"</code> | 7.1.0 | Android, iOS |
|
|
1184
|
+
| **`DELEGATED`** | <code>"delegated"</code> | 7.1.0 | iOS |
|
|
1185
|
+
| **`COMPLETED`** | <code>"completed"</code> | 7.1.0 | iOS |
|
|
1186
|
+
| **`IN_PROCESS`** | <code>"inProcess"</code> | 7.1.0 | iOS |
|
|
744
1187
|
|
|
745
1188
|
|
|
746
|
-
####
|
|
1189
|
+
#### AttendeeType
|
|
747
1190
|
|
|
748
|
-
| Members
|
|
749
|
-
|
|
|
750
|
-
| **`
|
|
751
|
-
| **`
|
|
1191
|
+
| Members | Value | Since | Platform |
|
|
1192
|
+
| -------------- | ----------------------- | ----- | ------------ |
|
|
1193
|
+
| **`UNKNOWN`** | <code>"unknown"</code> | 7.1.0 | Android, iOS |
|
|
1194
|
+
| **`PERSON`** | <code>"person"</code> | 7.1.0 | iOS |
|
|
1195
|
+
| **`ROOM`** | <code>"room"</code> | 7.1.0 | iOS |
|
|
1196
|
+
| **`RESOURCE`** | <code>"resource"</code> | 7.1.0 | Android, iOS |
|
|
1197
|
+
| **`GROUP`** | <code>"group"</code> | 7.1.0 | iOS |
|
|
1198
|
+
| **`REQUIRED`** | <code>"required"</code> | 7.1.0 | Android |
|
|
1199
|
+
| **`NONE`** | <code>"none"</code> | 7.1.0 | Android |
|
|
1200
|
+
| **`OPTIONAL`** | <code>"optional"</code> | 7.1.0 | Android |
|
|
752
1201
|
|
|
753
|
-
</docgen-api>
|
|
754
1202
|
|
|
755
|
-
|
|
1203
|
+
#### CalendarType
|
|
1204
|
+
|
|
1205
|
+
| Members | Since |
|
|
1206
|
+
| ------------------ | ----- |
|
|
1207
|
+
| **`LOCAL`** | 7.1.0 |
|
|
1208
|
+
| **`CAL_DAV`** | 7.1.0 |
|
|
1209
|
+
| **`EXCHANGE`** | 7.1.0 |
|
|
1210
|
+
| **`SUBSCRIPTION`** | 7.1.0 |
|
|
1211
|
+
| **`BIRTHDAY`** | 7.1.0 |
|
|
1212
|
+
|
|
1213
|
+
|
|
1214
|
+
#### CalendarSourceType
|
|
1215
|
+
|
|
1216
|
+
| Members | Since |
|
|
1217
|
+
| ---------------- | ----- |
|
|
1218
|
+
| **`LOCAL`** | 7.1.0 |
|
|
1219
|
+
| **`EXCHANGE`** | 7.1.0 |
|
|
1220
|
+
| **`CAL_DAV`** | 7.1.0 |
|
|
1221
|
+
| **`MOBILE_ME`** | 7.1.0 |
|
|
1222
|
+
| **`SUBSCRIBED`** | 7.1.0 |
|
|
1223
|
+
| **`BIRTHDAYS`** | 7.1.0 |
|
|
1224
|
+
|
|
1225
|
+
|
|
1226
|
+
#### CalendarChooserDisplayStyle
|
|
756
1227
|
|
|
757
|
-
|
|
1228
|
+
| Members | Since |
|
|
1229
|
+
| ----------------------------- | ----- |
|
|
1230
|
+
| **`ALL_CALENDARS`** | 0.2.0 |
|
|
1231
|
+
| **`WRITABLE_CALENDARS_ONLY`** | 0.2.0 |
|
|
1232
|
+
|
|
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
|
+
</docgen-api>
|
|
758
1244
|
|
|
759
1245
|
## Contributing
|
|
760
1246
|
|
|
761
|
-
See [CONTRIBUTING.md](CONTRIBUTING.md)
|
|
1247
|
+
See [CONTRIBUTING.md](CONTRIBUTING.md) for guidelines.
|
|
762
1248
|
|
|
763
1249
|
## License
|
|
764
1250
|
|
|
765
|
-
See [LICENSE
|
|
1251
|
+
This project is licensed under the **MIT License**. See [LICENSE](LICENSE) for details.
|