@ebarooni/capacitor-calendar 8.3.0 → 8.5.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 +225 -97
- package/android/src/main/java/dev/barooni/capacitor/calendar/CapacitorCalendarPlugin.kt +42 -7
- package/android/src/main/java/dev/barooni/capacitor/calendar/PluginError.kt +31 -21
- package/android/src/main/java/dev/barooni/capacitor/calendar/implementation/CapacitorCalendar.kt +59 -15
- package/android/src/main/java/dev/barooni/capacitor/calendar/models/inputs/CheckPermissionInput.kt +0 -4
- package/android/src/main/java/dev/barooni/capacitor/calendar/models/inputs/CreateCalendarInput.kt +3 -1
- package/android/src/main/java/dev/barooni/capacitor/calendar/models/inputs/DeleteCalendarInput.kt +4 -1
- package/android/src/main/java/dev/barooni/capacitor/calendar/models/inputs/GetDefaultCalendarInput.kt +9 -0
- package/android/src/main/java/dev/barooni/capacitor/calendar/models/inputs/ModifyCalendarInput.kt +10 -1
- package/android/src/main/java/dev/barooni/capacitor/calendar/models/inputs/RequestPermissionInput.kt +3 -5
- package/android/src/main/java/dev/barooni/capacitor/calendar/models/results/CheckAllPermissionsResult.kt +3 -2
- package/android/src/main/java/dev/barooni/capacitor/calendar/models/results/RequestAllPermissionsResult.kt +1 -1
- package/android/src/main/java/dev/barooni/capacitor/calendar/models/templates/PluginCompletion.kt +8 -0
- package/android/src/main/java/dev/barooni/capacitor/calendar/utils/ImplementationHelper.kt +68 -31
- package/dist/docs.json +562 -70
- package/dist/esm/index.d.ts +12 -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 +8 -0
- package/dist/esm/schemas/enums/calendar-permission-scope.js +8 -0
- package/dist/esm/schemas/enums/calendar-permission-scope.js.map +1 -1
- package/dist/esm/schemas/interfaces/calendar-source.d.ts +3 -0
- package/dist/esm/schemas/interfaces/calendar-source.js.map +1 -1
- package/dist/esm/schemas/interfaces/calendar.d.ts +12 -2
- package/dist/esm/schemas/interfaces/calendar.js.map +1 -1
- package/dist/esm/schemas/interfaces/check-permission-options.d.ts +19 -0
- package/dist/esm/schemas/interfaces/check-permission-options.js +2 -0
- package/dist/esm/schemas/interfaces/check-permission-options.js.map +1 -0
- package/dist/esm/schemas/interfaces/create-calendar-options.d.ts +16 -5
- package/dist/esm/schemas/interfaces/create-calendar-options.js.map +1 -1
- package/dist/esm/schemas/interfaces/create-calendar-result.d.ts +12 -0
- package/dist/esm/schemas/interfaces/create-calendar-result.js +2 -0
- package/dist/esm/schemas/interfaces/create-calendar-result.js.map +1 -0
- package/dist/esm/schemas/interfaces/create-event-options.d.ts +22 -13
- package/dist/esm/schemas/interfaces/create-event-options.js.map +1 -1
- package/dist/esm/schemas/interfaces/create-event-result.d.ts +23 -0
- package/dist/esm/schemas/interfaces/create-event-result.js +2 -0
- package/dist/esm/schemas/interfaces/create-event-result.js.map +1 -0
- package/dist/esm/schemas/interfaces/create-event-with-prompt-result.d.ts +14 -0
- package/dist/esm/schemas/interfaces/create-event-with-prompt-result.js +2 -0
- package/dist/esm/schemas/interfaces/create-event-with-prompt-result.js.map +1 -0
- package/dist/esm/schemas/interfaces/delete-calendar-options.d.ts +1 -0
- package/dist/esm/schemas/interfaces/delete-calendar-options.js.map +1 -1
- package/dist/esm/schemas/interfaces/fetch-all-calendar-sources-result.d.ts +13 -0
- package/dist/esm/schemas/interfaces/fetch-all-calendar-sources-result.js +2 -0
- package/dist/esm/schemas/interfaces/fetch-all-calendar-sources-result.js.map +1 -0
- package/dist/esm/schemas/interfaces/get-default-calendar-options.d.ts +13 -0
- package/dist/esm/schemas/interfaces/get-default-calendar-options.js +2 -0
- package/dist/esm/schemas/interfaces/get-default-calendar-options.js.map +1 -0
- package/dist/esm/schemas/interfaces/list-calendars-result.d.ts +13 -0
- package/dist/esm/schemas/interfaces/list-calendars-result.js +2 -0
- package/dist/esm/schemas/interfaces/list-calendars-result.js.map +1 -0
- package/dist/esm/schemas/interfaces/list-events-in-range-options.d.ts +7 -2
- package/dist/esm/schemas/interfaces/list-events-in-range-options.js.map +1 -1
- package/dist/esm/schemas/interfaces/modify-calendar-options.d.ts +8 -1
- package/dist/esm/schemas/interfaces/modify-calendar-options.js.map +1 -1
- package/dist/esm/schemas/interfaces/open-calendar-options.d.ts +5 -1
- package/dist/esm/schemas/interfaces/open-calendar-options.js.map +1 -1
- package/dist/esm/schemas/interfaces/request-permission-options.d.ts +16 -0
- package/dist/esm/schemas/interfaces/request-permission-options.js +2 -0
- package/dist/esm/schemas/interfaces/request-permission-options.js.map +1 -0
- package/dist/esm/schemas/interfaces/select-calendars-with-prompt-result.d.ts +14 -0
- package/dist/esm/schemas/interfaces/select-calendars-with-prompt-result.js +2 -0
- package/dist/esm/schemas/interfaces/select-calendars-with-prompt-result.js.map +1 -0
- package/dist/esm/sub-definitions/calendar-access.d.ts +22 -10
- package/dist/esm/sub-definitions/calendar-access.js.map +1 -1
- package/dist/esm/sub-definitions/calendar-operations.d.ts +61 -14
- package/dist/esm/sub-definitions/calendar-operations.js.map +1 -1
- package/dist/esm/sub-definitions/event-operations.d.ts +35 -9
- package/dist/esm/sub-definitions/event-operations.js.map +1 -1
- package/dist/esm/sub-definitions/reminders-access.d.ts +4 -0
- package/dist/esm/sub-definitions/reminders-access.js.map +1 -1
- package/dist/esm/web/download-ics-file.d.ts +18 -0
- package/dist/esm/web/download-ics-file.js +33 -0
- package/dist/esm/web/download-ics-file.js.map +1 -0
- package/dist/esm/web/ics.d.ts +21 -0
- package/dist/esm/web/ics.js +252 -0
- package/dist/esm/web/ics.js.map +1 -0
- package/dist/esm/web.d.ts +19 -27
- package/dist/esm/web.js +14 -3
- package/dist/esm/web.js.map +1 -1
- package/dist/plugin.cjs.js +306 -3
- package/dist/plugin.cjs.js.map +1 -1
- package/dist/plugin.js +306 -3
- package/dist/plugin.js.map +1 -1
- package/ios/Plugin/CapacitorCalendarPlugin.swift +19 -16
- package/ios/Plugin/Implementation/CapacitorCalendar.swift +64 -34
- package/ios/Plugin/Models/Inputs/CreateCalendarInput.swift +4 -5
- package/ios/Plugin/Models/Inputs/DeleteCalendarInput.swift +1 -1
- package/ios/Plugin/Models/Inputs/GetDefaultCalendarInput.swift +13 -0
- package/ios/Plugin/Models/Inputs/ModifyCalendarInput.swift +4 -1
- package/ios/Plugin/PluginError.swift +68 -56
- package/ios/Plugin/Utils/ImplementationHelper.swift +15 -12
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
<img src="https://img.shields.io/npm/l/@ebarooni/capacitor-calendar?style=flat-square" />
|
|
7
7
|
</a>
|
|
8
8
|
<a href="https://www.npmjs.com/package/@ebarooni/capacitor-calendar">
|
|
9
|
-
<img src="https://img.shields.io/npm/
|
|
9
|
+
<img src="https://img.shields.io/npm/dm/@ebarooni/capacitor-calendar?style=flat-square" />
|
|
10
10
|
</a>
|
|
11
11
|
<a href="https://www.npmjs.com/package/@ebarooni/capacitor-calendar">
|
|
12
12
|
<img src="https://img.shields.io/npm/v/@ebarooni/capacitor-calendar?style=flat-square" />
|
|
@@ -37,7 +37,7 @@ Full-featured Capacitor plugin for native calendar and reminders access. Manage
|
|
|
37
37
|
|
|
38
38
|
- **iOS** — Full support (including Reminders and advanced features)
|
|
39
39
|
- **Android** — Strong support for all core calendar features
|
|
40
|
-
- **Web** —
|
|
40
|
+
- **Web** — Partial support (create event)
|
|
41
41
|
|
|
42
42
|
## Why this plugin?
|
|
43
43
|
|
|
@@ -51,7 +51,7 @@ Full-featured Capacitor plugin for native calendar and reminders access. Manage
|
|
|
51
51
|
`@ebarooni/capacitor-calendar` ships an official [MCP](https://modelcontextprotocol.io) server so AI coding assistants can work with the plugin accurately.
|
|
52
52
|
|
|
53
53
|
```bash
|
|
54
|
-
docker run --rm -d --name capacitor-calendar-mcp -p 8080:8080 ghcr.io/ebarooni/capacitor-calendar-mcp:1.
|
|
54
|
+
docker run --rm -d --name capacitor-calendar-mcp -p 8080:8080 ghcr.io/ebarooni/capacitor-calendar-mcp:1.1.0
|
|
55
55
|
```
|
|
56
56
|
|
|
57
57
|
See [`mcp/README.md`](mcp/README.md) for client configuration and full details.
|
|
@@ -175,7 +175,9 @@ await CapacitorCalendar.createEventWithPrompt({
|
|
|
175
175
|
> [!NOTE]
|
|
176
176
|
> On Android, this method always returns null. If you need the event ID, call `listEventsInRange(...)` afterward.
|
|
177
177
|
|
|
178
|
-
### List
|
|
178
|
+
### List events in a range
|
|
179
|
+
|
|
180
|
+
`listEventsInRange` returns events that overlap the given range, not only events that start or end inside it. Multi-day events that span the interval are included.
|
|
179
181
|
|
|
180
182
|
```typescript
|
|
181
183
|
const now = Date.now();
|
|
@@ -189,6 +191,20 @@ const { result: events } = await CapacitorCalendar.listEventsInRange({
|
|
|
189
191
|
console.log('Upcoming events:', events);
|
|
190
192
|
```
|
|
191
193
|
|
|
194
|
+
To list events on a single day, use that day's bounds:
|
|
195
|
+
|
|
196
|
+
```typescript
|
|
197
|
+
const startOfDay = new Date();
|
|
198
|
+
startOfDay.setHours(0, 0, 0, 0);
|
|
199
|
+
const startOfNextDay = new Date(startOfDay);
|
|
200
|
+
startOfNextDay.setDate(startOfNextDay.getDate() + 1);
|
|
201
|
+
|
|
202
|
+
const { result: todaysEvents } = await CapacitorCalendar.listEventsInRange({
|
|
203
|
+
from: startOfDay.getTime(),
|
|
204
|
+
to: startOfNextDay.getTime(),
|
|
205
|
+
});
|
|
206
|
+
```
|
|
207
|
+
|
|
192
208
|
### Working with Calendars
|
|
193
209
|
|
|
194
210
|
```typescript
|
|
@@ -252,7 +268,7 @@ See [CHANGELOG.md](CHANGELOG.md) for the latest updates and release history.
|
|
|
252
268
|
* [`selectCalendarsWithPrompt(...)`](#selectcalendarswithprompt)
|
|
253
269
|
* [`fetchAllCalendarSources()`](#fetchallcalendarsources)
|
|
254
270
|
* [`listCalendars()`](#listcalendars)
|
|
255
|
-
* [`getDefaultCalendar()`](#getdefaultcalendar)
|
|
271
|
+
* [`getDefaultCalendar(...)`](#getdefaultcalendar)
|
|
256
272
|
* [`openCalendar(...)`](#opencalendar)
|
|
257
273
|
* [`createCalendar(...)`](#createcalendar)
|
|
258
274
|
* [`deleteCalendar(...)`](#deletecalendar)
|
|
@@ -283,14 +299,15 @@ See [CHANGELOG.md](CHANGELOG.md) for the latest updates and release history.
|
|
|
283
299
|
### checkPermission(...)
|
|
284
300
|
|
|
285
301
|
```typescript
|
|
286
|
-
checkPermission(options:
|
|
302
|
+
checkPermission(options: CheckPermissionOptions) => Promise<{ result: PermissionState; }>
|
|
287
303
|
```
|
|
288
304
|
|
|
289
305
|
Retrieves the current permission state for a given scope.
|
|
306
|
+
On Android, `readReminders` and `writeReminders` resolve to `"prompt"`.
|
|
290
307
|
|
|
291
|
-
| Param | Type
|
|
292
|
-
| ------------- |
|
|
293
|
-
| **`options`** | <code
|
|
308
|
+
| Param | Type |
|
|
309
|
+
| ------------- | ------------------------------------------------------------------------- |
|
|
310
|
+
| **`options`** | <code><a href="#checkpermissionoptions">CheckPermissionOptions</a></code> |
|
|
294
311
|
|
|
295
312
|
**Returns:** <code>Promise<{ result: <a href="#permissionstate">PermissionState</a>; }></code>
|
|
296
313
|
|
|
@@ -308,6 +325,7 @@ checkAllPermissions() => Promise<{ result: CheckAllPermissionsResult; }>
|
|
|
308
325
|
```
|
|
309
326
|
|
|
310
327
|
Retrieves the current state of all permissions.
|
|
328
|
+
On Android, reminder keys always resolve to `"prompt"`.
|
|
311
329
|
|
|
312
330
|
**Returns:** <code>Promise<{ result: <a href="#checkallpermissionsresult">CheckAllPermissionsResult</a>; }></code>
|
|
313
331
|
|
|
@@ -321,14 +339,15 @@ Retrieves the current state of all permissions.
|
|
|
321
339
|
### requestPermission(...)
|
|
322
340
|
|
|
323
341
|
```typescript
|
|
324
|
-
requestPermission(options:
|
|
342
|
+
requestPermission(options: RequestPermissionOptions) => Promise<{ result: PermissionState; }>
|
|
325
343
|
```
|
|
326
344
|
|
|
327
345
|
Requests permission for a given scope.
|
|
346
|
+
On Android, `readReminders` and `writeReminders` reject with `Invalid scope.`
|
|
328
347
|
|
|
329
|
-
| Param | Type
|
|
330
|
-
| ------------- |
|
|
331
|
-
| **`options`** | <code
|
|
348
|
+
| Param | Type |
|
|
349
|
+
| ------------- | ----------------------------------------------------------------------------- |
|
|
350
|
+
| **`options`** | <code><a href="#requestpermissionoptions">RequestPermissionOptions</a></code> |
|
|
332
351
|
|
|
333
352
|
**Returns:** <code>Promise<{ result: <a href="#permissionstate">PermissionState</a>; }></code>
|
|
334
353
|
|
|
@@ -346,6 +365,7 @@ requestAllPermissions() => Promise<{ result: RequestAllPermissionsResult; }>
|
|
|
346
365
|
```
|
|
347
366
|
|
|
348
367
|
Requests permission for all calendar and reminder permissions.
|
|
368
|
+
On Android, only calendar permissions are requested; reminder keys stay `"prompt"`.
|
|
349
369
|
|
|
350
370
|
**Returns:** <code>Promise<{ result: <a href="#checkallpermissionsresult">CheckAllPermissionsResult</a>; }></code>
|
|
351
371
|
|
|
@@ -414,6 +434,8 @@ requestFullRemindersAccess() => Promise<{ result: PermissionState; }>
|
|
|
414
434
|
```
|
|
415
435
|
|
|
416
436
|
Requests read and write access to the reminders.
|
|
437
|
+
Resolves with `"granted"` or `"denied"` (never `"prompt"`).
|
|
438
|
+
A grant covers both `readReminders` and `writeReminders`.
|
|
417
439
|
|
|
418
440
|
**Returns:** <code>Promise<{ result: <a href="#permissionstate">PermissionState</a>; }></code>
|
|
419
441
|
|
|
@@ -427,18 +449,18 @@ Requests read and write access to the reminders.
|
|
|
427
449
|
### createEventWithPrompt(...)
|
|
428
450
|
|
|
429
451
|
```typescript
|
|
430
|
-
createEventWithPrompt(options?: CreateEventWithPromptOptions | undefined) => Promise<
|
|
452
|
+
createEventWithPrompt(options?: CreateEventWithPromptOptions | undefined) => Promise<CreateEventWithPromptResult>
|
|
431
453
|
```
|
|
432
454
|
|
|
433
455
|
Opens the system calendar interface to create a new event.
|
|
434
|
-
On Android always returns `null`.
|
|
456
|
+
On Android always returns `null` for `id`.
|
|
435
457
|
Fetch the events to find the ID of the newly created event.
|
|
436
458
|
|
|
437
459
|
| Param | Type |
|
|
438
460
|
| ------------- | ------------------------------------------------------------------------------------- |
|
|
439
461
|
| **`options`** | <code><a href="#createeventwithpromptoptions">CreateEventWithPromptOptions</a></code> |
|
|
440
462
|
|
|
441
|
-
**Returns:** <code>Promise<
|
|
463
|
+
**Returns:** <code>Promise<<a href="#createeventwithpromptresult">CreateEventWithPromptResult</a>></code>
|
|
442
464
|
|
|
443
465
|
**Since:** 0.1.0
|
|
444
466
|
|
|
@@ -472,20 +494,24 @@ On Android always returns `null`.
|
|
|
472
494
|
### createEvent(...)
|
|
473
495
|
|
|
474
496
|
```typescript
|
|
475
|
-
createEvent(options: CreateEventOptions) => Promise<
|
|
497
|
+
createEvent(options: CreateEventOptions) => Promise<CreateEventResult>
|
|
476
498
|
```
|
|
477
499
|
|
|
478
500
|
Creates an event in the calendar.
|
|
501
|
+
On Android and iOS, inserts into the system calendar and returns its `id`.
|
|
502
|
+
On Web, there is no system calendar store: builds an `.ics` `File` as `ics`.
|
|
503
|
+
The app must download or open that file (for example with `downloadIcsFile(...)`);
|
|
504
|
+
this method does not trigger a download.
|
|
479
505
|
|
|
480
506
|
| Param | Type |
|
|
481
507
|
| ------------- | ----------------------------------------------------------------- |
|
|
482
508
|
| **`options`** | <code><a href="#createeventoptions">CreateEventOptions</a></code> |
|
|
483
509
|
|
|
484
|
-
**Returns:** <code>Promise<
|
|
510
|
+
**Returns:** <code>Promise<<a href="#createeventresult">CreateEventResult</a>></code>
|
|
485
511
|
|
|
486
512
|
**Since:** 0.4.0
|
|
487
513
|
|
|
488
|
-
**Platform:** iOS,
|
|
514
|
+
**Platform:** Android, iOS, Web
|
|
489
515
|
|
|
490
516
|
--------------------
|
|
491
517
|
|
|
@@ -576,7 +602,10 @@ Opens a dialog to delete an event.
|
|
|
576
602
|
listEventsInRange(options: ListEventsInRangeOptions) => Promise<{ result: CalendarEvent[]; }>
|
|
577
603
|
```
|
|
578
604
|
|
|
579
|
-
Retrieves
|
|
605
|
+
Retrieves events that overlap a date range.
|
|
606
|
+
|
|
607
|
+
An event is included when its time interval intersects `[from, to]`, including
|
|
608
|
+
multi-day events that span the range without starting or ending inside it.
|
|
580
609
|
|
|
581
610
|
| Param | Type |
|
|
582
611
|
| ------------- | ----------------------------------------------------------------------------- |
|
|
@@ -609,16 +638,25 @@ Saves pending calendar changes.
|
|
|
609
638
|
### selectCalendarsWithPrompt(...)
|
|
610
639
|
|
|
611
640
|
```typescript
|
|
612
|
-
selectCalendarsWithPrompt(options?: SelectCalendarsWithPromptOptions | undefined) => Promise<
|
|
641
|
+
selectCalendarsWithPrompt(options?: SelectCalendarsWithPromptOptions | undefined) => Promise<SelectCalendarsWithPromptResult>
|
|
613
642
|
```
|
|
614
643
|
|
|
615
644
|
Opens a system interface to choose one or multiple calendars.
|
|
616
645
|
|
|
646
|
+
Calendar access is expected. Call `requestFullCalendarAccess()` first.
|
|
647
|
+
Without authorization the chooser can look empty.
|
|
648
|
+
|
|
649
|
+
On confirm, `result` contains the calendars the user selected.
|
|
650
|
+
On cancel, `result` is an empty array.
|
|
651
|
+
|
|
652
|
+
If a chooser is already presented, a new call is rejected; the in-flight
|
|
653
|
+
call continues until the user confirms or cancels.
|
|
654
|
+
|
|
617
655
|
| Param | Type |
|
|
618
656
|
| ------------- | --------------------------------------------------------------------------------------------- |
|
|
619
657
|
| **`options`** | <code><a href="#selectcalendarswithpromptoptions">SelectCalendarsWithPromptOptions</a></code> |
|
|
620
658
|
|
|
621
|
-
**Returns:** <code>Promise<
|
|
659
|
+
**Returns:** <code>Promise<<a href="#selectcalendarswithpromptresult">SelectCalendarsWithPromptResult</a>></code>
|
|
622
660
|
|
|
623
661
|
**Since:** 0.2.0
|
|
624
662
|
|
|
@@ -630,12 +668,15 @@ Opens a system interface to choose one or multiple calendars.
|
|
|
630
668
|
### fetchAllCalendarSources()
|
|
631
669
|
|
|
632
670
|
```typescript
|
|
633
|
-
fetchAllCalendarSources() => Promise<
|
|
671
|
+
fetchAllCalendarSources() => Promise<FetchAllCalendarSourcesResult>
|
|
634
672
|
```
|
|
635
673
|
|
|
636
674
|
Retrieves a list of calendar sources.
|
|
637
675
|
|
|
638
|
-
|
|
676
|
+
Requires calendar access. Without authorization, `result` is typically
|
|
677
|
+
an empty array. This method does not reject solely for missing permission.
|
|
678
|
+
|
|
679
|
+
**Returns:** <code>Promise<<a href="#fetchallcalendarsourcesresult">FetchAllCalendarSourcesResult</a>></code>
|
|
639
680
|
|
|
640
681
|
**Since:** 6.6.0
|
|
641
682
|
|
|
@@ -647,12 +688,15 @@ Retrieves a list of calendar sources.
|
|
|
647
688
|
### listCalendars()
|
|
648
689
|
|
|
649
690
|
```typescript
|
|
650
|
-
listCalendars() => Promise<
|
|
691
|
+
listCalendars() => Promise<ListCalendarsResult>
|
|
651
692
|
```
|
|
652
693
|
|
|
653
694
|
Retrieves a list of all available calendars.
|
|
654
695
|
|
|
655
|
-
|
|
696
|
+
Requires calendar read access. On Android, missing permission typically
|
|
697
|
+
rejects. On iOS, missing authorization typically returns an empty `result`.
|
|
698
|
+
|
|
699
|
+
**Returns:** <code>Promise<<a href="#listcalendarsresult">ListCalendarsResult</a>></code>
|
|
656
700
|
|
|
657
701
|
**Since:** 7.1.0
|
|
658
702
|
|
|
@@ -661,14 +705,26 @@ Retrieves a list of all available calendars.
|
|
|
661
705
|
--------------------
|
|
662
706
|
|
|
663
707
|
|
|
664
|
-
### getDefaultCalendar()
|
|
708
|
+
### getDefaultCalendar(...)
|
|
665
709
|
|
|
666
710
|
```typescript
|
|
667
|
-
getDefaultCalendar() => Promise<{ result: Calendar | null; }>
|
|
711
|
+
getDefaultCalendar(options?: GetDefaultCalendarOptions | undefined) => Promise<{ result: Calendar | null; }>
|
|
668
712
|
```
|
|
669
713
|
|
|
670
714
|
Retrieves the default calendar.
|
|
671
715
|
|
|
716
|
+
Requires calendar read access. On Android, missing permission typically
|
|
717
|
+
rejects. On iOS, missing authorization typically yields `result: null`.
|
|
718
|
+
|
|
719
|
+
The system default is the primary calendar on Android and
|
|
720
|
+
`defaultCalendarForNewEvents` on iOS. When neither exists and
|
|
721
|
+
`useFallbackCalendar` is true, the first available calendar is returned.
|
|
722
|
+
Otherwise the method returns `null` when there is no system default.
|
|
723
|
+
|
|
724
|
+
| Param | Type |
|
|
725
|
+
| ------------- | ------------------------------------------------------------------------------- |
|
|
726
|
+
| **`options`** | <code><a href="#getdefaultcalendaroptions">GetDefaultCalendarOptions</a></code> |
|
|
727
|
+
|
|
672
728
|
**Returns:** <code>Promise<{ result: <a href="#calendar">Calendar</a> | null; }></code>
|
|
673
729
|
|
|
674
730
|
**Since:** 0.3.0
|
|
@@ -700,16 +756,19 @@ Opens the calendar app.
|
|
|
700
756
|
### createCalendar(...)
|
|
701
757
|
|
|
702
758
|
```typescript
|
|
703
|
-
createCalendar(options: CreateCalendarOptions) => Promise<
|
|
759
|
+
createCalendar(options: CreateCalendarOptions) => Promise<CreateCalendarResult>
|
|
704
760
|
```
|
|
705
761
|
|
|
706
762
|
Creates a calendar.
|
|
707
763
|
|
|
764
|
+
`title` is required. `color` is optional and defaults to `#007AFF`.
|
|
765
|
+
On Android, `accountName` and `ownerAccount` are required at runtime.
|
|
766
|
+
|
|
708
767
|
| Param | Type |
|
|
709
768
|
| ------------- | ----------------------------------------------------------------------- |
|
|
710
769
|
| **`options`** | <code><a href="#createcalendaroptions">CreateCalendarOptions</a></code> |
|
|
711
770
|
|
|
712
|
-
**Returns:** <code>Promise<
|
|
771
|
+
**Returns:** <code>Promise<<a href="#createcalendarresult">CreateCalendarResult</a>></code>
|
|
713
772
|
|
|
714
773
|
**Since:** 5.2.0
|
|
715
774
|
|
|
@@ -1029,6 +1088,31 @@ Update a reminders list with options.
|
|
|
1029
1088
|
### Interfaces
|
|
1030
1089
|
|
|
1031
1090
|
|
|
1091
|
+
#### CheckPermissionOptions
|
|
1092
|
+
|
|
1093
|
+
Options for {@link CalendarAccess#checkPermission}.
|
|
1094
|
+
|
|
1095
|
+
| Prop | Type | Description | Since | Platform |
|
|
1096
|
+
| ----------- | --------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------- | ----- | ------------ |
|
|
1097
|
+
| **`scope`** | <code><a href="#calendarpermissionscope">CalendarPermissionScope</a></code> | The permission scope to check. On Android, `readReminders` and `writeReminders` resolve to `"prompt"` (reminders are not supported on Android). | 8.3.1 | Android, iOS |
|
|
1098
|
+
|
|
1099
|
+
|
|
1100
|
+
#### RequestPermissionOptions
|
|
1101
|
+
|
|
1102
|
+
Options for {@link CalendarAccess#requestPermission}.
|
|
1103
|
+
|
|
1104
|
+
| Prop | Type | Description | Since | Platform |
|
|
1105
|
+
| ----------- | --------------------------------------------------------------------------- | -------------------------------- | ----- | ------------ |
|
|
1106
|
+
| **`scope`** | <code><a href="#calendarpermissionscope">CalendarPermissionScope</a></code> | The permission scope to request. | 8.3.1 | Android, iOS |
|
|
1107
|
+
|
|
1108
|
+
|
|
1109
|
+
#### CreateEventWithPromptResult
|
|
1110
|
+
|
|
1111
|
+
| Prop | Type | Description | Since | Platform |
|
|
1112
|
+
| -------- | --------------------------- | -------------------------------------------------------------------------------------------------- | ----- | ------------ |
|
|
1113
|
+
| **`id`** | <code>string \| null</code> | The identifier of the created event. Always `null` on Android. Present on iOS when the user saves. | 0.1.0 | Android, iOS |
|
|
1114
|
+
|
|
1115
|
+
|
|
1032
1116
|
#### CreateEventWithPromptOptions
|
|
1033
1117
|
|
|
1034
1118
|
| Prop | Type | Description | Since | Platform |
|
|
@@ -1081,26 +1165,35 @@ Update a reminders list with options.
|
|
|
1081
1165
|
| **`id`** | <code>string</code> | The ID of the event to be modified. | 7.1.0 | Android, iOS |
|
|
1082
1166
|
|
|
1083
1167
|
|
|
1168
|
+
#### CreateEventResult
|
|
1169
|
+
|
|
1170
|
+
| Prop | Type | Description | Since | Platform |
|
|
1171
|
+
| --------- | --------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----- | ------------ |
|
|
1172
|
+
| **`ics`** | <code>File</code> | An `.ics` file (`text/calendar`) with one `VEVENT`. Present only on Web. The plugin does not write to a calendar store or start a download; use `downloadIcsFile(...)` or pass the `File` to another API. | 8.5.0 | Web |
|
|
1173
|
+
| **`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 |
|
|
1174
|
+
|
|
1175
|
+
|
|
1084
1176
|
#### CreateEventOptions
|
|
1085
1177
|
|
|
1086
|
-
| Prop | Type | Description
|
|
1087
|
-
| ------------------ | ------------------------------------------------------------------- |
|
|
1088
|
-
| **`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.
|
|
1089
|
-
| **`attendees`** | <code>EventGuest[]</code> | The event guests.
|
|
1090
|
-
| **`availability`** | <code><a href="#eventavailability">EventAvailability</a></code> |
|
|
1091
|
-
| **`calendarId`** | <code>string</code> |
|
|
1092
|
-
| **`color`** | <code>string</code> |
|
|
1093
|
-
| **`commit`** | <code>boolean</code> | Whether to save immediately (`true`) or batch changes for later (`false`).
|
|
1094
|
-
| **`description`** | <code>string</code> |
|
|
1095
|
-
| **`duration`** | <code>string</code> | Duration of the event in RFC2445 format.
|
|
1096
|
-
| **`endDate`** | <code>number</code> |
|
|
1097
|
-
| **`
|
|
1098
|
-
| **`
|
|
1099
|
-
| **`
|
|
1100
|
-
| **`
|
|
1101
|
-
| **`
|
|
1102
|
-
| **`
|
|
1103
|
-
| **`
|
|
1178
|
+
| Prop | Type | Description | Default | Since | Platform |
|
|
1179
|
+
| ------------------ | ------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------- | ----- | ----------------- |
|
|
1180
|
+
| **`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 |
|
|
1181
|
+
| **`attendees`** | <code>EventGuest[]</code> | The event guests. | | 7.1.0 | Android, Web |
|
|
1182
|
+
| **`availability`** | <code><a href="#eventavailability">EventAvailability</a></code> | | | 7.1.0 | Android, iOS, Web |
|
|
1183
|
+
| **`calendarId`** | <code>string</code> | | | 0.1.0 | Android, iOS |
|
|
1184
|
+
| **`color`** | <code>string</code> | | | 7.1.0 | Android |
|
|
1185
|
+
| **`commit`** | <code>boolean</code> | Whether to save immediately (`true`) or batch changes for later (`false`). | <code>true</code> | 7.1.0 | iOS |
|
|
1186
|
+
| **`description`** | <code>string</code> | | | 7.1.0 | Android, iOS, Web |
|
|
1187
|
+
| **`duration`** | <code>string</code> | Duration of the event in RFC2445 format. | | 7.1.0 | Android |
|
|
1188
|
+
| **`endDate`** | <code>number</code> | | | 0.1.0 | Android, iOS, Web |
|
|
1189
|
+
| **`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 |
|
|
1190
|
+
| **`isAllDay`** | <code>boolean</code> | | | 0.1.0 | Android, iOS, Web |
|
|
1191
|
+
| **`location`** | <code>string</code> | | | 0.1.0 | Android, iOS, Web |
|
|
1192
|
+
| **`organizer`** | <code>string</code> | Email of the event organizer. | | 7.1.0 | Android, Web |
|
|
1193
|
+
| **`recurrence`** | <code><a href="#eventrecurrencerule">EventRecurrenceRule</a></code> | Rules for creating a recurring event. | | 7.3.0 | Android, iOS, Web |
|
|
1194
|
+
| **`startDate`** | <code>number</code> | | | 0.1.0 | Android, iOS, Web |
|
|
1195
|
+
| **`title`** | <code>string</code> | | | 0.4.0 | Android, iOS, Web |
|
|
1196
|
+
| **`url`** | <code>string</code> | | | 0.1.0 | iOS, Web |
|
|
1104
1197
|
|
|
1105
1198
|
|
|
1106
1199
|
#### EventGuest
|
|
@@ -1204,39 +1297,46 @@ Update a reminders list with options.
|
|
|
1204
1297
|
|
|
1205
1298
|
#### ListEventsInRangeOptions
|
|
1206
1299
|
|
|
1207
|
-
| Prop | Type | Description
|
|
1208
|
-
| ---------- | ------------------- |
|
|
1209
|
-
| **`from`** | <code>number</code> | The
|
|
1210
|
-
| **`to`** | <code>number</code> | The
|
|
1300
|
+
| Prop | Type | Description | Since |
|
|
1301
|
+
| ---------- | ------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----- |
|
|
1302
|
+
| **`from`** | <code>number</code> | The start of the range, in milliseconds since the epoch. Events still in progress at this time are included. | 7.1.0 |
|
|
1303
|
+
| **`to`** | <code>number</code> | The end of the range, in milliseconds since the epoch. Events that begin at or after this time are typically excluded; prefer the next day's start when querying a single calendar day. | 7.1.0 |
|
|
1304
|
+
|
|
1305
|
+
|
|
1306
|
+
#### SelectCalendarsWithPromptResult
|
|
1307
|
+
|
|
1308
|
+
| Prop | Type | Description | Since | Platform |
|
|
1309
|
+
| ------------ | ----------------------- | ------------------------------------------------------------------------- | ----- | -------- |
|
|
1310
|
+
| **`result`** | <code>Calendar[]</code> | Calendars the user confirmed in the chooser. Empty when the user cancels. | 8.4.0 | iOS |
|
|
1211
1311
|
|
|
1212
1312
|
|
|
1213
1313
|
#### Calendar
|
|
1214
1314
|
|
|
1215
|
-
| Prop | Type | Description
|
|
1216
|
-
| -------------------------------- | ----------------------------------------------------------------- |
|
|
1217
|
-
| **`id`** | <code>string</code> |
|
|
1218
|
-
| **`title`** | <code>string</code>
|
|
1219
|
-
| **`internalTitle`** | <code>string \| null</code> | Internal name of the calendar (`CalendarContract.Calendars.NAME`).
|
|
1220
|
-
| **`color`** | <code>string</code>
|
|
1221
|
-
| **`isImmutable`** | <code>boolean \| null</code> |
|
|
1222
|
-
| **`allowsContentModifications`** | <code>boolean \| null</code> |
|
|
1223
|
-
| **`type`** | <code><a href="#calendartype">CalendarType</a> \| null</code> |
|
|
1224
|
-
| **`isSubscribed`** | <code>boolean \| null</code> |
|
|
1225
|
-
| **`source`** | <code><a href="#calendarsource">CalendarSource</a> \| null</code> |
|
|
1226
|
-
| **`visible`** | <code>boolean \| null</code> | Indicates if the events from this calendar should be shown.
|
|
1227
|
-
| **`accountName`** | <code>string \| null</code> | The account under which the calendar is registered.
|
|
1228
|
-
| **`ownerAccount`** | <code>string \| null</code> | The owner of the calendar.
|
|
1229
|
-
| **`maxReminders`** | <code>number \| null</code> | Maximum number of reminders allowed per event.
|
|
1230
|
-
| **`location`** | <code>string \| null</code> |
|
|
1315
|
+
| Prop | Type | Description | Since | Platform |
|
|
1316
|
+
| -------------------------------- | ----------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----- | ------------ |
|
|
1317
|
+
| **`id`** | <code>string</code> | | 7.1.0 | Android, iOS |
|
|
1318
|
+
| **`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 |
|
|
1319
|
+
| **`internalTitle`** | <code>string \| null</code> | Internal name of the calendar (`CalendarContract.Calendars.NAME`). | 7.1.0 | Android |
|
|
1320
|
+
| **`color`** | <code>string \| null</code> | <a href="#calendar">Calendar</a> color as a hex string. Format: `#RRGGBB` when opaque; `#RRGGBBAA` when alpha is below fully opaque. May be `null` when the platform does not provide a color. | 7.1.0 | Android, iOS |
|
|
1321
|
+
| **`isImmutable`** | <code>boolean \| null</code> | | 7.1.0 | iOS |
|
|
1322
|
+
| **`allowsContentModifications`** | <code>boolean \| null</code> | | 7.1.0 | iOS |
|
|
1323
|
+
| **`type`** | <code><a href="#calendartype">CalendarType</a> \| null</code> | | 7.1.0 | iOS |
|
|
1324
|
+
| **`isSubscribed`** | <code>boolean \| null</code> | | 7.1.0 | iOS |
|
|
1325
|
+
| **`source`** | <code><a href="#calendarsource">CalendarSource</a> \| null</code> | | 7.1.0 | iOS |
|
|
1326
|
+
| **`visible`** | <code>boolean \| null</code> | Indicates if the events from this calendar should be shown. | 7.1.0 | Android |
|
|
1327
|
+
| **`accountName`** | <code>string \| null</code> | The account under which the calendar is registered. | 7.1.0 | Android |
|
|
1328
|
+
| **`ownerAccount`** | <code>string \| null</code> | The owner of the calendar. | 7.1.0 | Android |
|
|
1329
|
+
| **`maxReminders`** | <code>number \| null</code> | Maximum number of reminders allowed per event. | 7.1.0 | Android |
|
|
1330
|
+
| **`location`** | <code>string \| null</code> | | 7.1.0 | Android |
|
|
1231
1331
|
|
|
1232
1332
|
|
|
1233
1333
|
#### CalendarSource
|
|
1234
1334
|
|
|
1235
|
-
| Prop | Type | Since |
|
|
1236
|
-
| ----------- | ----------------------------------------------------------------- | ----- |
|
|
1237
|
-
| **`type`** | <code><a href="#calendarsourcetype">CalendarSourceType</a></code> | 7.1.0 |
|
|
1238
|
-
| **`id`** | <code>string</code> | 7.1.0 |
|
|
1239
|
-
| **`title`** | <code>string</code> | 7.1.0 |
|
|
1335
|
+
| Prop | Type | Since | Platform |
|
|
1336
|
+
| ----------- | ----------------------------------------------------------------- | ----- | -------- |
|
|
1337
|
+
| **`type`** | <code><a href="#calendarsourcetype">CalendarSourceType</a></code> | 7.1.0 | iOS |
|
|
1338
|
+
| **`id`** | <code>string</code> | 7.1.0 | iOS |
|
|
1339
|
+
| **`title`** | <code>string</code> | 7.1.0 | iOS |
|
|
1240
1340
|
|
|
1241
1341
|
|
|
1242
1342
|
#### SelectCalendarsWithPromptOptions
|
|
@@ -1247,38 +1347,66 @@ Update a reminders list with options.
|
|
|
1247
1347
|
| **`multiple`** | <code>boolean</code> | Allow multiple selections. | <code>false</code> | 7.1.0 |
|
|
1248
1348
|
|
|
1249
1349
|
|
|
1350
|
+
#### FetchAllCalendarSourcesResult
|
|
1351
|
+
|
|
1352
|
+
| Prop | Type | Description | Since | Platform |
|
|
1353
|
+
| ------------ | ----------------------------- | -------------------------------------------------- | ----- | -------- |
|
|
1354
|
+
| **`result`** | <code>CalendarSource[]</code> | All calendar sources (accounts) known to EventKit. | 8.4.0 | iOS |
|
|
1355
|
+
|
|
1356
|
+
|
|
1357
|
+
#### ListCalendarsResult
|
|
1358
|
+
|
|
1359
|
+
| Prop | Type | Description | Since | Platform |
|
|
1360
|
+
| ------------ | ----------------------- | ------------------------ | ----- | ------------ |
|
|
1361
|
+
| **`result`** | <code>Calendar[]</code> | All available calendars. | 8.4.0 | Android, iOS |
|
|
1362
|
+
|
|
1363
|
+
|
|
1364
|
+
#### GetDefaultCalendarOptions
|
|
1365
|
+
|
|
1366
|
+
| Prop | Type | Description | Default | Since | Platform |
|
|
1367
|
+
| ------------------------- | -------------------- | --------------------------------------------------------------------------- | ------------------ | ----- | ------------ |
|
|
1368
|
+
| **`useFallbackCalendar`** | <code>boolean</code> | When there is no system default calendar, use the first available calendar. | <code>false</code> | 8.4.0 | Android, iOS |
|
|
1369
|
+
|
|
1370
|
+
|
|
1250
1371
|
#### OpenCalendarOptions
|
|
1251
1372
|
|
|
1252
|
-
| Prop | Type | Default | Since |
|
|
1253
|
-
| ---------- | ------------------- | ----------------------- | ----- |
|
|
1254
|
-
| **`date`** | <code>number</code> | <code>Date.now()</code> | 7.1.0 |
|
|
1373
|
+
| Prop | Type | Description | Default | Since | Platform |
|
|
1374
|
+
| ---------- | ------------------- | ------------------------------------------------------------------ | ----------------------- | ----- | ------------ |
|
|
1375
|
+
| **`date`** | <code>number</code> | The date to open the calendar at, in milliseconds since the epoch. | <code>Date.now()</code> | 7.1.0 | Android, iOS |
|
|
1376
|
+
|
|
1377
|
+
|
|
1378
|
+
#### CreateCalendarResult
|
|
1379
|
+
|
|
1380
|
+
| Prop | Type | Description | Since | Platform |
|
|
1381
|
+
| -------- | ------------------- | ----------------------------------------- | ----- | ------------ |
|
|
1382
|
+
| **`id`** | <code>string</code> | Identifier of the newly created calendar. | 8.4.0 | Android, iOS |
|
|
1255
1383
|
|
|
1256
1384
|
|
|
1257
1385
|
#### CreateCalendarOptions
|
|
1258
1386
|
|
|
1259
|
-
| Prop | Type | Description
|
|
1260
|
-
| ------------------ | ------------------- |
|
|
1261
|
-
| **`title`** | <code>string</code> |
|
|
1262
|
-
| **`color`** | <code>string</code> | The color of the calendar
|
|
1263
|
-
| **`sourceId`** | <code>string</code> |
|
|
1264
|
-
| **`accountName`** | <code>string</code> |
|
|
1265
|
-
| **`ownerAccount`** | <code>string</code> |
|
|
1387
|
+
| Prop | Type | Description | Default | Since | Platform |
|
|
1388
|
+
| ------------------ | ------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------- | ----- | ------------ |
|
|
1389
|
+
| **`title`** | <code>string</code> | | | 5.2.0 | Android, iOS |
|
|
1390
|
+
| **`color`** | <code>string</code> | The color of the calendar as `#RRGGBB` or `#RRGGBBAA`. When omitted, Android and iOS use `#007AFF` (light-mode iOS system blue). | <code>#007AFF</code> | 5.2.0 | Android, iOS |
|
|
1391
|
+
| **`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 |
|
|
1392
|
+
| **`accountName`** | <code>string</code> | The account under which the calendar is registered. Required on Android. Typically an email address. | | 7.1.0 | Android |
|
|
1393
|
+
| **`ownerAccount`** | <code>string</code> | The owner of the calendar. Required on Android. Typically an email address. | | 7.1.0 | Android |
|
|
1266
1394
|
|
|
1267
1395
|
|
|
1268
1396
|
#### DeleteCalendarOptions
|
|
1269
1397
|
|
|
1270
|
-
| Prop | Type | Since |
|
|
1271
|
-
| -------- | ------------------- | ----- |
|
|
1272
|
-
| **`id`** | <code>string</code> | 7.1.0 |
|
|
1398
|
+
| Prop | Type | Since | Platform |
|
|
1399
|
+
| -------- | ------------------- | ----- | ------------ |
|
|
1400
|
+
| **`id`** | <code>string</code> | 7.1.0 | Android, iOS |
|
|
1273
1401
|
|
|
1274
1402
|
|
|
1275
1403
|
#### ModifyCalendarOptions
|
|
1276
1404
|
|
|
1277
|
-
| Prop | Type | Since | Platform |
|
|
1278
|
-
| ----------- | ------------------- | ----- | ------------ |
|
|
1279
|
-
| **`id`** | <code>string</code> | 7.2.0 | Android, iOS |
|
|
1280
|
-
| **`title`** | <code>string</code> | 7.2.0 | Android, iOS |
|
|
1281
|
-
| **`color`** | <code>string</code> | 7.2.0 | Android, iOS |
|
|
1405
|
+
| Prop | Type | Description | Since | Platform |
|
|
1406
|
+
| ----------- | ------------------- | ------------------------------------------------------------------------------------------------------------------------------------- | ----- | ------------ |
|
|
1407
|
+
| **`id`** | <code>string</code> | | 7.2.0 | Android, iOS |
|
|
1408
|
+
| **`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 |
|
|
1409
|
+
| **`color`** | <code>string</code> | The color of the calendar as `#RRGGBB` or `#RRGGBBAA`. | 7.2.0 | Android, iOS |
|
|
1282
1410
|
|
|
1283
1411
|
|
|
1284
1412
|
#### CreateRemindersListResult
|
|
@@ -1480,12 +1608,12 @@ Construct a type with a set of properties K of type T
|
|
|
1480
1608
|
|
|
1481
1609
|
#### CalendarPermissionScope
|
|
1482
1610
|
|
|
1483
|
-
| Members | Value | Description
|
|
1484
|
-
| --------------------- | ----------------------------- |
|
|
1485
|
-
| **`READ_CALENDAR`** | <code>'readCalendar'</code> | Permission required for reading calendar events.
|
|
1486
|
-
| **`READ_REMINDERS`** | <code>'readReminders'</code> | Permission required for reading reminders.
|
|
1487
|
-
| **`WRITE_CALENDAR`** | <code>'writeCalendar'</code> | Permission required for adding or modifying calendar events.
|
|
1488
|
-
| **`WRITE_REMINDERS`** | <code>'writeReminders'</code> | Permission required for adding or modifying reminders.
|
|
1611
|
+
| Members | Value | Description | Since | Platform |
|
|
1612
|
+
| --------------------- | ----------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----- | ------------ |
|
|
1613
|
+
| **`READ_CALENDAR`** | <code>'readCalendar'</code> | Permission required for reading calendar events. | 7.1.0 | Android, iOS |
|
|
1614
|
+
| **`READ_REMINDERS`** | <code>'readReminders'</code> | Permission required for reading reminders. On Android, reminders are not supported. `checkPermission` and `checkAllPermissions` return `"prompt"` for this scope. `requestPermission` rejects with `Invalid scope.`. | 7.1.0 | iOS |
|
|
1615
|
+
| **`WRITE_CALENDAR`** | <code>'writeCalendar'</code> | Permission required for adding or modifying calendar events. | 7.1.0 | Android, iOS |
|
|
1616
|
+
| **`WRITE_REMINDERS`** | <code>'writeReminders'</code> | Permission required for adding or modifying reminders. On Android, reminders are not supported. `checkPermission` and `checkAllPermissions` return `"prompt"` for this scope. `requestPermission` rejects with `Invalid scope.`. | 7.1.0 | iOS |
|
|
1489
1617
|
|
|
1490
1618
|
|
|
1491
1619
|
#### EventAvailability
|