@ebarooni/capacitor-calendar 8.7.1 → 8.8.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.
Files changed (76) hide show
  1. package/README.md +191 -137
  2. package/android/src/main/java/dev/barooni/capacitor/calendar/models/results/CreateEventWithPromptResult.kt +1 -0
  3. package/android/src/main/java/dev/barooni/capacitor/calendar/models/results/GetDefaultCalendarResult.kt +1 -0
  4. package/android/src/main/java/dev/barooni/capacitor/calendar/models/results/ListCalendarsResult.kt +1 -0
  5. package/dist/docs.json +463 -81
  6. package/dist/esm/index.d.ts +5 -1
  7. package/dist/esm/index.js.map +1 -1
  8. package/dist/esm/schemas/enums/calendar-permission-scope.d.ts +1 -1
  9. package/dist/esm/schemas/enums/calendar-permission-scope.js +1 -1
  10. package/dist/esm/schemas/enums/calendar-permission-scope.js.map +1 -1
  11. package/dist/esm/schemas/interfaces/calendar.d.ts +10 -2
  12. package/dist/esm/schemas/interfaces/calendar.js.map +1 -1
  13. package/dist/esm/schemas/interfaces/create-calendar-options.d.ts +6 -4
  14. package/dist/esm/schemas/interfaces/create-calendar-options.js.map +1 -1
  15. package/dist/esm/schemas/interfaces/create-event-options.d.ts +10 -1
  16. package/dist/esm/schemas/interfaces/create-event-options.js.map +1 -1
  17. package/dist/esm/schemas/interfaces/create-event-result.d.ts +0 -2
  18. package/dist/esm/schemas/interfaces/create-event-result.js.map +1 -1
  19. package/dist/esm/schemas/interfaces/create-event-with-prompt-options.d.ts +36 -10
  20. package/dist/esm/schemas/interfaces/create-event-with-prompt-options.js.map +1 -1
  21. package/dist/esm/schemas/interfaces/create-event-with-prompt-result.d.ts +10 -1
  22. package/dist/esm/schemas/interfaces/create-event-with-prompt-result.js.map +1 -1
  23. package/dist/esm/schemas/interfaces/create-reminder-options.d.ts +2 -0
  24. package/dist/esm/schemas/interfaces/create-reminder-options.js.map +1 -1
  25. package/dist/esm/schemas/interfaces/create-reminders-list-options.d.ts +12 -7
  26. package/dist/esm/schemas/interfaces/create-reminders-list-options.js.map +1 -1
  27. package/dist/esm/schemas/interfaces/delete-reminder-with-prompt-result.d.ts +12 -0
  28. package/dist/esm/schemas/interfaces/delete-reminder-with-prompt-result.js +2 -0
  29. package/dist/esm/schemas/interfaces/delete-reminder-with-prompt-result.js.map +1 -0
  30. package/dist/esm/schemas/interfaces/event-recurrence-rule.d.ts +9 -9
  31. package/dist/esm/schemas/interfaces/event-recurrence-rule.js.map +1 -1
  32. package/dist/esm/schemas/interfaces/get-default-reminders-list-result.d.ts +13 -0
  33. package/dist/esm/schemas/interfaces/get-default-reminders-list-result.js +2 -0
  34. package/dist/esm/schemas/interfaces/get-default-reminders-list-result.js.map +1 -0
  35. package/dist/esm/schemas/interfaces/get-reminders-lists-result.d.ts +13 -0
  36. package/dist/esm/schemas/interfaces/get-reminders-lists-result.js +2 -0
  37. package/dist/esm/schemas/interfaces/get-reminders-lists-result.js.map +1 -0
  38. package/dist/esm/schemas/interfaces/modify-calendar-options.d.ts +6 -2
  39. package/dist/esm/schemas/interfaces/modify-calendar-options.js.map +1 -1
  40. package/dist/esm/schemas/interfaces/modify-event-with-prompt-options.d.ts +77 -2
  41. package/dist/esm/schemas/interfaces/modify-event-with-prompt-options.js.map +1 -1
  42. package/dist/esm/schemas/interfaces/modify-reminder-options.d.ts +3 -0
  43. package/dist/esm/schemas/interfaces/modify-reminder-options.js.map +1 -1
  44. package/dist/esm/schemas/interfaces/reminder.d.ts +2 -0
  45. package/dist/esm/schemas/interfaces/reminder.js.map +1 -1
  46. package/dist/esm/schemas/interfaces/reminders-list.d.ts +6 -0
  47. package/dist/esm/schemas/interfaces/reminders-list.js.map +1 -1
  48. package/dist/esm/schemas/interfaces/update-reminders-list-options.d.ts +8 -5
  49. package/dist/esm/schemas/interfaces/update-reminders-list-options.js.map +1 -1
  50. package/dist/esm/schemas/types/system-color-name.d.ts +6 -0
  51. package/dist/esm/schemas/types/system-color-name.js +2 -0
  52. package/dist/esm/schemas/types/system-color-name.js.map +1 -0
  53. package/dist/esm/sub-definitions/event-operations.d.ts +7 -10
  54. package/dist/esm/sub-definitions/event-operations.js.map +1 -1
  55. package/dist/esm/sub-definitions/reminders-access.d.ts +1 -1
  56. package/dist/esm/sub-definitions/reminders-access.js.map +1 -1
  57. package/dist/esm/sub-definitions/reminders-operations.d.ts +41 -16
  58. package/dist/esm/sub-definitions/reminders-operations.js.map +1 -1
  59. package/dist/esm/web/ics.d.ts +8 -2
  60. package/dist/esm/web/ics.js +64 -22
  61. package/dist/esm/web/ics.js.map +1 -1
  62. package/dist/esm/web.d.ts +8 -15
  63. package/dist/esm/web.js +100 -5
  64. package/dist/esm/web.js.map +1 -1
  65. package/dist/plugin.cjs.js +165 -29
  66. package/dist/plugin.cjs.js.map +1 -1
  67. package/dist/plugin.js +165 -29
  68. package/dist/plugin.js.map +1 -1
  69. package/ios/Plugin/Models/Inputs/CreateCalendarInput.swift +5 -2
  70. package/ios/Plugin/Models/Inputs/CreateRemindersListInput.swift +4 -18
  71. package/ios/Plugin/Models/Inputs/ModifyCalendarInput.swift +2 -2
  72. package/ios/Plugin/Models/Inputs/UpdateRemindersListInput.swift +4 -18
  73. package/ios/Plugin/Models/Results/CreateEventWithPromptResult.swift +1 -0
  74. package/ios/Plugin/Utils/ImplementationHelper.swift +44 -0
  75. package/ios/Plugin/Utils/UIColorFromHexExtension.swift +5 -0
  76. package/package.json +1 -1
