@ebarooni/capacitor-calendar 8.7.1 → 8.9.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 +202 -137
- package/android/src/main/java/dev/barooni/capacitor/calendar/CapacitorCalendarPlugin.kt +72 -25
- package/android/src/main/java/dev/barooni/capacitor/calendar/PluginError.kt +8 -0
- package/android/src/main/java/dev/barooni/capacitor/calendar/models/results/CreateEventWithPromptResult.kt +1 -0
- package/android/src/main/java/dev/barooni/capacitor/calendar/models/results/GetDefaultCalendarResult.kt +1 -0
- package/android/src/main/java/dev/barooni/capacitor/calendar/models/results/ListCalendarsResult.kt +1 -0
- package/android/src/main/java/dev/barooni/capacitor/calendar/utils/DeclarationCheck.kt +59 -0
- package/dist/docs.json +463 -81
- package/dist/esm/index.d.ts +7 -2
- package/dist/esm/index.js +2 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/schemas/enums/calendar-permission-scope.d.ts +1 -1
- package/dist/esm/schemas/enums/calendar-permission-scope.js +1 -1
- package/dist/esm/schemas/enums/calendar-permission-scope.js.map +1 -1
- package/dist/esm/schemas/enums/capacitor-calendar-error-code.d.ts +13 -0
- package/dist/esm/schemas/enums/capacitor-calendar-error-code.js +15 -0
- package/dist/esm/schemas/enums/capacitor-calendar-error-code.js.map +1 -0
- package/dist/esm/schemas/interfaces/calendar.d.ts +10 -2
- package/dist/esm/schemas/interfaces/calendar.js.map +1 -1
- package/dist/esm/schemas/interfaces/create-calendar-options.d.ts +6 -4
- package/dist/esm/schemas/interfaces/create-calendar-options.js.map +1 -1
- package/dist/esm/schemas/interfaces/create-event-options.d.ts +10 -1
- package/dist/esm/schemas/interfaces/create-event-options.js.map +1 -1
- package/dist/esm/schemas/interfaces/create-event-result.d.ts +0 -2
- package/dist/esm/schemas/interfaces/create-event-result.js.map +1 -1
- package/dist/esm/schemas/interfaces/create-event-with-prompt-options.d.ts +36 -10
- package/dist/esm/schemas/interfaces/create-event-with-prompt-options.js.map +1 -1
- package/dist/esm/schemas/interfaces/create-event-with-prompt-result.d.ts +10 -1
- package/dist/esm/schemas/interfaces/create-event-with-prompt-result.js.map +1 -1
- package/dist/esm/schemas/interfaces/create-reminder-options.d.ts +2 -0
- package/dist/esm/schemas/interfaces/create-reminder-options.js.map +1 -1
- package/dist/esm/schemas/interfaces/create-reminders-list-options.d.ts +12 -7
- package/dist/esm/schemas/interfaces/create-reminders-list-options.js.map +1 -1
- package/dist/esm/schemas/interfaces/delete-reminder-with-prompt-result.d.ts +12 -0
- package/dist/esm/schemas/interfaces/delete-reminder-with-prompt-result.js +2 -0
- package/dist/esm/schemas/interfaces/delete-reminder-with-prompt-result.js.map +1 -0
- package/dist/esm/schemas/interfaces/event-recurrence-rule.d.ts +9 -9
- package/dist/esm/schemas/interfaces/event-recurrence-rule.js.map +1 -1
- package/dist/esm/schemas/interfaces/get-default-reminders-list-result.d.ts +13 -0
- package/dist/esm/schemas/interfaces/get-default-reminders-list-result.js +2 -0
- package/dist/esm/schemas/interfaces/get-default-reminders-list-result.js.map +1 -0
- package/dist/esm/schemas/interfaces/get-reminders-lists-result.d.ts +13 -0
- package/dist/esm/schemas/interfaces/get-reminders-lists-result.js +2 -0
- package/dist/esm/schemas/interfaces/get-reminders-lists-result.js.map +1 -0
- package/dist/esm/schemas/interfaces/modify-calendar-options.d.ts +6 -2
- package/dist/esm/schemas/interfaces/modify-calendar-options.js.map +1 -1
- package/dist/esm/schemas/interfaces/modify-event-with-prompt-options.d.ts +77 -2
- package/dist/esm/schemas/interfaces/modify-event-with-prompt-options.js.map +1 -1
- package/dist/esm/schemas/interfaces/modify-reminder-options.d.ts +3 -0
- package/dist/esm/schemas/interfaces/modify-reminder-options.js.map +1 -1
- package/dist/esm/schemas/interfaces/reminder.d.ts +2 -0
- package/dist/esm/schemas/interfaces/reminder.js.map +1 -1
- package/dist/esm/schemas/interfaces/reminders-list.d.ts +6 -0
- package/dist/esm/schemas/interfaces/reminders-list.js.map +1 -1
- package/dist/esm/schemas/interfaces/update-reminders-list-options.d.ts +8 -5
- package/dist/esm/schemas/interfaces/update-reminders-list-options.js.map +1 -1
- package/dist/esm/schemas/types/system-color-name.d.ts +6 -0
- package/dist/esm/schemas/types/system-color-name.js +2 -0
- package/dist/esm/schemas/types/system-color-name.js.map +1 -0
- package/dist/esm/sub-definitions/event-operations.d.ts +7 -10
- package/dist/esm/sub-definitions/event-operations.js.map +1 -1
- package/dist/esm/sub-definitions/reminders-access.d.ts +1 -1
- package/dist/esm/sub-definitions/reminders-access.js.map +1 -1
- package/dist/esm/sub-definitions/reminders-operations.d.ts +41 -16
- package/dist/esm/sub-definitions/reminders-operations.js.map +1 -1
- package/dist/esm/web/ics.d.ts +8 -2
- package/dist/esm/web/ics.js +64 -22
- package/dist/esm/web/ics.js.map +1 -1
- package/dist/esm/web.d.ts +8 -15
- package/dist/esm/web.js +100 -5
- package/dist/esm/web.js.map +1 -1
- package/dist/plugin.cjs.js +180 -29
- package/dist/plugin.cjs.js.map +1 -1
- package/dist/plugin.js +180 -29
- package/dist/plugin.js.map +1 -1
- package/ios/Plugin/CapacitorCalendarPlugin.swift +68 -22
- package/ios/Plugin/Models/Inputs/CreateCalendarInput.swift +5 -2
- package/ios/Plugin/Models/Inputs/CreateRemindersListInput.swift +4 -18
- package/ios/Plugin/Models/Inputs/ModifyCalendarInput.swift +2 -2
- package/ios/Plugin/Models/Inputs/UpdateRemindersListInput.swift +4 -18
- package/ios/Plugin/Models/Results/CreateEventWithPromptResult.swift +1 -0
- package/ios/Plugin/PluginError.swift +13 -0
- package/ios/Plugin/Utils/DeclarationCheck.swift +63 -0
- package/ios/Plugin/Utils/ImplementationHelper.swift +44 -0
- package/ios/Plugin/Utils/UIColorFromHexExtension.swift +5 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -29,8 +29,10 @@
|
|
|
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)
|
|
35
|
+
- [Error codes](#error-codes)
|
|
34
36
|
- [Quick Start](#quick-start)
|
|
35
37
|
- [Usage Examples](#usage-examples)
|
|
36
38
|
- [Documentation](#documentation)
|
|
@@ -45,7 +47,7 @@
|
|
|
45
47
|
| Capability | iOS | Android | Web |
|
|
46
48
|
| :------------------------------------------------ | :-: | :-----: | :-----------: |
|
|
47
49
|
| Create, update, and delete events | ✅ | ✅ | Create only\* |
|
|
48
|
-
| Native prompts to create, edit, and delete events | ✅ | ✅ |
|
|
50
|
+
| Native prompts to create, edit, and delete events | ✅ | ✅ | Create only\* |
|
|
49
51
|
| List events in a date range | ✅ | ✅ | – |
|
|
50
52
|
| Request calendar permissions | ✅ | ✅ | – |
|
|
51
53
|
| List, create, modify, and delete calendars | ✅ | ✅ | – |
|
|
@@ -53,7 +55,7 @@
|
|
|
53
55
|
| Calendar sources and a calendar picker prompt | ✅ | – | – |
|
|
54
56
|
| Reminders and reminder lists | ✅ | – | – |
|
|
55
57
|
|
|
56
|
-
\* On the web, `createEvent`
|
|
58
|
+
\* 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
59
|
|
|
58
60
|
## Demo
|
|
59
61
|
|
|
@@ -61,6 +63,8 @@
|
|
|
61
63
|
| :-----------------------------: | :---------------------------------: |
|
|
62
64
|
|  |  |
|
|
63
65
|
|
|
66
|
+
**Web:** Run the example app in a browser. Use **Create event** or **Create event with prompt** for `.ics` export. Unsupported actions are disabled.
|
|
67
|
+
|
|
64
68
|
## Why this plugin?
|
|
65
69
|
|
|
66
70
|
- **Established.** Available since Capacitor 5, with years of real-world use behind it.
|
|
@@ -73,15 +77,34 @@
|
|
|
73
77
|
`@ebarooni/capacitor-calendar` ships an official [MCP](https://modelcontextprotocol.io) server. It gives AI coding assistants accurate, grounded knowledge of the plugin.
|
|
74
78
|
|
|
75
79
|
```bash
|
|
76
|
-
docker run --rm -d --name capacitor-calendar-mcp -p 8080:8080 ghcr.io/ebarooni/capacitor-calendar-mcp:1.
|
|
80
|
+
docker run --rm -d --name capacitor-calendar-mcp -p 8080:8080 ghcr.io/ebarooni/capacitor-calendar-mcp:1.2.0
|
|
77
81
|
```
|
|
78
82
|
|
|
79
83
|
See [`mcp/README.md`](mcp/README.md) for client configuration and full details.
|
|
80
84
|
|
|
85
|
+
## Capacitor Compatibility
|
|
86
|
+
|
|
87
|
+
Match the npm tag to your Capacitor major. The `latest` and `latest-7` packages are intended to stay in feature parity.
|
|
88
|
+
|
|
89
|
+
| Capacitor | npm tag | Version |
|
|
90
|
+
| :-------- | :--------- | :------------------------------------------------------------------------------------------------------------------------- |
|
|
91
|
+
| `8.x` | `latest` |  |
|
|
92
|
+
| `7.x` | `latest-7` |  |
|
|
93
|
+
|
|
81
94
|
## Installation
|
|
82
95
|
|
|
96
|
+
**Capacitor 8:**
|
|
97
|
+
|
|
83
98
|
```bash
|
|
84
99
|
npm install @ebarooni/capacitor-calendar
|
|
100
|
+
# or: npm install @ebarooni/capacitor-calendar@latest
|
|
101
|
+
npx cap sync
|
|
102
|
+
```
|
|
103
|
+
|
|
104
|
+
**Capacitor 7:**
|
|
105
|
+
|
|
106
|
+
```bash
|
|
107
|
+
npm install @ebarooni/capacitor-calendar@latest-7
|
|
85
108
|
npx cap sync
|
|
86
109
|
```
|
|
87
110
|
|
|
@@ -129,6 +152,16 @@ Add the appropriate usage description keys to `ios/App/App/Info.plist`. Starting
|
|
|
129
152
|
- **iOS:** [Migrating to the Latest Calendar Access Levels](https://developer.apple.com/documentation/technotes/tn3152-migrating-to-the-latest-calendar-access-levels)
|
|
130
153
|
- **Android:** [Calendar Provider User Permissions](https://developer.android.com/identity/providers/calendar-provider#manifest)
|
|
131
154
|
|
|
155
|
+
## Error codes
|
|
156
|
+
|
|
157
|
+
On Android and iOS, a rejected call can expose `error.code` (stable category) and `error.message` (exact cause). Compare codes with the exported `CapacitorCalendarErrorCode` enum.
|
|
158
|
+
|
|
159
|
+
Defined codes:
|
|
160
|
+
|
|
161
|
+
| Code | Name | When |
|
|
162
|
+
| :------------- | :------------------- | :------------------------------------------------------------------------------ |
|
|
163
|
+
| `EB-CLDR-0100` | `MissingDeclaration` | Required Info.plist usage description or AndroidManifest permission is not set. |
|
|
164
|
+
|
|
132
165
|
## Quick Start
|
|
133
166
|
|
|
134
167
|
The sample below is for Android and iOS. For Web, see [Create and download an event on the web](#create-and-download-an-event-on-the-web).
|
|
@@ -164,10 +197,10 @@ console.log('Event created with ID:', id);
|
|
|
164
197
|
|
|
165
198
|
### Create and download an event on the web
|
|
166
199
|
|
|
167
|
-
On Web, `createEvent`
|
|
200
|
+
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
201
|
|
|
169
202
|
```typescript
|
|
170
|
-
import { CapacitorCalendar
|
|
203
|
+
import { CapacitorCalendar } from '@ebarooni/capacitor-calendar';
|
|
171
204
|
|
|
172
205
|
const startDate = Date.now() + 60 * 60 * 1000;
|
|
173
206
|
const endDate = startDate + 60 * 60 * 1000;
|
|
@@ -177,16 +210,13 @@ const { ics } = await CapacitorCalendar.createEvent({
|
|
|
177
210
|
startDate,
|
|
178
211
|
endDate,
|
|
179
212
|
icsFileName: 'team-standup.ics',
|
|
213
|
+
autoDownloadIcsFile: true,
|
|
180
214
|
});
|
|
181
|
-
|
|
182
|
-
if (ics) {
|
|
183
|
-
await downloadIcsFile(ics);
|
|
184
|
-
}
|
|
185
215
|
```
|
|
186
216
|
|
|
187
217
|
### Open the native event editor
|
|
188
218
|
|
|
189
|
-
Use the system calendar UI to let users create or edit events:
|
|
219
|
+
Use the system calendar UI to let users create or edit events (on Web: confirm dialog + ICS):
|
|
190
220
|
|
|
191
221
|
```typescript
|
|
192
222
|
await CapacitorCalendar.createEventWithPrompt({
|
|
@@ -198,7 +228,7 @@ await CapacitorCalendar.createEventWithPrompt({
|
|
|
198
228
|
```
|
|
199
229
|
|
|
200
230
|
> [!NOTE]
|
|
201
|
-
> On Android, this method always returns null
|
|
231
|
+
> 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
232
|
|
|
203
233
|
### Modify or delete an event
|
|
204
234
|
|
|
@@ -488,9 +518,10 @@ A grant covers both `readReminders` and `writeReminders`.
|
|
|
488
518
|
createEventWithPrompt(options?: CreateEventWithPromptOptions | undefined) => Promise<CreateEventWithPromptResult>
|
|
489
519
|
```
|
|
490
520
|
|
|
491
|
-
Opens
|
|
492
|
-
On Android
|
|
493
|
-
|
|
521
|
+
Opens a calendar UI to create an event.
|
|
522
|
+
On Android and iOS, opens the system editor. On Android, `id` is always `null`.
|
|
523
|
+
On Web, shows a confirm dialog, then builds an `.ics` `File` when the user confirms.
|
|
524
|
+
See MCP `docs://web-behavior` for Web details.
|
|
494
525
|
|
|
495
526
|
| Param | Type |
|
|
496
527
|
| ------------- | ------------------------------------------------------------------------------------- |
|
|
@@ -500,7 +531,7 @@ Fetch the events to find the ID of the newly created event.
|
|
|
500
531
|
|
|
501
532
|
**Since:** 0.1.0
|
|
502
533
|
|
|
503
|
-
**Platform:** Android, iOS
|
|
534
|
+
**Platform:** Android, iOS, Web
|
|
504
535
|
|
|
505
536
|
---
|
|
506
537
|
|
|
@@ -533,9 +564,7 @@ createEvent(options: CreateEventOptions) => Promise<CreateEventResult>
|
|
|
533
564
|
|
|
534
565
|
Creates an event in the calendar.
|
|
535
566
|
On Android and iOS, inserts into the system calendar and returns its `id`.
|
|
536
|
-
On Web,
|
|
537
|
-
The app must download or open that file (for example with `downloadIcsFile(...)`);
|
|
538
|
-
this method does not trigger a download.
|
|
567
|
+
On Web, builds an `.ics` `File` as `ics` (no calendar store). See MCP `docs://web-behavior`.
|
|
539
568
|
|
|
540
569
|
| Param | Type |
|
|
541
570
|
| ------------- | ----------------------------------------------------------------- |
|
|
@@ -875,12 +904,12 @@ Deletes a reminders list.
|
|
|
875
904
|
### fetchAllRemindersSources()
|
|
876
905
|
|
|
877
906
|
```typescript
|
|
878
|
-
fetchAllRemindersSources() => Promise<
|
|
907
|
+
fetchAllRemindersSources() => Promise<FetchAllCalendarSourcesResult>
|
|
879
908
|
```
|
|
880
909
|
|
|
881
910
|
Retrieves a list of calendar sources.
|
|
882
911
|
|
|
883
|
-
**Returns:** <code>Promise<
|
|
912
|
+
**Returns:** <code>Promise<<a href="#fetchallcalendarsourcesresult">FetchAllCalendarSourcesResult</a>></code>
|
|
884
913
|
|
|
885
914
|
**Since:** 6.6.0
|
|
886
915
|
|
|
@@ -905,12 +934,12 @@ Opens the reminders app.
|
|
|
905
934
|
### getDefaultRemindersList()
|
|
906
935
|
|
|
907
936
|
```typescript
|
|
908
|
-
getDefaultRemindersList() => Promise<
|
|
937
|
+
getDefaultRemindersList() => Promise<GetDefaultRemindersListResult>
|
|
909
938
|
```
|
|
910
939
|
|
|
911
940
|
Retrieves the default reminders list.
|
|
912
941
|
|
|
913
|
-
**Returns:** <code>Promise<
|
|
942
|
+
**Returns:** <code>Promise<<a href="#getdefaultreminderslistresult">GetDefaultRemindersListResult</a>></code>
|
|
914
943
|
|
|
915
944
|
**Since:** 7.1.0
|
|
916
945
|
|
|
@@ -921,12 +950,12 @@ Retrieves the default reminders list.
|
|
|
921
950
|
### getRemindersLists()
|
|
922
951
|
|
|
923
952
|
```typescript
|
|
924
|
-
getRemindersLists() => Promise<
|
|
953
|
+
getRemindersLists() => Promise<GetRemindersListsResult>
|
|
925
954
|
```
|
|
926
955
|
|
|
927
956
|
Retrieves all available reminders lists.
|
|
928
957
|
|
|
929
|
-
**Returns:** <code>Promise<
|
|
958
|
+
**Returns:** <code>Promise<<a href="#getreminderslistsresult">GetRemindersListsResult</a>></code>
|
|
930
959
|
|
|
931
960
|
**Since:** 7.1.0
|
|
932
961
|
|
|
@@ -1016,7 +1045,7 @@ Modifies a reminder.
|
|
|
1016
1045
|
getReminderById(options: GetReminderByIdOptions) => Promise<GetReminderByIdResult>
|
|
1017
1046
|
```
|
|
1018
1047
|
|
|
1019
|
-
|
|
1048
|
+
Retrieves a reminder by id.
|
|
1020
1049
|
|
|
1021
1050
|
| Param | Type |
|
|
1022
1051
|
| ------------- | ------------------------------------------------------------------------- |
|
|
@@ -1053,7 +1082,7 @@ Retrieves reminders from multiple lists.
|
|
|
1053
1082
|
### deleteReminderWithPrompt(...)
|
|
1054
1083
|
|
|
1055
1084
|
```typescript
|
|
1056
|
-
deleteReminderWithPrompt(options: DeleteReminderWithPromptOptions) => Promise<
|
|
1085
|
+
deleteReminderWithPrompt(options: DeleteReminderWithPromptOptions) => Promise<DeleteReminderWithPromptResult>
|
|
1057
1086
|
```
|
|
1058
1087
|
|
|
1059
1088
|
Opens a dialog to delete a reminder.
|
|
@@ -1062,7 +1091,7 @@ Opens a dialog to delete a reminder.
|
|
|
1062
1091
|
| ------------- | ------------------------------------------------------------------------------------------- |
|
|
1063
1092
|
| **`options`** | <code><a href="#deletereminderwithpromptoptions">DeleteReminderWithPromptOptions</a></code> |
|
|
1064
1093
|
|
|
1065
|
-
**Returns:** <code>Promise<
|
|
1094
|
+
**Returns:** <code>Promise<<a href="#deletereminderwithpromptresult">DeleteReminderWithPromptResult</a>></code>
|
|
1066
1095
|
|
|
1067
1096
|
**Since:** 7.2.0
|
|
1068
1097
|
|
|
@@ -1076,7 +1105,7 @@ Opens a dialog to delete a reminder.
|
|
|
1076
1105
|
updateRemindersList(options: UpdateRemindersListOptions) => Promise<UpdateRemindersListResult>
|
|
1077
1106
|
```
|
|
1078
1107
|
|
|
1079
|
-
|
|
1108
|
+
Updates a reminders list.
|
|
1080
1109
|
|
|
1081
1110
|
| Param | Type |
|
|
1082
1111
|
| ------------- | --------------------------------------------------------------------------------- |
|
|
@@ -1110,40 +1139,44 @@ Options for {@link CalendarAccess#requestPermission}.
|
|
|
1110
1139
|
|
|
1111
1140
|
#### CreateEventWithPromptResult
|
|
1112
1141
|
|
|
1113
|
-
| Prop
|
|
1114
|
-
|
|
|
1115
|
-
| **`
|
|
1142
|
+
| Prop | Type | Description | Since | Platform |
|
|
1143
|
+
| --------- | --------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------- | ----- | ------------ |
|
|
1144
|
+
| **`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 |
|
|
1145
|
+
| **`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
1146
|
|
|
1117
1147
|
#### CreateEventWithPromptOptions
|
|
1118
1148
|
|
|
1119
|
-
| Prop
|
|
1120
|
-
|
|
|
1121
|
-
| **`alerts`**
|
|
1122
|
-
| **`
|
|
1123
|
-
| **`
|
|
1124
|
-
| **`
|
|
1125
|
-
| **`
|
|
1126
|
-
| **`
|
|
1127
|
-
| **`
|
|
1128
|
-
| **`
|
|
1129
|
-
| **`
|
|
1130
|
-
| **`
|
|
1131
|
-
| **`
|
|
1132
|
-
| **`
|
|
1149
|
+
| Prop | Type | Description | Default | Since | Platform |
|
|
1150
|
+
| ------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ----------------- | ----- | ----------------- |
|
|
1151
|
+
| **`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 |
|
|
1152
|
+
| **`autoDownloadIcsFile`** | <code>boolean</code> | Start a browser download of the ICS file. | <code>true</code> | 8.8.0 | Web |
|
|
1153
|
+
| **`availability`** | <code><a href="#eventavailability">EventAvailability</a></code> | | | 7.1.0 | Android, iOS, Web |
|
|
1154
|
+
| **`calendarId`** | <code>string</code> | | | 0.1.0 | iOS |
|
|
1155
|
+
| **`description`** | <code>string</code> | | | 7.1.0 | Android, iOS, Web |
|
|
1156
|
+
| **`endDate`** | <code>number</code> | | | 0.1.0 | Android, iOS, Web |
|
|
1157
|
+
| **`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 |
|
|
1158
|
+
| **`invitees`** | <code>string[]</code> | An array of emails to invite. | | 7.1.0 | Android |
|
|
1159
|
+
| **`isAllDay`** | <code>boolean</code> | | | 0.1.0 | Android, iOS, Web |
|
|
1160
|
+
| **`location`** | <code>string</code> | | | 0.1.0 | Android, iOS, Web |
|
|
1161
|
+
| **`promptMessage`** | <code>string</code> | Confirm dialog message. When omitted, the dialog uses the event title and time summary. | | 8.8.0 | Web |
|
|
1162
|
+
| **`recurrence`** | <code><a href="#eventrecurrencerule">EventRecurrenceRule</a></code> | Rules for creating a recurring event. | | 7.3.0 | Android, iOS, Web |
|
|
1163
|
+
| **`startDate`** | <code>number</code> | | | 0.1.0 | Android, iOS, Web |
|
|
1164
|
+
| **`title`** | <code>string</code> | | | 0.1.0 | Android, iOS, Web |
|
|
1165
|
+
| **`url`** | <code>string</code> | | | 0.1.0 | iOS, Web |
|
|
1133
1166
|
|
|
1134
1167
|
#### EventRecurrenceRule
|
|
1135
1168
|
|
|
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 |
|
|
1169
|
+
| Prop | Type | Description | Default | Since | Platform |
|
|
1170
|
+
| -------------------- | ------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------- | ----- | ----------------- |
|
|
1171
|
+
| **`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 |
|
|
1172
|
+
| **`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 |
|
|
1173
|
+
| **`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 |
|
|
1174
|
+
| **`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 |
|
|
1175
|
+
| **`daysOfTheYear`** | <code>number[]</code> | Limits a yearly recurrence to specific days of the year (1 to 366). | | 7.3.0 | iOS, Web |
|
|
1176
|
+
| **`end`** | <code>number</code> | End date of the recurrence series as a Unix timestamp in milliseconds. | | 7.1.0 | Android, iOS, Web |
|
|
1177
|
+
| **`frequency`** | <code><a href="#recurrencefrequency">RecurrenceFrequency</a></code> | How often the event repeats. | | 7.3.0 | Android, iOS, Web |
|
|
1178
|
+
| **`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 |
|
|
1179
|
+
| **`weeksOfTheYear`** | <code>number[]</code> | Limits a yearly recurrence to specific ISO week numbers (1 to 53). | | 7.3.0 | iOS, Web |
|
|
1147
1180
|
|
|
1148
1181
|
#### ModifyEventWithPromptOptions
|
|
1149
1182
|
|
|
@@ -1154,6 +1187,7 @@ Options for {@link CalendarAccess#requestPermission}.
|
|
|
1154
1187
|
| **`calendarId`** | <code>string</code> | | 0.1.0 | iOS |
|
|
1155
1188
|
| **`description`** | <code>string</code> | | 7.1.0 | Android, iOS |
|
|
1156
1189
|
| **`endDate`** | <code>number</code> | | 0.1.0 | Android, iOS |
|
|
1190
|
+
| **`id`** | <code>string</code> | The ID of the event to be modified. | 7.1.0 | Android, iOS |
|
|
1157
1191
|
| **`invitees`** | <code>string[]</code> | An array of emails to invite. | 7.1.0 | Android |
|
|
1158
1192
|
| **`isAllDay`** | <code>boolean</code> | | 0.1.0 | Android, iOS |
|
|
1159
1193
|
| **`location`** | <code>string</code> | | 0.1.0 | Android, iOS |
|
|
@@ -1161,36 +1195,36 @@ Options for {@link CalendarAccess#requestPermission}.
|
|
|
1161
1195
|
| **`startDate`** | <code>number</code> | | 0.1.0 | Android, iOS |
|
|
1162
1196
|
| **`title`** | <code>string</code> | | 0.1.0 | Android, iOS |
|
|
1163
1197
|
| **`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
1198
|
|
|
1166
1199
|
#### CreateEventResult
|
|
1167
1200
|
|
|
1168
|
-
| Prop | Type | Description
|
|
1169
|
-
| --------- | --------------------------- |
|
|
1170
|
-
| **`ics`** | <code>File \| null</code> | An `.ics` file (`text/calendar`) with one `VEVENT`. Always `null` on Android and iOS.
|
|
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.
|
|
1201
|
+
| Prop | Type | Description | Since | Platform |
|
|
1202
|
+
| --------- | --------------------------- | ---------------------------------------------------------------------------------------------------------------- | ----- | ------------ |
|
|
1203
|
+
| **`ics`** | <code>File \| null</code> | An `.ics` file (`text/calendar`) with one `VEVENT`. Always `null` on Android and iOS. | 8.5.0 | Web |
|
|
1204
|
+
| **`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
1205
|
|
|
1173
1206
|
#### CreateEventOptions
|
|
1174
1207
|
|
|
1175
|
-
| Prop
|
|
1176
|
-
|
|
|
1177
|
-
| **`alerts`**
|
|
1178
|
-
| **`attendees`**
|
|
1179
|
-
| **`
|
|
1180
|
-
| **`
|
|
1181
|
-
| **`
|
|
1182
|
-
| **`
|
|
1183
|
-
| **`
|
|
1184
|
-
| **`
|
|
1185
|
-
| **`
|
|
1186
|
-
| **`
|
|
1187
|
-
| **`
|
|
1188
|
-
| **`
|
|
1189
|
-
| **`
|
|
1190
|
-
| **`
|
|
1191
|
-
| **`
|
|
1192
|
-
| **`
|
|
1193
|
-
| **`
|
|
1208
|
+
| Prop | Type | Description | Default | Since | Platform |
|
|
1209
|
+
| ------------------------- | ------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------ | ----- | ----------------- |
|
|
1210
|
+
| **`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 |
|
|
1211
|
+
| **`attendees`** | <code>EventGuest[]</code> | The event guests. | | 7.1.0 | Android, Web |
|
|
1212
|
+
| **`autoDownloadIcsFile`** | <code>boolean</code> | Start a browser download of the ICS file. | <code>false</code> | 8.8.0 | Web |
|
|
1213
|
+
| **`availability`** | <code><a href="#eventavailability">EventAvailability</a></code> | | | 7.1.0 | Android, iOS, Web |
|
|
1214
|
+
| **`calendarId`** | <code>string</code> | | | 0.1.0 | Android, iOS |
|
|
1215
|
+
| **`color`** | <code>string</code> | | | 7.1.0 | Android |
|
|
1216
|
+
| **`commit`** | <code>boolean</code> | Whether to save immediately (`true`) or batch changes for later (`false`). | <code>true</code> | 7.1.0 | iOS |
|
|
1217
|
+
| **`description`** | <code>string</code> | | | 7.1.0 | Android, iOS, Web |
|
|
1218
|
+
| **`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 |
|
|
1219
|
+
| **`endDate`** | <code>number</code> | | | 0.1.0 | Android, iOS, Web |
|
|
1220
|
+
| **`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 |
|
|
1221
|
+
| **`isAllDay`** | <code>boolean</code> | | | 0.1.0 | Android, iOS, Web |
|
|
1222
|
+
| **`location`** | <code>string</code> | | | 0.1.0 | Android, iOS, Web |
|
|
1223
|
+
| **`organizer`** | <code>string</code> | Email of the event organizer. | | 7.1.0 | Android, Web |
|
|
1224
|
+
| **`recurrence`** | <code><a href="#eventrecurrencerule">EventRecurrenceRule</a></code> | Rules for creating a recurring event. | | 7.3.0 | Android, iOS, Web |
|
|
1225
|
+
| **`startDate`** | <code>number</code> | | | 0.1.0 | Android, iOS, Web |
|
|
1226
|
+
| **`title`** | <code>string</code> | | | 0.4.0 | Android, iOS, Web |
|
|
1227
|
+
| **`url`** | <code>string</code> | | | 0.1.0 | iOS, Web |
|
|
1194
1228
|
|
|
1195
1229
|
#### EventGuest
|
|
1196
1230
|
|
|
@@ -1309,22 +1343,23 @@ Options for {@link CalendarAccess#requestPermission}.
|
|
|
1309
1343
|
|
|
1310
1344
|
#### Calendar
|
|
1311
1345
|
|
|
1312
|
-
| Prop | Type
|
|
1313
|
-
| -------------------------------- |
|
|
1314
|
-
| **`id`** | <code>string</code>
|
|
1315
|
-
| **`title`** | <code>string \| null</code>
|
|
1316
|
-
| **`internalTitle`** | <code>string \| null</code>
|
|
1317
|
-
| **`color`** | <code>string \| null</code>
|
|
1318
|
-
| **`
|
|
1319
|
-
| **`
|
|
1320
|
-
| **`
|
|
1321
|
-
| **`
|
|
1322
|
-
| **`
|
|
1323
|
-
| **`
|
|
1324
|
-
| **`
|
|
1325
|
-
| **`
|
|
1326
|
-
| **`
|
|
1327
|
-
| **`
|
|
1346
|
+
| Prop | Type | Description | Since | Platform |
|
|
1347
|
+
| -------------------------------- | ------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- | ----- | ------------ |
|
|
1348
|
+
| **`id`** | <code>string</code> | | 7.1.0 | Android, iOS |
|
|
1349
|
+
| **`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 |
|
|
1350
|
+
| **`internalTitle`** | <code>string \| null</code> | Internal name of the calendar (`CalendarContract.Calendars.NAME`). | 7.1.0 | Android |
|
|
1351
|
+
| **`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 |
|
|
1352
|
+
| **`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 |
|
|
1353
|
+
| **`isImmutable`** | <code>boolean \| null</code> | | 7.1.0 | iOS |
|
|
1354
|
+
| **`allowsContentModifications`** | <code>boolean \| null</code> | | 7.1.0 | iOS |
|
|
1355
|
+
| **`type`** | <code><a href="#calendartype">CalendarType</a> \| null</code> | | 7.1.0 | iOS |
|
|
1356
|
+
| **`isSubscribed`** | <code>boolean \| null</code> | | 7.1.0 | iOS |
|
|
1357
|
+
| **`source`** | <code><a href="#calendarsource">CalendarSource</a> \| null</code> | | 7.1.0 | iOS |
|
|
1358
|
+
| **`visible`** | <code>boolean \| null</code> | Indicates if the events from this calendar should be shown. | 7.1.0 | Android |
|
|
1359
|
+
| **`accountName`** | <code>string \| null</code> | The account under which the calendar is registered. | 7.1.0 | Android |
|
|
1360
|
+
| **`ownerAccount`** | <code>string \| null</code> | The owner of the calendar. | 7.1.0 | Android |
|
|
1361
|
+
| **`maxReminders`** | <code>number \| null</code> | Maximum number of reminders allowed per event. | 7.1.0 | Android |
|
|
1362
|
+
| **`location`** | <code>string \| null</code> | | 7.1.0 | Android |
|
|
1328
1363
|
|
|
1329
1364
|
#### CalendarSource
|
|
1330
1365
|
|
|
@@ -1373,13 +1408,13 @@ Options for {@link CalendarAccess#requestPermission}.
|
|
|
1373
1408
|
|
|
1374
1409
|
#### CreateCalendarOptions
|
|
1375
1410
|
|
|
1376
|
-
| Prop | Type
|
|
1377
|
-
| ------------------ |
|
|
1378
|
-
| **`title`** | <code>string</code>
|
|
1379
|
-
| **`color`** | <code>string
|
|
1380
|
-
| **`sourceId`** | <code>string</code>
|
|
1381
|
-
| **`accountName`** | <code>string</code>
|
|
1382
|
-
| **`ownerAccount`** | <code>string</code>
|
|
1411
|
+
| Prop | Type | Description | Default | Since | Platform |
|
|
1412
|
+
| ------------------ | --------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------- | ----- | ------------ |
|
|
1413
|
+
| **`title`** | <code>string</code> | | | 5.2.0 | Android, iOS |
|
|
1414
|
+
| **`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 |
|
|
1415
|
+
| **`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 |
|
|
1416
|
+
| **`accountName`** | <code>string</code> | The account under which the calendar is registered. Required on Android. Typically an email address. | | 7.1.0 | Android |
|
|
1417
|
+
| **`ownerAccount`** | <code>string</code> | The owner of the calendar. Required on Android. Typically an email address. | | 7.1.0 | Android |
|
|
1383
1418
|
|
|
1384
1419
|
#### DeleteCalendarOptions
|
|
1385
1420
|
|
|
@@ -1389,11 +1424,11 @@ Options for {@link CalendarAccess#requestPermission}.
|
|
|
1389
1424
|
|
|
1390
1425
|
#### ModifyCalendarOptions
|
|
1391
1426
|
|
|
1392
|
-
| Prop | Type
|
|
1393
|
-
| ----------- |
|
|
1394
|
-
| **`id`** | <code>string</code>
|
|
1395
|
-
| **`title`** | <code>string</code>
|
|
1396
|
-
| **`color`** | <code>string
|
|
1427
|
+
| Prop | Type | Description | Since | Platform |
|
|
1428
|
+
| ----------- | --------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----- | ------------ |
|
|
1429
|
+
| **`id`** | <code>string</code> | | 7.2.0 | Android, iOS |
|
|
1430
|
+
| **`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 |
|
|
1431
|
+
| **`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
1432
|
|
|
1398
1433
|
#### CreateRemindersListResult
|
|
1399
1434
|
|
|
@@ -1403,12 +1438,12 @@ Options for {@link CalendarAccess#requestPermission}.
|
|
|
1403
1438
|
|
|
1404
1439
|
#### CreateRemindersListOptions
|
|
1405
1440
|
|
|
1406
|
-
| Prop | Type
|
|
1407
|
-
| -------------- |
|
|
1408
|
-
| **`color`** | <code>
|
|
1409
|
-
| **`commit`** | <code>boolean</code>
|
|
1410
|
-
| **`sourceId`** | <code>string</code>
|
|
1411
|
-
| **`title`** | <code>string</code>
|
|
1441
|
+
| Prop | Type | Description | Default | Since | Platform |
|
|
1442
|
+
| -------------- | --------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------- | ----- | -------- |
|
|
1443
|
+
| **`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 |
|
|
1444
|
+
| **`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 |
|
|
1445
|
+
| **`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 |
|
|
1446
|
+
| **`title`** | <code>string</code> | The title of the list. | | 8.1.0 | iOS |
|
|
1412
1447
|
|
|
1413
1448
|
#### DeleteRemindersListOptions
|
|
1414
1449
|
|
|
@@ -1417,6 +1452,18 @@ Options for {@link CalendarAccess#requestPermission}.
|
|
|
1417
1452
|
| **`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
1453
|
| **`id`** | <code>string</code> | Identifier of the reminders list to delete. | | 8.2.0 | iOS |
|
|
1419
1454
|
|
|
1455
|
+
#### GetDefaultRemindersListResult
|
|
1456
|
+
|
|
1457
|
+
| Prop | Type | Description | Since | Platform |
|
|
1458
|
+
| ------------ | ----------------------------------------------------- | ------------------------------------------------------- | ----- | -------- |
|
|
1459
|
+
| **`result`** | <code><a href="#calendar">Calendar</a> \| null</code> | The default reminders list, or `null` when none exists. | 7.1.0 | iOS |
|
|
1460
|
+
|
|
1461
|
+
#### GetRemindersListsResult
|
|
1462
|
+
|
|
1463
|
+
| Prop | Type | Description | Since | Platform |
|
|
1464
|
+
| ------------ | ----------------------- | ------------------------------ | ----- | -------- |
|
|
1465
|
+
| **`result`** | <code>Calendar[]</code> | All available reminders lists. | 7.1.0 | iOS |
|
|
1466
|
+
|
|
1420
1467
|
#### CreateReminderResult
|
|
1421
1468
|
|
|
1422
1469
|
| Prop | Type | Description | Since | Platform |
|
|
@@ -1435,7 +1482,7 @@ Options for {@link CalendarAccess#requestPermission}.
|
|
|
1435
1482
|
| **`listId`** | <code>string</code> | | | 7.1.0 | |
|
|
1436
1483
|
| **`location`** | <code>string</code> | | | 7.1.0 | |
|
|
1437
1484
|
| **`notes`** | <code>string</code> | | | 7.1.0 | |
|
|
1438
|
-
| **`priority`** | <code>number</code> |
|
|
1485
|
+
| **`priority`** | <code>number</code> | Priority: `0` none, `1` highest through `9` lowest. | | 7.1.0 | |
|
|
1439
1486
|
| **`recurrence`** | <code><a href="#recurrencerule">RecurrenceRule</a></code> | | | 7.1.0 | iOS |
|
|
1440
1487
|
| **`startDate`** | <code>number</code> | When the reminder starts, in milliseconds since the epoch. Relative `alerts` use this date. | | 7.1.0 | |
|
|
1441
1488
|
| **`title`** | <code>string</code> | | | 7.1.0 | |
|
|
@@ -1482,7 +1529,7 @@ Options for {@link CalendarAccess#requestPermission}.
|
|
|
1482
1529
|
| **`listId`** | <code>string</code> | | | 7.1.0 | |
|
|
1483
1530
|
| **`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
1531
|
| **`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> |
|
|
1532
|
+
| **`priority`** | <code>number</code> | Priority: `0` none, `1` highest through `9` lowest. Omit to leave the existing value unchanged. | | 7.1.0 | |
|
|
1486
1533
|
| **`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
1534
|
| **`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
1535
|
| **`title`** | <code>string</code> | | | 7.1.0 | |
|
|
@@ -1496,21 +1543,21 @@ Options for {@link CalendarAccess#requestPermission}.
|
|
|
1496
1543
|
|
|
1497
1544
|
#### Reminder
|
|
1498
1545
|
|
|
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 | |
|
|
1546
|
+
| Prop | Type | Description | Since | Platform |
|
|
1547
|
+
| -------------------- | ----------------------------- | --------------------------------------------------- | ----- | -------- |
|
|
1548
|
+
| **`id`** | <code>string</code> | | 7.1.0 | |
|
|
1549
|
+
| **`title`** | <code>string \| null</code> | | 7.1.0 | |
|
|
1550
|
+
| **`listId`** | <code>string \| null</code> | | 7.1.0 | |
|
|
1551
|
+
| **`isCompleted`** | <code>boolean</code> | | 7.1.0 | |
|
|
1552
|
+
| **`priority`** | <code>number \| null</code> | Priority: `0` none, `1` highest through `9` lowest. | 7.1.0 | |
|
|
1553
|
+
| **`notes`** | <code>string \| null</code> | | 7.1.0 | |
|
|
1554
|
+
| **`location`** | <code>string \| null</code> | | 7.1.0 | |
|
|
1555
|
+
| **`url`** | <code>string \| null</code> | | 7.1.0 | |
|
|
1556
|
+
| **`startDate`** | <code>number \| null</code> | | 7.1.0 | |
|
|
1557
|
+
| **`dueDate`** | <code>number \| null</code> | | 7.1.0 | |
|
|
1558
|
+
| **`completionDate`** | <code>number \| null</code> | | 7.1.0 | |
|
|
1559
|
+
| **`recurrence`** | <code>RecurrenceRule[]</code> | | 7.1.0 | iOS |
|
|
1560
|
+
| **`alerts`** | <code>number[]</code> | | 7.1.0 | |
|
|
1514
1561
|
|
|
1515
1562
|
#### GetReminderByIdOptions
|
|
1516
1563
|
|
|
@@ -1530,6 +1577,12 @@ Options for {@link CalendarAccess#requestPermission}.
|
|
|
1530
1577
|
| ------------- | --------------------- | ----- |
|
|
1531
1578
|
| **`listIds`** | <code>string[]</code> | 7.1.0 |
|
|
1532
1579
|
|
|
1580
|
+
#### DeleteReminderWithPromptResult
|
|
1581
|
+
|
|
1582
|
+
| Prop | Type | Description | Since | Platform |
|
|
1583
|
+
| ------------- | -------------------- | ------------------------------------ | ----- | -------- |
|
|
1584
|
+
| **`deleted`** | <code>boolean</code> | Whether the user confirmed deletion. | 7.2.0 | iOS |
|
|
1585
|
+
|
|
1533
1586
|
#### DeleteReminderWithPromptOptions
|
|
1534
1587
|
|
|
1535
1588
|
| Prop | Type | Description | Default | Since |
|
|
@@ -1548,12 +1601,12 @@ Options for {@link CalendarAccess#requestPermission}.
|
|
|
1548
1601
|
|
|
1549
1602
|
#### UpdateRemindersListOptions
|
|
1550
1603
|
|
|
1551
|
-
| Prop | Type
|
|
1552
|
-
| ------------ |
|
|
1553
|
-
| **`color`** | <code>
|
|
1554
|
-
| **`commit`** | <code>boolean</code>
|
|
1555
|
-
| **`id`** | <code>string</code>
|
|
1556
|
-
| **`title`** | <code>string</code>
|
|
1604
|
+
| Prop | Type | Description | Default | Since | Platform |
|
|
1605
|
+
| ------------ | --------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------ | ----------------- | ----- | -------- |
|
|
1606
|
+
| **`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 |
|
|
1607
|
+
| **`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 |
|
|
1608
|
+
| **`id`** | <code>string</code> | The identifier of the list to update. | | 8.2.0 | iOS |
|
|
1609
|
+
| **`title`** | <code>string</code> | The new title of the list. If omitted, the title is left unchanged. | | 8.2.0 | iOS |
|
|
1557
1610
|
|
|
1558
1611
|
### Type Aliases
|
|
1559
1612
|
|
|
@@ -1590,8 +1643,20 @@ Construct a type with a set of properties K of type T
|
|
|
1590
1643
|
|
|
1591
1644
|
<code>'canceled' | 'saved' | 'deleted'</code>
|
|
1592
1645
|
|
|
1646
|
+
#### SystemColorName
|
|
1647
|
+
|
|
1648
|
+
Named iOS system color.
|
|
1649
|
+
|
|
1650
|
+
<code>'blue' | 'brown' | 'gray' | 'green' | 'indigo' | 'orange' | 'pink' | 'purple' | 'red' | 'teal' | 'yellow'</code>
|
|
1651
|
+
|
|
1593
1652
|
#### RemindersList
|
|
1594
1653
|
|
|
1654
|
+
A reminders list on iOS.
|
|
1655
|
+
|
|
1656
|
+
Same shape as {@link <a href="#calendar">Calendar</a>} today. Android-only calendar fields
|
|
1657
|
+
(`visible`, `accountName`, `ownerAccount`, `maxReminders`, `internalTitle`,
|
|
1658
|
+
`location`) are always `null` on reminder list payloads.
|
|
1659
|
+
|
|
1595
1660
|
<code>
|
|
1596
1661
|
<a href="#calendar">Calendar</a>
|
|
1597
1662
|
</code>
|