@ebarooni/capacitor-calendar 8.7.0 → 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.
- package/README.md +260 -167
- package/android/src/main/java/dev/barooni/capacitor/calendar/PluginError.kt +2 -0
- package/android/src/main/java/dev/barooni/capacitor/calendar/implementation/CapacitorCalendar.kt +54 -5
- 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/ImplementationHelper.kt +80 -0
- package/dist/docs.json +463 -81
- package/dist/esm/index.d.ts +5 -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/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 +165 -29
- package/dist/plugin.cjs.js.map +1 -1
- package/dist/plugin.js +165 -29
- package/dist/plugin.js.map +1 -1
- 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/Utils/ImplementationHelper.swift +44 -0
- package/ios/Plugin/Utils/UIColorFromHexExtension.swift +5 -0
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -21,71 +21,95 @@
|
|
|
21
21
|
|
|
22
22
|

|
|
23
23
|
|
|
24
|
-
|
|
24
|
+
`@ebarooni/capacitor-calendar` connects your Capacitor app to the native calendar. On iOS and Android, create, edit, and list events, and manage calendars and permissions. iOS also supports reminders. On the web, the plugin builds a downloadable `.ics` file; it does not write to a device calendar.
|
|
25
25
|
|
|
26
|
-
##
|
|
26
|
+
## Table of Contents
|
|
27
27
|
|
|
28
|
-
-
|
|
29
|
-
-
|
|
30
|
-
-
|
|
31
|
-
-
|
|
32
|
-
-
|
|
33
|
-
-
|
|
34
|
-
-
|
|
28
|
+
- [Features and Platforms](#features-and-platforms)
|
|
29
|
+
- [Demo](#demo)
|
|
30
|
+
- [Why this plugin?](#why-this-plugin)
|
|
31
|
+
- [MCP Server](#mcp-server)
|
|
32
|
+
- [Capacitor Compatibility](#capacitor-compatibility)
|
|
33
|
+
- [Installation](#installation)
|
|
34
|
+
- [Setup](#setup)
|
|
35
|
+
- [Quick Start](#quick-start)
|
|
36
|
+
- [Usage Examples](#usage-examples)
|
|
37
|
+
- [Documentation](#documentation)
|
|
38
|
+
- [Changelog](#changelog)
|
|
39
|
+
- [Breaking Changes](#breaking-changes)
|
|
40
|
+
- [API](#api)
|
|
41
|
+
- [Contributing](#contributing)
|
|
42
|
+
- [License](#license)
|
|
35
43
|
|
|
36
|
-
##
|
|
44
|
+
## Features and Platforms
|
|
37
45
|
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
46
|
+
| Capability | iOS | Android | Web |
|
|
47
|
+
| :------------------------------------------------ | :-: | :-----: | :-----------: |
|
|
48
|
+
| Create, update, and delete events | ✅ | ✅ | Create only\* |
|
|
49
|
+
| Native prompts to create, edit, and delete events | ✅ | ✅ | Create only\* |
|
|
50
|
+
| List events in a date range | ✅ | ✅ | – |
|
|
51
|
+
| Request calendar permissions | ✅ | ✅ | – |
|
|
52
|
+
| List, create, modify, and delete calendars | ✅ | ✅ | – |
|
|
53
|
+
| Open the native Calendar app | ✅ | ✅ | – |
|
|
54
|
+
| Calendar sources and a calendar picker prompt | ✅ | – | – |
|
|
55
|
+
| Reminders and reminder lists | ✅ | – | – |
|
|
56
|
+
|
|
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).
|
|
58
|
+
|
|
59
|
+
## Demo
|
|
60
|
+
|
|
61
|
+
| iOS | Android |
|
|
62
|
+
| :-----------------------------: | :---------------------------------: |
|
|
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.
|
|
41
66
|
|
|
42
67
|
## Why this plugin?
|
|
43
68
|
|
|
44
|
-
- **
|
|
45
|
-
- **Actively maintained
|
|
46
|
-
- **Fast support.** Questions
|
|
47
|
-
- **
|
|
69
|
+
- **Established.** Available since Capacitor 5, with years of real-world use behind it.
|
|
70
|
+
- **Actively maintained.** The original author still owns the codebase and ships fixes and features.
|
|
71
|
+
- **Fast support.** Questions and bug reports get quick answers.
|
|
72
|
+
- **Lower vendor risk.** Relying on one plugin author for everything is risky. Independent, focused maintainers keep your stack resilient.
|
|
48
73
|
|
|
49
74
|
## MCP Server
|
|
50
75
|
|
|
51
|
-
`@ebarooni/capacitor-calendar` ships an official [MCP](https://modelcontextprotocol.io) server
|
|
76
|
+
`@ebarooni/capacitor-calendar` ships an official [MCP](https://modelcontextprotocol.io) server. It gives AI coding assistants accurate, grounded knowledge of the plugin.
|
|
52
77
|
|
|
53
78
|
```bash
|
|
54
|
-
docker run --rm -d --name capacitor-calendar-mcp -p 8080:8080 ghcr.io/ebarooni/capacitor-calendar-mcp:1.
|
|
79
|
+
docker run --rm -d --name capacitor-calendar-mcp -p 8080:8080 ghcr.io/ebarooni/capacitor-calendar-mcp:1.2.0
|
|
55
80
|
```
|
|
56
81
|
|
|
57
82
|
See [`mcp/README.md`](mcp/README.md) for client configuration and full details.
|
|
58
83
|
|
|
59
|
-
##
|
|
84
|
+
## Capacitor Compatibility
|
|
60
85
|
|
|
61
|
-
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
- [
|
|
67
|
-
- [Changelog](#changelog)
|
|
68
|
-
- [Breaking Changes](#breaking-changes)
|
|
69
|
-
- [API](#api)
|
|
70
|
-
- [Contributing](#contributing)
|
|
71
|
-
- [License](#license)
|
|
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` |  |
|
|
91
|
+
| `7.x` | `latest-7` |  |
|
|
72
92
|
|
|
73
93
|
## Installation
|
|
74
94
|
|
|
95
|
+
**Capacitor 8:**
|
|
96
|
+
|
|
75
97
|
```bash
|
|
76
98
|
npm install @ebarooni/capacitor-calendar
|
|
99
|
+
# or: npm install @ebarooni/capacitor-calendar@latest
|
|
77
100
|
npx cap sync
|
|
78
101
|
```
|
|
79
102
|
|
|
80
|
-
|
|
103
|
+
**Capacitor 7:**
|
|
81
104
|
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
105
|
+
```bash
|
|
106
|
+
npm install @ebarooni/capacitor-calendar@latest-7
|
|
107
|
+
npx cap sync
|
|
108
|
+
```
|
|
85
109
|
|
|
86
110
|
## Setup
|
|
87
111
|
|
|
88
|
-
This plugin works with native calendar APIs, so you
|
|
112
|
+
This plugin works with native calendar APIs, so you need to configure permissions on each platform before you request access at runtime. After setup, see [Quick Start](#quick-start) to request permissions in code.
|
|
89
113
|
|
|
90
114
|
### Android
|
|
91
115
|
|
|
@@ -96,7 +120,7 @@ Add these permissions to `android/app/src/main/AndroidManifest.xml`:
|
|
|
96
120
|
<uses-permission android:name="android.permission.WRITE_CALENDAR" />
|
|
97
121
|
```
|
|
98
122
|
|
|
99
|
-
|
|
123
|
+
Request the matching runtime permissions before you read from or write to the calendar.
|
|
100
124
|
|
|
101
125
|
### iOS
|
|
102
126
|
|
|
@@ -120,7 +144,7 @@ Add the appropriate usage description keys to `ios/App/App/Info.plist`. Starting
|
|
|
120
144
|
```
|
|
121
145
|
|
|
122
146
|
> [!IMPORTANT]
|
|
123
|
-
> Only include the keys your app actually needs. If you
|
|
147
|
+
> Only include the keys your app actually needs. If you only create events, you can omit the full access and reminders entries.
|
|
124
148
|
|
|
125
149
|
### Official References
|
|
126
150
|
|
|
@@ -129,7 +153,7 @@ Add the appropriate usage description keys to `ios/App/App/Info.plist`. Starting
|
|
|
129
153
|
|
|
130
154
|
## Quick Start
|
|
131
155
|
|
|
132
|
-
|
|
156
|
+
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).
|
|
133
157
|
|
|
134
158
|
```typescript
|
|
135
159
|
import { CapacitorCalendar } from '@ebarooni/capacitor-calendar';
|
|
@@ -160,9 +184,28 @@ console.log('Event created with ID:', id);
|
|
|
160
184
|
|
|
161
185
|
## Usage Examples
|
|
162
186
|
|
|
187
|
+
### Create and download an event on the web
|
|
188
|
+
|
|
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)).
|
|
190
|
+
|
|
191
|
+
```typescript
|
|
192
|
+
import { CapacitorCalendar } from '@ebarooni/capacitor-calendar';
|
|
193
|
+
|
|
194
|
+
const startDate = Date.now() + 60 * 60 * 1000;
|
|
195
|
+
const endDate = startDate + 60 * 60 * 1000;
|
|
196
|
+
|
|
197
|
+
const { ics } = await CapacitorCalendar.createEvent({
|
|
198
|
+
title: 'Team standup',
|
|
199
|
+
startDate,
|
|
200
|
+
endDate,
|
|
201
|
+
icsFileName: 'team-standup.ics',
|
|
202
|
+
autoDownloadIcsFile: true,
|
|
203
|
+
});
|
|
204
|
+
```
|
|
205
|
+
|
|
163
206
|
### Open the native event editor
|
|
164
207
|
|
|
165
|
-
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):
|
|
166
209
|
|
|
167
210
|
```typescript
|
|
168
211
|
await CapacitorCalendar.createEventWithPrompt({
|
|
@@ -174,7 +217,22 @@ await CapacitorCalendar.createEventWithPrompt({
|
|
|
174
217
|
```
|
|
175
218
|
|
|
176
219
|
> [!NOTE]
|
|
177
|
-
> On Android, this method always returns null
|
|
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`.
|
|
221
|
+
|
|
222
|
+
### Modify or delete an event
|
|
223
|
+
|
|
224
|
+
The sample below is for Android and iOS. Use an `id` from `createEvent` or `listEventsInRange`:
|
|
225
|
+
|
|
226
|
+
```typescript
|
|
227
|
+
await CapacitorCalendar.modifyEvent({
|
|
228
|
+
id: eventId,
|
|
229
|
+
title: 'Updated title',
|
|
230
|
+
});
|
|
231
|
+
|
|
232
|
+
await CapacitorCalendar.deleteEvent({
|
|
233
|
+
id: eventId,
|
|
234
|
+
});
|
|
235
|
+
```
|
|
178
236
|
|
|
179
237
|
### List events in a range
|
|
180
238
|
|
|
@@ -449,9 +507,10 @@ A grant covers both `readReminders` and `writeReminders`.
|
|
|
449
507
|
createEventWithPrompt(options?: CreateEventWithPromptOptions | undefined) => Promise<CreateEventWithPromptResult>
|
|
450
508
|
```
|
|
451
509
|
|
|
452
|
-
Opens
|
|
453
|
-
On Android
|
|
454
|
-
|
|
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.
|
|
455
514
|
|
|
456
515
|
| Param | Type |
|
|
457
516
|
| ------------- | ------------------------------------------------------------------------------------- |
|
|
@@ -461,7 +520,7 @@ Fetch the events to find the ID of the newly created event.
|
|
|
461
520
|
|
|
462
521
|
**Since:** 0.1.0
|
|
463
522
|
|
|
464
|
-
**Platform:** Android, iOS
|
|
523
|
+
**Platform:** Android, iOS, Web
|
|
465
524
|
|
|
466
525
|
---
|
|
467
526
|
|
|
@@ -494,9 +553,7 @@ createEvent(options: CreateEventOptions) => Promise<CreateEventResult>
|
|
|
494
553
|
|
|
495
554
|
Creates an event in the calendar.
|
|
496
555
|
On Android and iOS, inserts into the system calendar and returns its `id`.
|
|
497
|
-
On Web,
|
|
498
|
-
The app must download or open that file (for example with `downloadIcsFile(...)`);
|
|
499
|
-
this method does not trigger a download.
|
|
556
|
+
On Web, builds an `.ics` `File` as `ics` (no calendar store). See MCP `docs://web-behavior`.
|
|
500
557
|
|
|
501
558
|
| Param | Type |
|
|
502
559
|
| ------------- | ----------------------------------------------------------------- |
|
|
@@ -836,12 +893,12 @@ Deletes a reminders list.
|
|
|
836
893
|
### fetchAllRemindersSources()
|
|
837
894
|
|
|
838
895
|
```typescript
|
|
839
|
-
fetchAllRemindersSources() => Promise<
|
|
896
|
+
fetchAllRemindersSources() => Promise<FetchAllCalendarSourcesResult>
|
|
840
897
|
```
|
|
841
898
|
|
|
842
899
|
Retrieves a list of calendar sources.
|
|
843
900
|
|
|
844
|
-
**Returns:** <code>Promise<
|
|
901
|
+
**Returns:** <code>Promise<<a href="#fetchallcalendarsourcesresult">FetchAllCalendarSourcesResult</a>></code>
|
|
845
902
|
|
|
846
903
|
**Since:** 6.6.0
|
|
847
904
|
|
|
@@ -866,12 +923,12 @@ Opens the reminders app.
|
|
|
866
923
|
### getDefaultRemindersList()
|
|
867
924
|
|
|
868
925
|
```typescript
|
|
869
|
-
getDefaultRemindersList() => Promise<
|
|
926
|
+
getDefaultRemindersList() => Promise<GetDefaultRemindersListResult>
|
|
870
927
|
```
|
|
871
928
|
|
|
872
929
|
Retrieves the default reminders list.
|
|
873
930
|
|
|
874
|
-
**Returns:** <code>Promise<
|
|
931
|
+
**Returns:** <code>Promise<<a href="#getdefaultreminderslistresult">GetDefaultRemindersListResult</a>></code>
|
|
875
932
|
|
|
876
933
|
**Since:** 7.1.0
|
|
877
934
|
|
|
@@ -882,12 +939,12 @@ Retrieves the default reminders list.
|
|
|
882
939
|
### getRemindersLists()
|
|
883
940
|
|
|
884
941
|
```typescript
|
|
885
|
-
getRemindersLists() => Promise<
|
|
942
|
+
getRemindersLists() => Promise<GetRemindersListsResult>
|
|
886
943
|
```
|
|
887
944
|
|
|
888
945
|
Retrieves all available reminders lists.
|
|
889
946
|
|
|
890
|
-
**Returns:** <code>Promise<
|
|
947
|
+
**Returns:** <code>Promise<<a href="#getreminderslistsresult">GetRemindersListsResult</a>></code>
|
|
891
948
|
|
|
892
949
|
**Since:** 7.1.0
|
|
893
950
|
|
|
@@ -977,7 +1034,7 @@ Modifies a reminder.
|
|
|
977
1034
|
getReminderById(options: GetReminderByIdOptions) => Promise<GetReminderByIdResult>
|
|
978
1035
|
```
|
|
979
1036
|
|
|
980
|
-
|
|
1037
|
+
Retrieves a reminder by id.
|
|
981
1038
|
|
|
982
1039
|
| Param | Type |
|
|
983
1040
|
| ------------- | ------------------------------------------------------------------------- |
|
|
@@ -1014,7 +1071,7 @@ Retrieves reminders from multiple lists.
|
|
|
1014
1071
|
### deleteReminderWithPrompt(...)
|
|
1015
1072
|
|
|
1016
1073
|
```typescript
|
|
1017
|
-
deleteReminderWithPrompt(options: DeleteReminderWithPromptOptions) => Promise<
|
|
1074
|
+
deleteReminderWithPrompt(options: DeleteReminderWithPromptOptions) => Promise<DeleteReminderWithPromptResult>
|
|
1018
1075
|
```
|
|
1019
1076
|
|
|
1020
1077
|
Opens a dialog to delete a reminder.
|
|
@@ -1023,7 +1080,7 @@ Opens a dialog to delete a reminder.
|
|
|
1023
1080
|
| ------------- | ------------------------------------------------------------------------------------------- |
|
|
1024
1081
|
| **`options`** | <code><a href="#deletereminderwithpromptoptions">DeleteReminderWithPromptOptions</a></code> |
|
|
1025
1082
|
|
|
1026
|
-
**Returns:** <code>Promise<
|
|
1083
|
+
**Returns:** <code>Promise<<a href="#deletereminderwithpromptresult">DeleteReminderWithPromptResult</a>></code>
|
|
1027
1084
|
|
|
1028
1085
|
**Since:** 7.2.0
|
|
1029
1086
|
|
|
@@ -1037,7 +1094,7 @@ Opens a dialog to delete a reminder.
|
|
|
1037
1094
|
updateRemindersList(options: UpdateRemindersListOptions) => Promise<UpdateRemindersListResult>
|
|
1038
1095
|
```
|
|
1039
1096
|
|
|
1040
|
-
|
|
1097
|
+
Updates a reminders list.
|
|
1041
1098
|
|
|
1042
1099
|
| Param | Type |
|
|
1043
1100
|
| ------------- | --------------------------------------------------------------------------------- |
|
|
@@ -1071,40 +1128,44 @@ Options for {@link CalendarAccess#requestPermission}.
|
|
|
1071
1128
|
|
|
1072
1129
|
#### CreateEventWithPromptResult
|
|
1073
1130
|
|
|
1074
|
-
| Prop
|
|
1075
|
-
|
|
|
1076
|
-
| **`
|
|
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 |
|
|
1077
1135
|
|
|
1078
1136
|
#### CreateEventWithPromptOptions
|
|
1079
1137
|
|
|
1080
|
-
| Prop
|
|
1081
|
-
|
|
|
1082
|
-
| **`alerts`**
|
|
1083
|
-
| **`
|
|
1084
|
-
| **`
|
|
1085
|
-
| **`
|
|
1086
|
-
| **`
|
|
1087
|
-
| **`
|
|
1088
|
-
| **`
|
|
1089
|
-
| **`
|
|
1090
|
-
| **`
|
|
1091
|
-
| **`
|
|
1092
|
-
| **`
|
|
1093
|
-
| **`
|
|
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 |
|
|
1094
1155
|
|
|
1095
1156
|
#### EventRecurrenceRule
|
|
1096
1157
|
|
|
1097
|
-
| Prop | Type | Description | Default | Since | Platform
|
|
1098
|
-
| -------------------- | ------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------- | ----- |
|
|
1099
|
-
| **`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 |
|
|
1100
|
-
| **`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 |
|
|
1101
|
-
| **`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 |
|
|
1102
|
-
| **`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 |
|
|
1103
|
-
| **`daysOfTheYear`** | <code>number[]</code> | Limits a yearly recurrence to specific days of the year (1 to 366). | | 7.3.0 | iOS |
|
|
1104
|
-
| **`end`** | <code>number</code> | End date of the recurrence series as a Unix timestamp in milliseconds. | | 7.1.0 | Android, iOS |
|
|
1105
|
-
| **`frequency`** | <code><a href="#recurrencefrequency">RecurrenceFrequency</a></code> | How often the event repeats. | | 7.3.0 | Android, iOS |
|
|
1106
|
-
| **`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 |
|
|
1107
|
-
| **`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 |
|
|
1108
1169
|
|
|
1109
1170
|
#### ModifyEventWithPromptOptions
|
|
1110
1171
|
|
|
@@ -1115,6 +1176,7 @@ Options for {@link CalendarAccess#requestPermission}.
|
|
|
1115
1176
|
| **`calendarId`** | <code>string</code> | | 0.1.0 | iOS |
|
|
1116
1177
|
| **`description`** | <code>string</code> | | 7.1.0 | Android, iOS |
|
|
1117
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 |
|
|
1118
1180
|
| **`invitees`** | <code>string[]</code> | An array of emails to invite. | 7.1.0 | Android |
|
|
1119
1181
|
| **`isAllDay`** | <code>boolean</code> | | 0.1.0 | Android, iOS |
|
|
1120
1182
|
| **`location`** | <code>string</code> | | 0.1.0 | Android, iOS |
|
|
@@ -1122,36 +1184,36 @@ Options for {@link CalendarAccess#requestPermission}.
|
|
|
1122
1184
|
| **`startDate`** | <code>number</code> | | 0.1.0 | Android, iOS |
|
|
1123
1185
|
| **`title`** | <code>string</code> | | 0.1.0 | Android, iOS |
|
|
1124
1186
|
| **`url`** | <code>string</code> | | 0.1.0 | iOS |
|
|
1125
|
-
| **`id`** | <code>string</code> | The ID of the event to be modified. | 7.1.0 | Android, iOS |
|
|
1126
1187
|
|
|
1127
1188
|
#### CreateEventResult
|
|
1128
1189
|
|
|
1129
|
-
| Prop | Type | Description
|
|
1130
|
-
| --------- | --------------------------- |
|
|
1131
|
-
| **`ics`** | <code>File \| null</code> | An `.ics` file (`text/calendar`) with one `VEVENT`. Always `null` on Android and iOS.
|
|
1132
|
-
| **`id`** | <code>string \| null</code> | The identifier of the created event. Always `null` on Web. Present on Android and iOS after a successful create.
|
|
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 |
|
|
1133
1194
|
|
|
1134
1195
|
#### CreateEventOptions
|
|
1135
1196
|
|
|
1136
|
-
| Prop
|
|
1137
|
-
|
|
|
1138
|
-
| **`alerts`**
|
|
1139
|
-
| **`attendees`**
|
|
1140
|
-
| **`
|
|
1141
|
-
| **`
|
|
1142
|
-
| **`
|
|
1143
|
-
| **`
|
|
1144
|
-
| **`
|
|
1145
|
-
| **`
|
|
1146
|
-
| **`
|
|
1147
|
-
| **`
|
|
1148
|
-
| **`
|
|
1149
|
-
| **`
|
|
1150
|
-
| **`
|
|
1151
|
-
| **`
|
|
1152
|
-
| **`
|
|
1153
|
-
| **`
|
|
1154
|
-
| **`
|
|
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 |
|
|
1155
1217
|
|
|
1156
1218
|
#### EventGuest
|
|
1157
1219
|
|
|
@@ -1270,22 +1332,23 @@ Options for {@link CalendarAccess#requestPermission}.
|
|
|
1270
1332
|
|
|
1271
1333
|
#### Calendar
|
|
1272
1334
|
|
|
1273
|
-
| Prop | Type
|
|
1274
|
-
| -------------------------------- |
|
|
1275
|
-
| **`id`** | <code>string</code>
|
|
1276
|
-
| **`title`** | <code>string \| null</code>
|
|
1277
|
-
| **`internalTitle`** | <code>string \| null</code>
|
|
1278
|
-
| **`color`** | <code>string \| null</code>
|
|
1279
|
-
| **`
|
|
1280
|
-
| **`
|
|
1281
|
-
| **`
|
|
1282
|
-
| **`
|
|
1283
|
-
| **`
|
|
1284
|
-
| **`
|
|
1285
|
-
| **`
|
|
1286
|
-
| **`
|
|
1287
|
-
| **`
|
|
1288
|
-
| **`
|
|
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 |
|
|
1289
1352
|
|
|
1290
1353
|
#### CalendarSource
|
|
1291
1354
|
|
|
@@ -1334,13 +1397,13 @@ Options for {@link CalendarAccess#requestPermission}.
|
|
|
1334
1397
|
|
|
1335
1398
|
#### CreateCalendarOptions
|
|
1336
1399
|
|
|
1337
|
-
| Prop | Type
|
|
1338
|
-
| ------------------ |
|
|
1339
|
-
| **`title`** | <code>string</code>
|
|
1340
|
-
| **`color`** | <code>string
|
|
1341
|
-
| **`sourceId`** | <code>string</code>
|
|
1342
|
-
| **`accountName`** | <code>string</code>
|
|
1343
|
-
| **`ownerAccount`** | <code>string</code>
|
|
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 |
|
|
1344
1407
|
|
|
1345
1408
|
#### DeleteCalendarOptions
|
|
1346
1409
|
|
|
@@ -1350,11 +1413,11 @@ Options for {@link CalendarAccess#requestPermission}.
|
|
|
1350
1413
|
|
|
1351
1414
|
#### ModifyCalendarOptions
|
|
1352
1415
|
|
|
1353
|
-
| Prop | Type
|
|
1354
|
-
| ----------- |
|
|
1355
|
-
| **`id`** | <code>string</code>
|
|
1356
|
-
| **`title`** | <code>string</code>
|
|
1357
|
-
| **`color`** | <code>string
|
|
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 |
|
|
1358
1421
|
|
|
1359
1422
|
#### CreateRemindersListResult
|
|
1360
1423
|
|
|
@@ -1364,12 +1427,12 @@ Options for {@link CalendarAccess#requestPermission}.
|
|
|
1364
1427
|
|
|
1365
1428
|
#### CreateRemindersListOptions
|
|
1366
1429
|
|
|
1367
|
-
| Prop | Type
|
|
1368
|
-
| -------------- |
|
|
1369
|
-
| **`color`** | <code>
|
|
1370
|
-
| **`commit`** | <code>boolean</code>
|
|
1371
|
-
| **`sourceId`** | <code>string</code>
|
|
1372
|
-
| **`title`** | <code>string</code>
|
|
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 |
|
|
1373
1436
|
|
|
1374
1437
|
#### DeleteRemindersListOptions
|
|
1375
1438
|
|
|
@@ -1378,6 +1441,18 @@ Options for {@link CalendarAccess#requestPermission}.
|
|
|
1378
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 |
|
|
1379
1442
|
| **`id`** | <code>string</code> | Identifier of the reminders list to delete. | | 8.2.0 | iOS |
|
|
1380
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
|
+
|
|
1381
1456
|
#### CreateReminderResult
|
|
1382
1457
|
|
|
1383
1458
|
| Prop | Type | Description | Since | Platform |
|
|
@@ -1396,7 +1471,7 @@ Options for {@link CalendarAccess#requestPermission}.
|
|
|
1396
1471
|
| **`listId`** | <code>string</code> | | | 7.1.0 | |
|
|
1397
1472
|
| **`location`** | <code>string</code> | | | 7.1.0 | |
|
|
1398
1473
|
| **`notes`** | <code>string</code> | | | 7.1.0 | |
|
|
1399
|
-
| **`priority`** | <code>number</code> |
|
|
1474
|
+
| **`priority`** | <code>number</code> | Priority: `0` none, `1` highest through `9` lowest. | | 7.1.0 | |
|
|
1400
1475
|
| **`recurrence`** | <code><a href="#recurrencerule">RecurrenceRule</a></code> | | | 7.1.0 | iOS |
|
|
1401
1476
|
| **`startDate`** | <code>number</code> | When the reminder starts, in milliseconds since the epoch. Relative `alerts` use this date. | | 7.1.0 | |
|
|
1402
1477
|
| **`title`** | <code>string</code> | | | 7.1.0 | |
|
|
@@ -1443,7 +1518,7 @@ Options for {@link CalendarAccess#requestPermission}.
|
|
|
1443
1518
|
| **`listId`** | <code>string</code> | | | 7.1.0 | |
|
|
1444
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 | |
|
|
1445
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 | |
|
|
1446
|
-
| **`priority`** | <code>number</code> |
|
|
1521
|
+
| **`priority`** | <code>number</code> | Priority: `0` none, `1` highest through `9` lowest. Omit to leave the existing value unchanged. | | 7.1.0 | |
|
|
1447
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 |
|
|
1448
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 | |
|
|
1449
1524
|
| **`title`** | <code>string</code> | | | 7.1.0 | |
|
|
@@ -1457,21 +1532,21 @@ Options for {@link CalendarAccess#requestPermission}.
|
|
|
1457
1532
|
|
|
1458
1533
|
#### Reminder
|
|
1459
1534
|
|
|
1460
|
-
| Prop | Type | Since | Platform |
|
|
1461
|
-
| -------------------- | ----------------------------- | ----- | -------- |
|
|
1462
|
-
| **`id`** | <code>string</code> | 7.1.0 | |
|
|
1463
|
-
| **`title`** | <code>string \| null</code> | 7.1.0 | |
|
|
1464
|
-
| **`listId`** | <code>string \| null</code> | 7.1.0 | |
|
|
1465
|
-
| **`isCompleted`** | <code>boolean</code> | 7.1.0 | |
|
|
1466
|
-
| **`priority`** | <code>number \| null</code> | 7.1.0 | |
|
|
1467
|
-
| **`notes`** | <code>string \| null</code> | 7.1.0 | |
|
|
1468
|
-
| **`location`** | <code>string \| null</code> | 7.1.0 | |
|
|
1469
|
-
| **`url`** | <code>string \| null</code> | 7.1.0 | |
|
|
1470
|
-
| **`startDate`** | <code>number \| null</code> | 7.1.0 | |
|
|
1471
|
-
| **`dueDate`** | <code>number \| null</code> | 7.1.0 | |
|
|
1472
|
-
| **`completionDate`** | <code>number \| null</code> | 7.1.0 | |
|
|
1473
|
-
| **`recurrence`** | <code>RecurrenceRule[]</code> | 7.1.0 | iOS |
|
|
1474
|
-
| **`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 | |
|
|
1475
1550
|
|
|
1476
1551
|
#### GetReminderByIdOptions
|
|
1477
1552
|
|
|
@@ -1491,6 +1566,12 @@ Options for {@link CalendarAccess#requestPermission}.
|
|
|
1491
1566
|
| ------------- | --------------------- | ----- |
|
|
1492
1567
|
| **`listIds`** | <code>string[]</code> | 7.1.0 |
|
|
1493
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
|
+
|
|
1494
1575
|
#### DeleteReminderWithPromptOptions
|
|
1495
1576
|
|
|
1496
1577
|
| Prop | Type | Description | Default | Since |
|
|
@@ -1509,12 +1590,12 @@ Options for {@link CalendarAccess#requestPermission}.
|
|
|
1509
1590
|
|
|
1510
1591
|
#### UpdateRemindersListOptions
|
|
1511
1592
|
|
|
1512
|
-
| Prop | Type
|
|
1513
|
-
| ------------ |
|
|
1514
|
-
| **`color`** | <code>
|
|
1515
|
-
| **`commit`** | <code>boolean</code>
|
|
1516
|
-
| **`id`** | <code>string</code>
|
|
1517
|
-
| **`title`** | <code>string</code>
|
|
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 |
|
|
1518
1599
|
|
|
1519
1600
|
### Type Aliases
|
|
1520
1601
|
|
|
@@ -1551,8 +1632,20 @@ Construct a type with a set of properties K of type T
|
|
|
1551
1632
|
|
|
1552
1633
|
<code>'canceled' | 'saved' | 'deleted'</code>
|
|
1553
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
|
+
|
|
1554
1641
|
#### RemindersList
|
|
1555
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
|
+
|
|
1556
1649
|
<code>
|
|
1557
1650
|
<a href="#calendar">Calendar</a>
|
|
1558
1651
|
</code>
|