package/README.md CHANGED
@@ -29,6 +29,7 @@
29
29
  - [Demo](#demo)
30
30
  - [Why this plugin?](#why-this-plugin)
31
31
  - [MCP Server](#mcp-server)
32
+ - [Capacitor Compatibility](#capacitor-compatibility)
32
33
  - [Installation](#installation)
33
34
  - [Setup](#setup)
34
35
  - [Quick Start](#quick-start)
@@ -45,7 +46,7 @@
45
46
  | Capability | iOS | Android | Web |
46
47
  | :------------------------------------------------ | :-: | :-----: | :-----------: |
47
48
  | Create, update, and delete events | ✅ | ✅ | Create only\* |
48
- | Native prompts to create, edit, and delete events | ✅ | ✅ | – |
49
+ | Native prompts to create, edit, and delete events | ✅ | ✅ | Create only\* |
49
50
  | List events in a date range | ✅ | ✅ | – |
50
51
  | Request calendar permissions | ✅ | ✅ | – |
51
52
  | List, create, modify, and delete calendars | ✅ | ✅ | – |
@@ -53,7 +54,7 @@
53
54
  | Calendar sources and a calendar picker prompt | ✅ | – | – |
54
55
  | Reminders and reminder lists | ✅ | – | – |
55
56
 
56
- \* On the web, `createEvent` returns a downloadable `.ics` file. It does not write to a device calendar. See [Create and download an event on the web](#create-and-download-an-event-on-the-web).
57
+ \* On the web, `createEvent` and `createEventWithPrompt` return a downloadable `.ics` file. They do not write to a device calendar. See [Create and download an event on the web](#create-and-download-an-event-on-the-web).
57
58
 
58
59
  ## Demo
59
60
 
@@ -61,6 +62,8 @@
61
62
  | :-----------------------------: | :---------------------------------: |
62
63
  | ![](./assets/demo/ios-demo.gif) | ![](./assets/demo/android-demo.gif) |
63
64
 
65
+ **Web:** Run the example app in a browser. Use **Create event** or **Create event with prompt** for `.ics` export. Unsupported actions are disabled.
66
+
64
67
  ## Why this plugin?
65
68
 
66
69
  - **Established.** Available since Capacitor 5, with years of real-world use behind it.
@@ -73,15 +76,34 @@
73
76
  `@ebarooni/capacitor-calendar` ships an official [MCP](https://modelcontextprotocol.io) server. It gives AI coding assistants accurate, grounded knowledge of the plugin.
74
77
 
75
78
  ```bash
76
- docker run --rm -d --name capacitor-calendar-mcp -p 8080:8080 ghcr.io/ebarooni/capacitor-calendar-mcp:1.1.0
79
+ docker run --rm -d --name capacitor-calendar-mcp -p 8080:8080 ghcr.io/ebarooni/capacitor-calendar-mcp:1.2.0
77
80
  ```
78
81
 
79
82
  See [`mcp/README.md`](mcp/README.md) for client configuration and full details.
80
83
 
84
+ ## Capacitor Compatibility
85
+
86
+ Match the npm tag to your Capacitor major. The `latest` and `latest-7` packages are intended to stay in feature parity.
87
+
88
+ | Capacitor | npm tag | Version |
89
+ | :-------- | :--------- | :------------------------------------------------------------------------------------------------------------------------- |
90
+ | `8.x` | `latest` | ![npm@latest](https://img.shields.io/npm/v/@ebarooni/capacitor-calendar/latest?label=npm%40latest&style=flat-square) |
91
+ | `7.x` | `latest-7` | ![npm@latest-7](https://img.shields.io/npm/v/@ebarooni/capacitor-calendar/latest-7?label=npm%40latest-7&style=flat-square) |
92
+
81
93
  ## Installation
82
94
 
95
+ **Capacitor 8:**
96
+
83
97
  ```bash
84
98
  npm install @ebarooni/capacitor-calendar
99
+ # or: npm install @ebarooni/capacitor-calendar@latest
100
+ npx cap sync
101
+ ```
102
+
103
+ **Capacitor 7:**
104
+
105
+ ```bash
106
+ npm install @ebarooni/capacitor-calendar@latest-7
85
107
  npx cap sync
86
108
  ```
87
109
 
@@ -164,10 +186,10 @@ console.log('Event created with ID:', id);
164
186
 
165
187
  ### Create and download an event on the web
166
188
 
167
- On Web, `createEvent` builds an `.ics` file. It does not write to a calendar store. Use `downloadIcsFile` to start a browser download:
189
+ On Web, `createEvent` and `createEventWithPrompt` build an `.ics` file. They do not write to a calendar store. Use `autoDownloadIcsFile` (defaults: `false` on `createEvent`, `true` on `createEventWithPrompt`) or `downloadIcsFile`. Permission APIs are unimplemented. For details, see MCP `docs://web-behavior` ([`mcp/README.md`](mcp/README.md)).
168
190
 
169
191
  ```typescript
170
- import { CapacitorCalendar, downloadIcsFile } from '@ebarooni/capacitor-calendar';
192
+ import { CapacitorCalendar } from '@ebarooni/capacitor-calendar';
171
193
 
172
194
  const startDate = Date.now() + 60 * 60 * 1000;
173
195
  const endDate = startDate + 60 * 60 * 1000;
@@ -177,16 +199,13 @@ const { ics } = await CapacitorCalendar.createEvent({
177
199
  startDate,
178
200
  endDate,
179
201
  icsFileName: 'team-standup.ics',
202
+ autoDownloadIcsFile: true,
180
203
  });
181
-
182
- if (ics) {
183
- await downloadIcsFile(ics);
184
- }
185
204
  ```
186
205
 
187
206
  ### Open the native event editor
188
207
 
189
- Use the system calendar UI to let users create or edit events:
208
+ Use the system calendar UI to let users create or edit events (on Web: confirm dialog + ICS):
190
209
 
191
210
  ```typescript
192
211
  await CapacitorCalendar.createEventWithPrompt({
@@ -198,7 +217,7 @@ await CapacitorCalendar.createEventWithPrompt({
198
217
  ```
199
218
 
200
219
  > [!NOTE]
201
- > On Android, this method always returns null. If you need the event ID, call `listEventsInRange(...)` afterward.
220
+ > On Android, this method always returns null for `id`. If you need the event ID, call `listEventsInRange(...)` afterward. On Web, cancel resolves with `ics: null`.
202
221
 
203
222
  ### Modify or delete an event
204
223
 
@@ -488,9 +507,10 @@ A grant covers both `readReminders` and `writeReminders`.
488
507
  createEventWithPrompt(options?: CreateEventWithPromptOptions | undefined) => Promise<CreateEventWithPromptResult>
489
508
  ```
490
509
 
491
- Opens the system calendar interface to create a new event.
492
- On Android always returns `null` for `id`.
493
- Fetch the events to find the ID of the newly created event.
510
+ Opens a calendar UI to create an event.
511
+ On Android and iOS, opens the system editor. On Android, `id` is always `null`.
512
+ On Web, shows a confirm dialog, then builds an `.ics` `File` when the user confirms.
513
+ See MCP `docs://web-behavior` for Web details.
494
514
 
495
515
  | Param | Type |
496
516
  | ------------- | ------------------------------------------------------------------------------------- |
@@ -500,7 +520,7 @@ Fetch the events to find the ID of the newly created event.
500
520
 
501
521
  **Since:** 0.1.0
502
522
 
503
- **Platform:** Android, iOS
523
+ **Platform:** Android, iOS, Web
504
524
 
505
525
  ---
506
526
 
@@ -533,9 +553,7 @@ createEvent(options: CreateEventOptions) => Promise<CreateEventResult>
533
553
 
534
554
  Creates an event in the calendar.
535
555
  On Android and iOS, inserts into the system calendar and returns its `id`.
536
- On Web, there is no system calendar store: builds an `.ics` `File` as `ics`.
537
- The app must download or open that file (for example with `downloadIcsFile(...)`);
538
- this method does not trigger a download.
556
+ On Web, builds an `.ics` `File` as `ics` (no calendar store). See MCP `docs://web-behavior`.
539
557
 
540
558
  | Param | Type |
541
559
  | ------------- | ----------------------------------------------------------------- |
@@ -875,12 +893,12 @@ Deletes a reminders list.
875
893
  ### fetchAllRemindersSources()
876
894
 
877
895
  ```typescript
878
- fetchAllRemindersSources() => Promise<{ result: CalendarSource[]; }>
896
+ fetchAllRemindersSources() => Promise<FetchAllCalendarSourcesResult>
879
897
  ```
880
898
 
881
899
  Retrieves a list of calendar sources.
882
900
 
883
- **Returns:** <code>Promise&lt;{ result: CalendarSource[]; }&gt;</code>
901
+ **Returns:** <code>Promise&lt;<a href="#fetchallcalendarsourcesresult">FetchAllCalendarSourcesResult</a>&gt;</code>
884
902
 
885
903
  **Since:** 6.6.0
886
904
 
@@ -905,12 +923,12 @@ Opens the reminders app.
905
923
  ### getDefaultRemindersList()
906
924
 
907
925
  ```typescript
908
- getDefaultRemindersList() => Promise<{ result: RemindersList | null; }>
926
+ getDefaultRemindersList() => Promise<GetDefaultRemindersListResult>
909
927
  ```
910
928
 
911
929
  Retrieves the default reminders list.
912
930
 
913
- **Returns:** <code>Promise&lt;{ result: <a href="#calendar">Calendar</a> | null; }&gt;</code>
931
+ **Returns:** <code>Promise&lt;<a href="#getdefaultreminderslistresult">GetDefaultRemindersListResult</a>&gt;</code>
914
932
 
915
933
  **Since:** 7.1.0
916
934
 
@@ -921,12 +939,12 @@ Retrieves the default reminders list.
921
939
  ### getRemindersLists()
922
940
 
923
941
  ```typescript
924
- getRemindersLists() => Promise<{ result: RemindersList[]; }>
942
+ getRemindersLists() => Promise<GetRemindersListsResult>
925
943
  ```
926
944
 
927
945
  Retrieves all available reminders lists.
928
946
 
929
- **Returns:** <code>Promise&lt;{ result: Calendar[]; }&gt;</code>
947
+ **Returns:** <code>Promise&lt;<a href="#getreminderslistsresult">GetRemindersListsResult</a>&gt;</code>
930
948
 
931
949
  **Since:** 7.1.0
932
950
 
@@ -1016,7 +1034,7 @@ Modifies a reminder.
1016
1034
  getReminderById(options: GetReminderByIdOptions) => Promise<GetReminderByIdResult>
1017
1035
  ```
1018
1036
 
1019
- Retrieve a reminder by ID.
1037
+ Retrieves a reminder by id.
1020
1038
 
1021
1039
  | Param | Type |
1022
1040
  | ------------- | ------------------------------------------------------------------------- |
@@ -1053,7 +1071,7 @@ Retrieves reminders from multiple lists.
1053
1071
  ### deleteReminderWithPrompt(...)
1054
1072
 
1055
1073
  ```typescript
1056
- deleteReminderWithPrompt(options: DeleteReminderWithPromptOptions) => Promise<{ deleted: boolean; }>
1074
+ deleteReminderWithPrompt(options: DeleteReminderWithPromptOptions) => Promise<DeleteReminderWithPromptResult>
1057
1075
  ```
1058
1076
 
1059
1077
  Opens a dialog to delete a reminder.
@@ -1062,7 +1080,7 @@ Opens a dialog to delete a reminder.
1062
1080
  | ------------- | ------------------------------------------------------------------------------------------- |
1063
1081
  | **`options`** | <code><a href="#deletereminderwithpromptoptions">DeleteReminderWithPromptOptions</a></code> |
1064
1082
 
1065
- **Returns:** <code>Promise&lt;{ deleted: boolean; }&gt;</code>
1083
+ **Returns:** <code>Promise&lt;<a href="#deletereminderwithpromptresult">DeleteReminderWithPromptResult</a>&gt;</code>
1066
1084
 
1067
1085
  **Since:** 7.2.0
1068
1086
 
@@ -1076,7 +1094,7 @@ Opens a dialog to delete a reminder.
1076
1094
  updateRemindersList(options: UpdateRemindersListOptions) => Promise<UpdateRemindersListResult>
1077
1095
  ```
1078
1096
 
1079
- Update a reminders list with options.
1097
+ Updates a reminders list.
1080
1098
 
1081
1099
  | Param | Type |
1082
1100
  | ------------- | --------------------------------------------------------------------------------- |
@@ -1110,40 +1128,44 @@ Options for {@link CalendarAccess#requestPermission}.
1110
1128
 
1111
1129
  #### CreateEventWithPromptResult
1112
1130
 
1113
- | Prop | Type | Description | Since | Platform |
1114
- | -------- | --------------------------- | -------------------------------------------------------------------------------------------------- | ----- | ------------ |
1115
- | **`id`** | <code>string \| null</code> | The identifier of the created event. Always `null` on Android. Present on iOS when the user saves. | 0.1.0 | Android, iOS |
1131
+ | Prop | Type | Description | Since | Platform |
1132
+ | --------- | --------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------- | ----- | ------------ |
1133
+ | **`ics`** | <code>File \| null</code> | An `.ics` file (`text/calendar`) with one `VEVENT`. Always `null` on Android and iOS. On Web, set when the user confirms; `null` when the user cancels. | 8.8.0 | Web |
1134
+ | **`id`** | <code>string \| null</code> | The identifier of the created event. Always `null` on Android and Web. Present on iOS when the user saves. | 0.1.0 | Android, iOS |
1116
1135
 
1117
1136
  #### CreateEventWithPromptOptions
1118
1137
 
1119
- | Prop | Type | Description | Since | Platform |
1120
- | ------------------ | ------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ----- | ------------ |
1121
- | **`alerts`** | <code>number[]</code> | Alert times in minutes relative to the event start. Use negative numbers for reminders before the start, and positive numbers for reminders after the start. On iOS only 2 alerts are supported. | 7.1.0 | iOS |
1122
- | **`availability`** | <code><a href="#eventavailability">EventAvailability</a></code> | | 7.1.0 | Android, iOS |
1123
- | **`calendarId`** | <code>string</code> | | 0.1.0 | iOS |
1124
- | **`description`** | <code>string</code> | | 7.1.0 | Android, iOS |
1125
- | **`endDate`** | <code>number</code> | | 0.1.0 | Android, iOS |
1126
- | **`invitees`** | <code>string[]</code> | An array of emails to invite. | 7.1.0 | Android |
1127
- | **`isAllDay`** | <code>boolean</code> | | 0.1.0 | Android, iOS |
1128
- | **`location`** | <code>string</code> | | 0.1.0 | Android, iOS |
1129
- | **`recurrence`** | <code><a href="#eventrecurrencerule">EventRecurrenceRule</a></code> | Rules for creating a recurring event. | 7.3.0 | Android, iOS |
1130
- | **`startDate`** | <code>number</code> | | 0.1.0 | Android, iOS |
1131
- | **`title`** | <code>string</code> | | 0.1.0 | Android, iOS |
1132
- | **`url`** | <code>string</code> | | 0.1.0 | iOS |
1138
+ | Prop | Type | Description | Default | Since | Platform |
1139
+ | ------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ----------------- | ----- | ----------------- |
1140
+ | **`alerts`** | <code>number[]</code> | Alert times in minutes relative to the event start. Use negative numbers for reminders before the start, and positive numbers for reminders after the start. On iOS only 2 alerts are supported. | | 7.1.0 | iOS, Web |
1141
+ | **`autoDownloadIcsFile`** | <code>boolean</code> | Start a browser download of the ICS file. | <code>true</code> | 8.8.0 | Web |
1142
+ | **`availability`** | <code><a href="#eventavailability">EventAvailability</a></code> | | | 7.1.0 | Android, iOS, Web |
1143
+ | **`calendarId`** | <code>string</code> | | | 0.1.0 | iOS |
1144
+ | **`description`** | <code>string</code> | | | 7.1.0 | Android, iOS, Web |
1145
+ | **`endDate`** | <code>number</code> | | | 0.1.0 | Android, iOS, Web |
1146
+ | **`icsFileName`** | <code>string</code> | Download filename for the `.ics` file. When omitted, a name is derived from `title` (fallback `event.ics`). If the value has no `.ics` extension, `.ics` is appended. | | 8.8.0 | Web |
1147
+ | **`invitees`** | <code>string[]</code> | An array of emails to invite. | | 7.1.0 | Android |
1148
+ | **`isAllDay`** | <code>boolean</code> | | | 0.1.0 | Android, iOS, Web |
1149
+ | **`location`** | <code>string</code> | | | 0.1.0 | Android, iOS, Web |
1150
+ | **`promptMessage`** | <code>string</code> | Confirm dialog message. When omitted, the dialog uses the event title and time summary. | | 8.8.0 | Web |
1151
+ | **`recurrence`** | <code><a href="#eventrecurrencerule">EventRecurrenceRule</a></code> | Rules for creating a recurring event. | | 7.3.0 | Android, iOS, Web |
1152
+ | **`startDate`** | <code>number</code> | | | 0.1.0 | Android, iOS, Web |
1153
+ | **`title`** | <code>string</code> | | | 0.1.0 | Android, iOS, Web |
1154
+ | **`url`** | <code>string</code> | | | 0.1.0 | iOS, Web |
1133
1155
 
1134
1156
  #### EventRecurrenceRule
1135
1157
 
1136
- | Prop | Type | Description | Default | Since | Platform |
1137
- | -------------------- | ------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------- | ----- | ------------ |
1138
- | **`byMonth`** | <code>number[]</code> | Limits a yearly recurrence to specific months of the year. The values should be between 1 and 12. | | 7.1.0 | Android, iOS |
1139
- | **`byMonthDay`** | <code>number[]</code> | Limits a monthly recurrence to specific days of the month. The values should be between 1 and 31. | | 7.1.0 | Android, iOS |
1140
- | **`byWeekDay`** | <code>number[]</code> | Limits a weekly recurrence to specific weekdays. The values should be between 1 and 7. 1 means Monday and 7 means Sunday. | | 7.3.0 | Android, iOS |
1141
- | **`count`** | <code>number</code> | The total number of occurrences. If set, the recurrence ends after this many occurrences. If `count` is provided, `end` is ignored. | | 7.3.0 | Android, iOS |
1142
- | **`daysOfTheYear`** | <code>number[]</code> | Limits a yearly recurrence to specific days of the year (1 to 366). | | 7.3.0 | iOS |
1143
- | **`end`** | <code>number</code> | End date of the recurrence series as a Unix timestamp in milliseconds. | | 7.1.0 | Android, iOS |
1144
- | **`frequency`** | <code><a href="#recurrencefrequency">RecurrenceFrequency</a></code> | How often the event repeats. | | 7.3.0 | Android, iOS |
1145
- | **`interval`** | <code>number</code> | The interval between recurrences. Use in combination with `frequency`. For example, a weekly event with an interval of 2, results in the event occurring every 2 weeks. | <code>1</code> | 7.3.0 | Android, iOS |
1146
- | **`weeksOfTheYear`** | <code>number[]</code> | Limits a yearly recurrence to specific ISO week numbers (1 to 53). | | 7.3.0 | iOS |
1158
+ | Prop | Type | Description | Default | Since | Platform |
1159
+ | -------------------- | ------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------- | ----- | ----------------- |
1160
+ | **`byMonth`** | <code>number[]</code> | Limits a yearly recurrence to specific months of the year. The values should be between 1 and 12. | | 7.1.0 | Android, iOS, Web |
1161
+ | **`byMonthDay`** | <code>number[]</code> | Limits a monthly recurrence to specific days of the month. The values should be between 1 and 31. | | 7.1.0 | Android, iOS, Web |
1162
+ | **`byWeekDay`** | <code>number[]</code> | Limits a weekly recurrence to specific weekdays. The values should be between 1 and 7. 1 means Monday and 7 means Sunday. | | 7.3.0 | Android, iOS, Web |
1163
+ | **`count`** | <code>number</code> | The total number of occurrences. If set, the recurrence ends after this many occurrences. If `count` is provided, `end` is ignored. | | 7.3.0 | Android, iOS, Web |
1164
+ | **`daysOfTheYear`** | <code>number[]</code> | Limits a yearly recurrence to specific days of the year (1 to 366). | | 7.3.0 | iOS, Web |
1165
+ | **`end`** | <code>number</code> | End date of the recurrence series as a Unix timestamp in milliseconds. | | 7.1.0 | Android, iOS, Web |
1166
+ | **`frequency`** | <code><a href="#recurrencefrequency">RecurrenceFrequency</a></code> | How often the event repeats. | | 7.3.0 | Android, iOS, Web |
1167
+ | **`interval`** | <code>number</code> | The interval between recurrences. Use in combination with `frequency`. For example, a weekly event with an interval of 2, results in the event occurring every 2 weeks. | <code>1</code> | 7.3.0 | Android, iOS, Web |
1168
+ | **`weeksOfTheYear`** | <code>number[]</code> | Limits a yearly recurrence to specific ISO week numbers (1 to 53). | | 7.3.0 | iOS, Web |
1147
1169
 
1148
1170
  #### ModifyEventWithPromptOptions
1149
1171
 
@@ -1154,6 +1176,7 @@ Options for {@link CalendarAccess#requestPermission}.
1154
1176
  | **`calendarId`** | <code>string</code> | | 0.1.0 | iOS |
1155
1177
  | **`description`** | <code>string</code> | | 7.1.0 | Android, iOS |
1156
1178
  | **`endDate`** | <code>number</code> | | 0.1.0 | Android, iOS |
1179
+ | **`id`** | <code>string</code> | The ID of the event to be modified. | 7.1.0 | Android, iOS |
1157
1180
  | **`invitees`** | <code>string[]</code> | An array of emails to invite. | 7.1.0 | Android |
1158
1181
  | **`isAllDay`** | <code>boolean</code> | | 0.1.0 | Android, iOS |
1159
1182
  | **`location`** | <code>string</code> | | 0.1.0 | Android, iOS |
@@ -1161,36 +1184,36 @@ Options for {@link CalendarAccess#requestPermission}.
1161
1184
  | **`startDate`** | <code>number</code> | | 0.1.0 | Android, iOS |
1162
1185
  | **`title`** | <code>string</code> | | 0.1.0 | Android, iOS |
1163
1186
  | **`url`** | <code>string</code> | | 0.1.0 | iOS |
1164
- | **`id`** | <code>string</code> | The ID of the event to be modified. | 7.1.0 | Android, iOS |
1165
1187
 
1166
1188
  #### CreateEventResult
1167
1189
 
1168
- | Prop | Type | Description | Since | Platform |
1169
- | --------- | --------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ----- | ------------ |
1170
- | **`ics`** | <code>File \| null</code> | An `.ics` file (`text/calendar`) with one `VEVENT`. Always `null` on Android and iOS. On Web, the plugin does not write to a calendar store or start a download; use `downloadIcsFile(...)` or pass the `File` to another API. | 8.5.0 | Web |
1171
- | **`id`** | <code>string \| null</code> | The identifier of the created event. Always `null` on Web. Present on Android and iOS after a successful create. | 0.4.0 | Android, iOS |
1190
+ | Prop | Type | Description | Since | Platform |
1191
+ | --------- | --------------------------- | ---------------------------------------------------------------------------------------------------------------- | ----- | ------------ |
1192
+ | **`ics`** | <code>File \| null</code> | An `.ics` file (`text/calendar`) with one `VEVENT`. Always `null` on Android and iOS. | 8.5.0 | Web |
1193
+ | **`id`** | <code>string \| null</code> | The identifier of the created event. Always `null` on Web. Present on Android and iOS after a successful create. | 0.4.0 | Android, iOS |
1172
1194
 
1173
1195
  #### CreateEventOptions
1174
1196
 
1175
- | Prop | Type | Description | Default | Since | Platform |
1176
- | ------------------ | ------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------- | ----- | ----------------- |
1177
- | **`alerts`** | <code>number[]</code> | Alert times in minutes relative to the event start. Use negative numbers for alerts before the start, and positive numbers for alerts after the start. | | 7.1.0 | Android, iOS, Web |
1178
- | **`attendees`** | <code>EventGuest[]</code> | The event guests. | | 7.1.0 | Android, Web |
1179
- | **`availability`** | <code><a href="#eventavailability">EventAvailability</a></code> | | | 7.1.0 | Android, iOS, Web |
1180
- | **`calendarId`** | <code>string</code> | | | 0.1.0 | Android, iOS |
1181
- | **`color`** | <code>string</code> | | | 7.1.0 | Android |
1182
- | **`commit`** | <code>boolean</code> | Whether to save immediately (`true`) or batch changes for later (`false`). | <code>true</code> | 7.1.0 | iOS |
1183
- | **`description`** | <code>string</code> | | | 7.1.0 | Android, iOS, Web |
1184
- | **`duration`** | <code>string</code> | Duration of the event in RFC2445 format. | | 7.1.0 | Android |
1185
- | **`endDate`** | <code>number</code> | | | 0.1.0 | Android, iOS, Web |
1186
- | **`icsFileName`** | <code>string</code> | Download filename for the `.ics` file. When omitted, a name is derived from `title` (fallback `event.ics`). If the value has no `.ics` extension, `.ics` is appended. | | 8.5.0 | Web |
1187
- | **`isAllDay`** | <code>boolean</code> | | | 0.1.0 | Android, iOS, Web |
1188
- | **`location`** | <code>string</code> | | | 0.1.0 | Android, iOS, Web |
1189
- | **`organizer`** | <code>string</code> | Email of the event organizer. | | 7.1.0 | Android, Web |
1190
- | **`recurrence`** | <code><a href="#eventrecurrencerule">EventRecurrenceRule</a></code> | Rules for creating a recurring event. | | 7.3.0 | Android, iOS, Web |
1191
- | **`startDate`** | <code>number</code> | | | 0.1.0 | Android, iOS, Web |
1192
- | **`title`** | <code>string</code> | | | 0.4.0 | Android, iOS, Web |
1193
- | **`url`** | <code>string</code> | | | 0.1.0 | iOS, Web |
1197
+ | Prop | Type | Description | Default | Since | Platform |
1198
+ | ------------------------- | ------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------ | ----- | ----------------- |
1199
+ | **`alerts`** | <code>number[]</code> | Alert times in minutes relative to the event start. Use negative numbers for alerts before the start, and positive numbers for alerts after the start. | | 7.1.0 | Android, iOS, Web |
1200
+ | **`attendees`** | <code>EventGuest[]</code> | The event guests. | | 7.1.0 | Android, Web |
1201
+ | **`autoDownloadIcsFile`** | <code>boolean</code> | Start a browser download of the ICS file. | <code>false</code> | 8.8.0 | Web |
1202
+ | **`availability`** | <code><a href="#eventavailability">EventAvailability</a></code> | | | 7.1.0 | Android, iOS, Web |
1203
+ | **`calendarId`** | <code>string</code> | | | 0.1.0 | Android, iOS |
1204
+ | **`color`** | <code>string</code> | | | 7.1.0 | Android |
1205
+ | **`commit`** | <code>boolean</code> | Whether to save immediately (`true`) or batch changes for later (`false`). | <code>true</code> | 7.1.0 | iOS |
1206
+ | **`description`** | <code>string</code> | | | 7.1.0 | Android, iOS, Web |
1207
+ | **`duration`** | <code>string</code> | Duration of the event in RFC2445 format. On Web, used when `endDate` is omitted; `endDate` wins if both are set. | | 7.1.0 | Android, Web |
1208
+ | **`endDate`** | <code>number</code> | | | 0.1.0 | Android, iOS, Web |
1209
+ | **`icsFileName`** | <code>string</code> | Download filename for the `.ics` file. When omitted, a name is derived from `title` (fallback `event.ics`). If the value has no `.ics` extension, `.ics` is appended. | | 8.5.0 | Web |
1210
+ | **`isAllDay`** | <code>boolean</code> | | | 0.1.0 | Android, iOS, Web |
1211
+ | **`location`** | <code>string</code> | | | 0.1.0 | Android, iOS, Web |
1212
+ | **`organizer`** | <code>string</code> | Email of the event organizer. | | 7.1.0 | Android, Web |
1213
+ | **`recurrence`** | <code><a href="#eventrecurrencerule">EventRecurrenceRule</a></code> | Rules for creating a recurring event. | | 7.3.0 | Android, iOS, Web |
1214
+ | **`startDate`** | <code>number</code> | | | 0.1.0 | Android, iOS, Web |
1215
+ | **`title`** | <code>string</code> | | | 0.4.0 | Android, iOS, Web |
1216
+ | **`url`** | <code>string</code> | | | 0.1.0 | iOS, Web |
1194
1217
 
1195
1218
  #### EventGuest
1196
1219
 
@@ -1309,22 +1332,23 @@ Options for {@link CalendarAccess#requestPermission}.
1309
1332
 
1310
1333
  #### Calendar
1311
1334
 
1312
- | Prop | Type | Description | Since | Platform |
1313
- | -------------------------------- | ----------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----- | ------------ |
1314
- | **`id`** | <code>string</code> | | 7.1.0 | Android, iOS |
1315
- | **`title`** | <code>string \| null</code> | Display title of the calendar. May be `null` when the platform does not provide a title. | 7.1.0 | Android, iOS |
1316
- | **`internalTitle`** | <code>string \| null</code> | Internal name of the calendar (`CalendarContract.Calendars.NAME`). | 7.1.0 | Android |
1317
- | **`color`** | <code>string \| null</code> | <a href="#calendar">Calendar</a> color as a hex string. Format: `#RRGGBB` when opaque; `#RRGGBBAA` when alpha is below fully opaque. May be `null` when the platform does not provide a color. | 7.1.0 | Android, iOS |
1318
- | **`isImmutable`** | <code>boolean \| null</code> | | 7.1.0 | iOS |
1319
- | **`allowsContentModifications`** | <code>boolean \| null</code> | | 7.1.0 | iOS |
1320
- | **`type`** | <code><a href="#calendartype">CalendarType</a> \| null</code> | | 7.1.0 | iOS |
1321
- | **`isSubscribed`** | <code>boolean \| null</code> | | 7.1.0 | iOS |
1322
- | **`source`** | <code><a href="#calendarsource">CalendarSource</a> \| null</code> | | 7.1.0 | iOS |
1323
- | **`visible`** | <code>boolean \| null</code> | Indicates if the events from this calendar should be shown. | 7.1.0 | Android |
1324
- | **`accountName`** | <code>string \| null</code> | The account under which the calendar is registered. | 7.1.0 | Android |
1325
- | **`ownerAccount`** | <code>string \| null</code> | The owner of the calendar. | 7.1.0 | Android |
1326
- | **`maxReminders`** | <code>number \| null</code> | Maximum number of reminders allowed per event. | 7.1.0 | Android |
1327
- | **`location`** | <code>string \| null</code> | | 7.1.0 | Android |
1335
+ | Prop | Type | Description | Since | Platform |
1336
+ | -------------------------------- | ------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- | ----- | ------------ |
1337
+ | **`id`** | <code>string</code> | | 7.1.0 | Android, iOS |
1338
+ | **`title`** | <code>string \| null</code> | Display title of the calendar. May be `null` when the platform does not provide a title. | 7.1.0 | Android, iOS |
1339
+ | **`internalTitle`** | <code>string \| null</code> | Internal name of the calendar (`CalendarContract.Calendars.NAME`). | 7.1.0 | Android |
1340
+ | **`color`** | <code>string \| null</code> | Hex color string, or null when none is available. Format: `#RRGGBB` when opaque; `#RRGGBBAA` when alpha is below fully opaque. | 7.1.0 | Android, iOS |
1341
+ | **`colorName`** | <code><a href="#systemcolorname">SystemColorName</a> \| null</code> | Named color if the stored color matches one of the system colors; otherwise null. May be null in dark mode or for custom hex. Always null on Android. | 8.8.0 | Android, iOS |
1342
+ | **`isImmutable`** | <code>boolean \| null</code> | | 7.1.0 | iOS |
1343
+ | **`allowsContentModifications`** | <code>boolean \| null</code> | | 7.1.0 | iOS |
1344
+ | **`type`** | <code><a href="#calendartype">CalendarType</a> \| null</code> | | 7.1.0 | iOS |
1345
+ | **`isSubscribed`** | <code>boolean \| null</code> | | 7.1.0 | iOS |
1346
+ | **`source`** | <code><a href="#calendarsource">CalendarSource</a> \| null</code> | | 7.1.0 | iOS |
1347
+ | **`visible`** | <code>boolean \| null</code> | Indicates if the events from this calendar should be shown. | 7.1.0 | Android |
1348
+ | **`accountName`** | <code>string \| null</code> | The account under which the calendar is registered. | 7.1.0 | Android |
1349
+ | **`ownerAccount`** | <code>string \| null</code> | The owner of the calendar. | 7.1.0 | Android |
1350
+ | **`maxReminders`** | <code>number \| null</code> | Maximum number of reminders allowed per event. | 7.1.0 | Android |
1351
+ | **`location`** | <code>string \| null</code> | | 7.1.0 | Android |
1328
1352
 
1329
1353
  #### CalendarSource
1330
1354
 
@@ -1373,13 +1397,13 @@ Options for {@link CalendarAccess#requestPermission}.
1373
1397
 
1374
1398
  #### CreateCalendarOptions
1375
1399
 
1376
- | Prop | Type | Description | Default | Since | Platform |
1377
- | ------------------ | ------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------- | ----- | ------------ |
1378
- | **`title`** | <code>string</code> | | | 5.2.0 | Android, iOS |
1379
- | **`color`** | <code>string</code> | The color of the calendar as `#RRGGBB` or `#RRGGBBAA`. When omitted, Android and iOS use `#007AFF` (light-mode iOS system blue). | <code>#007AFF</code> | 5.2.0 | Android, iOS |
1380
- | **`sourceId`** | <code>string</code> | The EventKit source (account) where the calendar should be created. If provided, it must match an existing source from `fetchAllCalendarSources()`. If omitted, iCloud is used when available, otherwise the local source. | | 5.2.0 | iOS |
1381
- | **`accountName`** | <code>string</code> | The account under which the calendar is registered. Required on Android. Typically an email address. | | 7.1.0 | Android |
1382
- | **`ownerAccount`** | <code>string</code> | The owner of the calendar. Required on Android. Typically an email address. | | 7.1.0 | Android |
1400
+ | Prop | Type | Description | Default | Since | Platform |
1401
+ | ------------------ | --------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------- | ----- | ------------ |
1402
+ | **`title`** | <code>string</code> | | | 5.2.0 | Android, iOS |
1403
+ | **`color`** | <code><a href="#systemcolorname">SystemColorName</a> \| `#${string}`</code> | Named color (`blue`, …) or hex `#RRGGBB` / `#RRGGBBAA`. When omitted, Android and iOS use `#007AFF`. On Android, only hex is accepted; named colors reject with `Invalid color format.` | <code>#007AFF</code> | 5.2.0 | Android, iOS |
1404
+ | **`sourceId`** | <code>string</code> | The EventKit source (account) where the calendar should be created. If provided, it must match an existing source from `fetchAllCalendarSources()`. If omitted, iCloud is used when available, otherwise the local source. | | 5.2.0 | iOS |
1405
+ | **`accountName`** | <code>string</code> | The account under which the calendar is registered. Required on Android. Typically an email address. | | 7.1.0 | Android |
1406
+ | **`ownerAccount`** | <code>string</code> | The owner of the calendar. Required on Android. Typically an email address. | | 7.1.0 | Android |
1383
1407
 
1384
1408
  #### DeleteCalendarOptions
1385
1409
 
@@ -1389,11 +1413,11 @@ Options for {@link CalendarAccess#requestPermission}.
1389
1413
 
1390
1414
  #### ModifyCalendarOptions
1391
1415
 
1392
- | Prop | Type | Description | Since | Platform |
1393
- | ----------- | ------------------- | ------------------------------------------------------------------------------------------------------------------------------------- | ----- | ------------ |
1394
- | **`id`** | <code>string</code> | | 7.2.0 | Android, iOS |
1395
- | **`title`** | <code>string</code> | Display title of the calendar. On Android this updates both `CALENDAR_DISPLAY_NAME` (`title`) and `Calendars.NAME` (`internalTitle`). | 7.2.0 | Android, iOS |
1396
- | **`color`** | <code>string</code> | The color of the calendar as `#RRGGBB` or `#RRGGBBAA`. | 7.2.0 | Android, iOS |
1416
+ | Prop | Type | Description | Since | Platform |
1417
+ | ----------- | --------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----- | ------------ |
1418
+ | **`id`** | <code>string</code> | | 7.2.0 | Android, iOS |
1419
+ | **`title`** | <code>string</code> | Display title of the calendar. On Android this updates both `CALENDAR_DISPLAY_NAME` (`title`) and `Calendars.NAME` (`internalTitle`). | 7.2.0 | Android, iOS |
1420
+ | **`color`** | <code><a href="#systemcolorname">SystemColorName</a> \| `#${string}`</code> | Named color (`blue`, …) or hex `#RRGGBB` / `#RRGGBBAA`. If omitted, the color is left unchanged. On Android, only hex is accepted; named colors reject with `Invalid color format.` | 7.2.0 | Android, iOS |
1397
1421
 
1398
1422
  #### CreateRemindersListResult
1399
1423
 
@@ -1403,12 +1427,12 @@ Options for {@link CalendarAccess#requestPermission}.
1403
1427
 
1404
1428
  #### CreateRemindersListOptions
1405
1429
 
1406
- | Prop | Type | Description | Default | Since | Platform |
1407
- | -------------- | -------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------- | ----- | -------- |
1408
- | **`color`** | <code>'blue' \| 'brown' \| 'gray' \| 'green' \| 'indigo' \| 'orange' \| 'pink' \| 'purple' \| 'red' \| 'teal' \| 'yellow'</code> | The color of the list. | <code>'blue'</code> | 8.1.0 | iOS |
1409
- | **`commit`** | <code>boolean</code> | Whether to save the list to the event store immediately. Pass `false` to batch multiple changes and commit them together using `CapacitorCalendar.commit()`, which is more efficient than committing each save individually. | <code>true</code> | 8.1.0 | iOS |
1410
- | **`sourceId`** | <code>string</code> | The EKSource identifier (account) where the list should be created. If left undefined, iCloud will be used if available, otherwise falls back to local. | | 8.1.0 | iOS |
1411
- | **`title`** | <code>string</code> | The title of the list. | | 8.1.0 | iOS |
1430
+ | Prop | Type | Description | Default | Since | Platform |
1431
+ | -------------- | --------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------- | ----- | -------- |
1432
+ | **`color`** | <code><a href="#systemcolorname">SystemColorName</a> \| `#${string}`</code> | Named color (`blue`, …) or hex `#RRGGBB` / `#RRGGBBAA`. When omitted, the platform chooses the list color. | | 8.1.0 | iOS |
1433
+ | **`commit`** | <code>boolean</code> | Whether to save the list immediately. Pass `false` to batch changes and commit them with `CapacitorCalendar.commit()`. | <code>true</code> | 8.1.0 | iOS |
1434
+ | **`sourceId`** | <code>string</code> | The calendar source (account) where the list should be created. If provided, it should match a source from `fetchAllCalendarSources()`. If omitted or unmatched, iCloud is used when available, otherwise the local source. | | 8.1.0 | iOS |
1435
+ | **`title`** | <code>string</code> | The title of the list. | | 8.1.0 | iOS |
1412
1436
 
1413
1437
  #### DeleteRemindersListOptions
1414
1438
 
@@ -1417,6 +1441,18 @@ Options for {@link CalendarAccess#requestPermission}.
1417
1441
  | **`commit`** | <code>boolean</code> | Whether to save the deletion to the event store immediately. Pass `false` to batch multiple changes and commit them together using `CapacitorCalendar.commit()`, which is more efficient than committing each save individually. | <code>true</code> | 8.2.0 | iOS |
1418
1442
  | **`id`** | <code>string</code> | Identifier of the reminders list to delete. | | 8.2.0 | iOS |
1419
1443
 
1444
+ #### GetDefaultRemindersListResult
1445
+
1446
+ | Prop | Type | Description | Since | Platform |
1447
+ | ------------ | ----------------------------------------------------- | ------------------------------------------------------- | ----- | -------- |
1448
+ | **`result`** | <code><a href="#calendar">Calendar</a> \| null</code> | The default reminders list, or `null` when none exists. | 7.1.0 | iOS |
1449
+
1450
+ #### GetRemindersListsResult
1451
+
1452
+ | Prop | Type | Description | Since | Platform |
1453
+ | ------------ | ----------------------- | ------------------------------ | ----- | -------- |
1454
+ | **`result`** | <code>Calendar[]</code> | All available reminders lists. | 7.1.0 | iOS |
1455
+
1420
1456
  #### CreateReminderResult
1421
1457
 
1422
1458
  | Prop | Type | Description | Since | Platform |
@@ -1435,7 +1471,7 @@ Options for {@link CalendarAccess#requestPermission}.
1435
1471
  | **`listId`** | <code>string</code> | | | 7.1.0 | |
1436
1472
  | **`location`** | <code>string</code> | | | 7.1.0 | |
1437
1473
  | **`notes`** | <code>string</code> | | | 7.1.0 | |
1438
- | **`priority`** | <code>number</code> | | | 7.1.0 | |
1474
+ | **`priority`** | <code>number</code> | Priority: `0` none, `1` highest through `9` lowest. | | 7.1.0 | |
1439
1475
  | **`recurrence`** | <code><a href="#recurrencerule">RecurrenceRule</a></code> | | | 7.1.0 | iOS |
1440
1476
  | **`startDate`** | <code>number</code> | When the reminder starts, in milliseconds since the epoch. Relative `alerts` use this date. | | 7.1.0 | |
1441
1477
  | **`title`** | <code>string</code> | | | 7.1.0 | |
@@ -1482,7 +1518,7 @@ Options for {@link CalendarAccess#requestPermission}.
1482
1518
  | **`listId`** | <code>string</code> | | | 7.1.0 | |
1483
1519
  | **`location`** | <code>string \| null</code> | Location for the reminder. Omit or pass `undefined` to leave the existing value unchanged. Since 8.7.0, pass `null` to clear. | | 7.1.0 | |
1484
1520
  | **`notes`** | <code>string \| null</code> | Notes for the reminder. Omit or pass `undefined` to leave the existing value unchanged. Since 8.7.0, pass `null` to clear. | | 7.1.0 | |
1485
- | **`priority`** | <code>number</code> | | | 7.1.0 | |
1521
+ | **`priority`** | <code>number</code> | Priority: `0` none, `1` highest through `9` lowest. Omit to leave the existing value unchanged. | | 7.1.0 | |
1486
1522
  | **`recurrence`** | <code><a href="#recurrencerule">RecurrenceRule</a> \| null</code> | Recurrence rule for the reminder. Omit or pass `undefined` to leave the existing value unchanged. Since 8.7.0, pass `null` to clear. | | 7.1.0 | iOS |
1487
1523
  | **`startDate`** | <code>number \| null</code> | When the reminder starts, in milliseconds since the epoch. Relative `alerts` use this date. Omit or pass `undefined` to leave the existing value unchanged. Since 8.7.0, pass `null` to clear. If a due date remains, clearing start sets start to the due date (it does not keep the previous start). Pass `dueDate: null` as well to remove scheduling. | | 7.1.0 | |
1488
1524
  | **`title`** | <code>string</code> | | | 7.1.0 | |
@@ -1496,21 +1532,21 @@ Options for {@link CalendarAccess#requestPermission}.
1496
1532
 
1497
1533
  #### Reminder
1498
1534
 
1499
- | Prop | Type | Since | Platform |
1500
- | -------------------- | ----------------------------- | ----- | -------- |
1501
- | **`id`** | <code>string</code> | 7.1.0 | |
1502
- | **`title`** | <code>string \| null</code> | 7.1.0 | |
1503
- | **`listId`** | <code>string \| null</code> | 7.1.0 | |
1504
- | **`isCompleted`** | <code>boolean</code> | 7.1.0 | |
1505
- | **`priority`** | <code>number \| null</code> | 7.1.0 | |
1506
- | **`notes`** | <code>string \| null</code> | 7.1.0 | |
1507
- | **`location`** | <code>string \| null</code> | 7.1.0 | |
1508
- | **`url`** | <code>string \| null</code> | 7.1.0 | |
1509
- | **`startDate`** | <code>number \| null</code> | 7.1.0 | |
1510
- | **`dueDate`** | <code>number \| null</code> | 7.1.0 | |
1511
- | **`completionDate`** | <code>number \| null</code> | 7.1.0 | |
1512
- | **`recurrence`** | <code>RecurrenceRule[]</code> | 7.1.0 | iOS |
1513
- | **`alerts`** | <code>number[]</code> | 7.1.0 | |
1535
+ | Prop | Type | Description | Since | Platform |
1536
+ | -------------------- | ----------------------------- | --------------------------------------------------- | ----- | -------- |
1537
+ | **`id`** | <code>string</code> | | 7.1.0 | |
1538
+ | **`title`** | <code>string \| null</code> | | 7.1.0 | |
1539
+ | **`listId`** | <code>string \| null</code> | | 7.1.0 | |
1540
+ | **`isCompleted`** | <code>boolean</code> | | 7.1.0 | |
1541
+ | **`priority`** | <code>number \| null</code> | Priority: `0` none, `1` highest through `9` lowest. | 7.1.0 | |
1542
+ | **`notes`** | <code>string \| null</code> | | 7.1.0 | |
1543
+ | **`location`** | <code>string \| null</code> | | 7.1.0 | |
1544
+ | **`url`** | <code>string \| null</code> | | 7.1.0 | |
1545
+ | **`startDate`** | <code>number \| null</code> | | 7.1.0 | |
1546
+ | **`dueDate`** | <code>number \| null</code> | | 7.1.0 | |
1547
+ | **`completionDate`** | <code>number \| null</code> | | 7.1.0 | |
1548
+ | **`recurrence`** | <code>RecurrenceRule[]</code> | | 7.1.0 | iOS |
1549
+ | **`alerts`** | <code>number[]</code> | | 7.1.0 | |
1514
1550
 
1515
1551
  #### GetReminderByIdOptions
1516
1552
 
@@ -1530,6 +1566,12 @@ Options for {@link CalendarAccess#requestPermission}.
1530
1566
  | ------------- | --------------------- | ----- |
1531
1567
  | **`listIds`** | <code>string[]</code> | 7.1.0 |
1532
1568
 
1569
+ #### DeleteReminderWithPromptResult
1570
+
1571
+ | Prop | Type | Description | Since | Platform |
1572
+ | ------------- | -------------------- | ------------------------------------ | ----- | -------- |
1573
+ | **`deleted`** | <code>boolean</code> | Whether the user confirmed deletion. | 7.2.0 | iOS |
1574
+
1533
1575
  #### DeleteReminderWithPromptOptions
1534
1576
 
1535
1577
  | Prop | Type | Description | Default | Since |
@@ -1548,12 +1590,12 @@ Options for {@link CalendarAccess#requestPermission}.
1548
1590
 
1549
1591
  #### UpdateRemindersListOptions
1550
1592
 
1551
- | Prop | Type | Description | Default | Since | Platform |
1552
- | ------------ | -------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------- | ----- | -------- |
1553
- | **`color`** | <code>'blue' \| 'brown' \| 'gray' \| 'green' \| 'indigo' \| 'orange' \| 'pink' \| 'purple' \| 'red' \| 'teal' \| 'yellow'</code> | The new color of the list. If omitted, the color is left unchanged. | | 8.1.0 | iOS |
1554
- | **`commit`** | <code>boolean</code> | Whether to save the update to the event store immediately. Pass `false` to batch multiple changes and commit them together using `eventStore.commit()`, which is more efficient than committing each save individually. | <code>true</code> | 8.2.0 | iOS |
1555
- | **`id`** | <code>string</code> | The identifier of the list to update. | | 8.2.0 | iOS |
1556
- | **`title`** | <code>string</code> | The new title of the list. If omitted, the title is left unchanged. | | 8.2.0 | iOS |
1593
+ | Prop | Type | Description | Default | Since | Platform |
1594
+ | ------------ | --------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------ | ----------------- | ----- | -------- |
1595
+ | **`color`** | <code><a href="#systemcolorname">SystemColorName</a> \| `#${string}`</code> | Named color (`blue`, …) or hex `#RRGGBB` / `#RRGGBBAA`. If omitted, the color is left unchanged. | | 8.2.0 | iOS |
1596
+ | **`commit`** | <code>boolean</code> | Whether to save the update immediately. Pass `false` to batch changes and commit them with `CapacitorCalendar.commit()`. | <code>true</code> | 8.2.0 | iOS |
1597
+ | **`id`** | <code>string</code> | The identifier of the list to update. | | 8.2.0 | iOS |
1598
+ | **`title`** | <code>string</code> | The new title of the list. If omitted, the title is left unchanged. | | 8.2.0 | iOS |
1557
1599
 
1558
1600
  ### Type Aliases
1559
1601
 
@@ -1590,8 +1632,20 @@ Construct a type with a set of properties K of type T
1590
1632
 
1591
1633
  <code>'canceled' | 'saved' | 'deleted'</code>
1592
1634
 
1635
+ #### SystemColorName
1636
+
1637
+ Named iOS system color.
1638
+
1639
+ <code>'blue' | 'brown' | 'gray' | 'green' | 'indigo' | 'orange' | 'pink' | 'purple' | 'red' | 'teal' | 'yellow'</code>
1640
+
1593
1641
  #### RemindersList
1594
1642
 
1643
+ A reminders list on iOS.
1644
+
1645
+ Same shape as {@link <a href="#calendar">Calendar</a>} today. Android-only calendar fields
1646
+ (`visible`, `accountName`, `ownerAccount`, `maxReminders`, `internalTitle`,
1647
+ `location`) are always `null` on reminder list payloads.
1648
+
1595
1649
  <code>
1596
1650
  <a href="#calendar">Calendar</a>
1597
1651
  </code>