@ebarooni/capacitor-calendar 8.5.0 → 8.7.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 +224 -280
- package/android/src/main/java/dev/barooni/capacitor/calendar/implementation/CapacitorCalendar.kt +82 -0
- package/android/src/main/java/dev/barooni/capacitor/calendar/models/data/CalendarEvent.kt +4 -0
- package/android/src/main/java/dev/barooni/capacitor/calendar/models/results/CreateEventResult.kt +1 -0
- package/android/src/main/java/dev/barooni/capacitor/calendar/models/results/ListEventsInRangeResult.kt +4 -0
- package/dist/docs.json +547 -220
- package/dist/esm/index.d.ts +6 -2
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/schemas/enums/reminder-recurrence-frequency.d.ts +5 -5
- package/dist/esm/schemas/enums/reminder-recurrence-frequency.js +5 -5
- package/dist/esm/schemas/enums/reminder-recurrence-frequency.js.map +1 -1
- package/dist/esm/schemas/interfaces/calendar-event.d.ts +140 -67
- package/dist/esm/schemas/interfaces/calendar-event.js.map +1 -1
- package/dist/esm/schemas/interfaces/create-event-result.d.ts +3 -2
- package/dist/esm/schemas/interfaces/create-event-result.js.map +1 -1
- package/dist/esm/schemas/interfaces/create-reminder-options.d.ts +39 -20
- package/dist/esm/schemas/interfaces/create-reminder-options.js.map +1 -1
- package/dist/esm/schemas/interfaces/create-reminder-result.d.ts +12 -0
- package/dist/esm/schemas/interfaces/create-reminder-result.js +2 -0
- package/dist/esm/schemas/interfaces/create-reminder-result.js.map +1 -0
- package/dist/esm/schemas/interfaces/delete-reminder-options.d.ts +10 -0
- package/dist/esm/schemas/interfaces/delete-reminder-options.js.map +1 -1
- package/dist/esm/schemas/interfaces/delete-reminders-by-id-result.d.ts +13 -0
- package/dist/esm/schemas/interfaces/delete-reminders-by-id-result.js +2 -0
- package/dist/esm/schemas/interfaces/delete-reminders-by-id-result.js.map +1 -0
- package/dist/esm/schemas/interfaces/get-reminder-by-id-result.d.ts +13 -0
- package/dist/esm/schemas/interfaces/get-reminder-by-id-result.js +2 -0
- package/dist/esm/schemas/interfaces/get-reminder-by-id-result.js.map +1 -0
- package/dist/esm/schemas/interfaces/get-reminders-from-lists-result.d.ts +13 -0
- package/dist/esm/schemas/interfaces/get-reminders-from-lists-result.js +2 -0
- package/dist/esm/schemas/interfaces/get-reminders-from-lists-result.js.map +1 -0
- package/dist/esm/schemas/interfaces/list-events-in-range-result.d.ts +13 -0
- package/dist/esm/schemas/interfaces/list-events-in-range-result.js +2 -0
- package/dist/esm/schemas/interfaces/list-events-in-range-result.js.map +1 -0
- package/dist/esm/schemas/interfaces/modify-reminder-options.d.ts +72 -22
- package/dist/esm/schemas/interfaces/modify-reminder-options.js.map +1 -1
- package/dist/esm/schemas/interfaces/recurrence-rule.d.ts +7 -1
- package/dist/esm/schemas/interfaces/recurrence-rule.js.map +1 -1
- package/dist/esm/schemas/interfaces/reminder.d.ts +1 -0
- package/dist/esm/schemas/interfaces/reminder.js.map +1 -1
- package/dist/esm/sub-definitions/event-operations.d.ts +2 -4
- package/dist/esm/sub-definitions/event-operations.js.map +1 -1
- package/dist/esm/sub-definitions/reminders-operations.d.ts +7 -23
- package/dist/esm/sub-definitions/reminders-operations.js.map +1 -1
- package/dist/esm/web.d.ts +9 -15
- package/dist/esm/web.js.map +1 -1
- package/dist/plugin.cjs.js +5 -5
- package/dist/plugin.cjs.js.map +1 -1
- package/dist/plugin.js +5 -5
- package/dist/plugin.js.map +1 -1
- package/ios/Plugin/Implementation/CapacitorCalendar.swift +40 -22
- package/ios/Plugin/Models/Inputs/CreateEventWithPromptInput.swift +3 -3
- package/ios/Plugin/Models/Inputs/CreateReminderInput.swift +14 -4
- package/ios/Plugin/Models/Inputs/DeleteReminderInput.swift +7 -1
- package/ios/Plugin/Models/Inputs/ModifyReminderInput.swift +66 -5
- package/ios/Plugin/Models/Results/CreateEventResult.swift +1 -0
- package/ios/Plugin/Models/Results/ListEventsInRangeResult.swift +15 -2
- package/ios/Plugin/Models/Structs/RecurrenceInput.swift +10 -0
- package/ios/Plugin/PluginError.swift +3 -0
- package/ios/Plugin/Utils/ImplementationHelper.swift +74 -10
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
|
|
22
22
|

|
|
23
23
|
|
|
24
|
-
Full-featured Capacitor plugin for
|
|
24
|
+
Full-featured Capacitor plugin for calendar and reminders access on iOS, Android, and the web. On iOS and Android, manage permissions, create, modify, and delete events and reminders programmatically or via the native UI, query events in a date range, and list available calendars. On the web, create events as ICS files that users can add to their calendar.
|
|
25
25
|
|
|
26
26
|
## Core Features
|
|
27
27
|
|
|
@@ -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** — Partial support (create
|
|
40
|
+
- **Web** — Partial support (create events as `.ics` files)
|
|
41
41
|
|
|
42
42
|
## Why this plugin?
|
|
43
43
|
|
|
@@ -65,6 +65,7 @@ See [`mcp/README.md`](mcp/README.md) for client configuration and full details.
|
|
|
65
65
|
- [Usage Examples](#usage-examples)
|
|
66
66
|
- [Documentation](#documentation)
|
|
67
67
|
- [Changelog](#changelog)
|
|
68
|
+
- [Breaking Changes](#breaking-changes)
|
|
68
69
|
- [API](#api)
|
|
69
70
|
- [Contributing](#contributing)
|
|
70
71
|
- [License](#license)
|
|
@@ -244,52 +245,56 @@ The full documentation is generated from TypeScript definitions and is available
|
|
|
244
245
|
|
|
245
246
|
See [CHANGELOG.md](CHANGELOG.md) for the latest updates and release history.
|
|
246
247
|
|
|
248
|
+
## Breaking Changes
|
|
249
|
+
|
|
250
|
+
See [BREAKING.md](BREAKING.md) for breaking changes and migration steps.
|
|
251
|
+
|
|
247
252
|
## API
|
|
248
253
|
|
|
249
254
|
<docgen-index>
|
|
250
255
|
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
256
|
+
- [`checkPermission(...)`](#checkpermission)
|
|
257
|
+
- [`checkAllPermissions()`](#checkallpermissions)
|
|
258
|
+
- [`requestPermission(...)`](#requestpermission)
|
|
259
|
+
- [`requestAllPermissions()`](#requestallpermissions)
|
|
260
|
+
- [`requestWriteOnlyCalendarAccess()`](#requestwriteonlycalendaraccess)
|
|
261
|
+
- [`requestReadOnlyCalendarAccess()`](#requestreadonlycalendaraccess)
|
|
262
|
+
- [`requestFullCalendarAccess()`](#requestfullcalendaraccess)
|
|
263
|
+
- [`requestFullRemindersAccess()`](#requestfullremindersaccess)
|
|
264
|
+
- [`createEventWithPrompt(...)`](#createeventwithprompt)
|
|
265
|
+
- [`modifyEventWithPrompt(...)`](#modifyeventwithprompt)
|
|
266
|
+
- [`createEvent(...)`](#createevent)
|
|
267
|
+
- [`modifyEvent(...)`](#modifyevent)
|
|
268
|
+
- [`deleteEventsById(...)`](#deleteeventsbyid)
|
|
269
|
+
- [`deleteEvent(...)`](#deleteevent)
|
|
270
|
+
- [`deleteEventWithPrompt(...)`](#deleteeventwithprompt)
|
|
271
|
+
- [`listEventsInRange(...)`](#listeventsinrange)
|
|
272
|
+
- [`commit()`](#commit)
|
|
273
|
+
- [`selectCalendarsWithPrompt(...)`](#selectcalendarswithprompt)
|
|
274
|
+
- [`fetchAllCalendarSources()`](#fetchallcalendarsources)
|
|
275
|
+
- [`listCalendars()`](#listcalendars)
|
|
276
|
+
- [`getDefaultCalendar(...)`](#getdefaultcalendar)
|
|
277
|
+
- [`openCalendar(...)`](#opencalendar)
|
|
278
|
+
- [`createCalendar(...)`](#createcalendar)
|
|
279
|
+
- [`deleteCalendar(...)`](#deletecalendar)
|
|
280
|
+
- [`modifyCalendar(...)`](#modifycalendar)
|
|
281
|
+
- [`createRemindersList(...)`](#createreminderslist)
|
|
282
|
+
- [`deleteRemindersList(...)`](#deletereminderslist)
|
|
283
|
+
- [`fetchAllRemindersSources()`](#fetchallreminderssources)
|
|
284
|
+
- [`openReminders()`](#openreminders)
|
|
285
|
+
- [`getDefaultRemindersList()`](#getdefaultreminderslist)
|
|
286
|
+
- [`getRemindersLists()`](#getreminderslists)
|
|
287
|
+
- [`createReminder(...)`](#createreminder)
|
|
288
|
+
- [`deleteRemindersById(...)`](#deleteremindersbyid)
|
|
289
|
+
- [`deleteReminder(...)`](#deletereminder)
|
|
290
|
+
- [`modifyReminder(...)`](#modifyreminder)
|
|
291
|
+
- [`getReminderById(...)`](#getreminderbyid)
|
|
292
|
+
- [`getRemindersFromLists(...)`](#getremindersfromlists)
|
|
293
|
+
- [`deleteReminderWithPrompt(...)`](#deletereminderwithprompt)
|
|
294
|
+
- [`updateRemindersList(...)`](#updatereminderslist)
|
|
295
|
+
- [Interfaces](#interfaces)
|
|
296
|
+
- [Type Aliases](#type-aliases)
|
|
297
|
+
- [Enums](#enums)
|
|
293
298
|
|
|
294
299
|
</docgen-index>
|
|
295
300
|
|
|
@@ -315,8 +320,7 @@ On Android, `readReminders` and `writeReminders` resolve to `"prompt"`.
|
|
|
315
320
|
|
|
316
321
|
**Platform:** Android, iOS
|
|
317
322
|
|
|
318
|
-
|
|
319
|
-
|
|
323
|
+
---
|
|
320
324
|
|
|
321
325
|
### checkAllPermissions()
|
|
322
326
|
|
|
@@ -333,8 +337,7 @@ On Android, reminder keys always resolve to `"prompt"`.
|
|
|
333
337
|
|
|
334
338
|
**Platform:** Android, iOS
|
|
335
339
|
|
|
336
|
-
|
|
337
|
-
|
|
340
|
+
---
|
|
338
341
|
|
|
339
342
|
### requestPermission(...)
|
|
340
343
|
|
|
@@ -355,8 +358,7 @@ On Android, `readReminders` and `writeReminders` reject with `Invalid scope.`
|
|
|
355
358
|
|
|
356
359
|
**Platform:** Android, iOS
|
|
357
360
|
|
|
358
|
-
|
|
359
|
-
|
|
361
|
+
---
|
|
360
362
|
|
|
361
363
|
### requestAllPermissions()
|
|
362
364
|
|
|
@@ -373,8 +375,7 @@ On Android, only calendar permissions are requested; reminder keys stay `"prompt
|
|
|
373
375
|
|
|
374
376
|
**Platform:** Android, iOS
|
|
375
377
|
|
|
376
|
-
|
|
377
|
-
|
|
378
|
+
---
|
|
378
379
|
|
|
379
380
|
### requestWriteOnlyCalendarAccess()
|
|
380
381
|
|
|
@@ -390,8 +391,7 @@ Requests write access to the calendar.
|
|
|
390
391
|
|
|
391
392
|
**Platform:** Android, iOS
|
|
392
393
|
|
|
393
|
-
|
|
394
|
-
|
|
394
|
+
---
|
|
395
395
|
|
|
396
396
|
### requestReadOnlyCalendarAccess()
|
|
397
397
|
|
|
@@ -407,8 +407,7 @@ Requests read access to the calendar.
|
|
|
407
407
|
|
|
408
408
|
**Platform:** Android
|
|
409
409
|
|
|
410
|
-
|
|
411
|
-
|
|
410
|
+
---
|
|
412
411
|
|
|
413
412
|
### requestFullCalendarAccess()
|
|
414
413
|
|
|
@@ -424,8 +423,7 @@ Requests read and write access to the calendar.
|
|
|
424
423
|
|
|
425
424
|
**Platform:** Android, iOS
|
|
426
425
|
|
|
427
|
-
|
|
428
|
-
|
|
426
|
+
---
|
|
429
427
|
|
|
430
428
|
### requestFullRemindersAccess()
|
|
431
429
|
|
|
@@ -443,8 +441,7 @@ A grant covers both `readReminders` and `writeReminders`.
|
|
|
443
441
|
|
|
444
442
|
**Platform:** iOS
|
|
445
443
|
|
|
446
|
-
|
|
447
|
-
|
|
444
|
+
---
|
|
448
445
|
|
|
449
446
|
### createEventWithPrompt(...)
|
|
450
447
|
|
|
@@ -466,8 +463,7 @@ Fetch the events to find the ID of the newly created event.
|
|
|
466
463
|
|
|
467
464
|
**Platform:** Android, iOS
|
|
468
465
|
|
|
469
|
-
|
|
470
|
-
|
|
466
|
+
---
|
|
471
467
|
|
|
472
468
|
### modifyEventWithPrompt(...)
|
|
473
469
|
|
|
@@ -488,8 +484,7 @@ On Android always returns `null`.
|
|
|
488
484
|
|
|
489
485
|
**Platform:** Android, iOS
|
|
490
486
|
|
|
491
|
-
|
|
492
|
-
|
|
487
|
+
---
|
|
493
488
|
|
|
494
489
|
### createEvent(...)
|
|
495
490
|
|
|
@@ -513,8 +508,7 @@ this method does not trigger a download.
|
|
|
513
508
|
|
|
514
509
|
**Platform:** Android, iOS, Web
|
|
515
510
|
|
|
516
|
-
|
|
517
|
-
|
|
511
|
+
---
|
|
518
512
|
|
|
519
513
|
### modifyEvent(...)
|
|
520
514
|
|
|
@@ -532,8 +526,7 @@ Modifies an event.
|
|
|
532
526
|
|
|
533
527
|
**Platform:** Android, iOS
|
|
534
528
|
|
|
535
|
-
|
|
536
|
-
|
|
529
|
+
---
|
|
537
530
|
|
|
538
531
|
### deleteEventsById(...)
|
|
539
532
|
|
|
@@ -553,8 +546,7 @@ Deletes multiple events.
|
|
|
553
546
|
|
|
554
547
|
**Platform:** Android, iOS
|
|
555
548
|
|
|
556
|
-
|
|
557
|
-
|
|
549
|
+
---
|
|
558
550
|
|
|
559
551
|
### deleteEvent(...)
|
|
560
552
|
|
|
@@ -572,8 +564,7 @@ Deletes an event.
|
|
|
572
564
|
|
|
573
565
|
**Platform:** Android, iOS
|
|
574
566
|
|
|
575
|
-
|
|
576
|
-
|
|
567
|
+
---
|
|
577
568
|
|
|
578
569
|
### deleteEventWithPrompt(...)
|
|
579
570
|
|
|
@@ -593,13 +584,12 @@ Opens a dialog to delete an event.
|
|
|
593
584
|
|
|
594
585
|
**Platform:** Android, iOS
|
|
595
586
|
|
|
596
|
-
|
|
597
|
-
|
|
587
|
+
---
|
|
598
588
|
|
|
599
589
|
### listEventsInRange(...)
|
|
600
590
|
|
|
601
591
|
```typescript
|
|
602
|
-
listEventsInRange(options: ListEventsInRangeOptions) => Promise<
|
|
592
|
+
listEventsInRange(options: ListEventsInRangeOptions) => Promise<ListEventsInRangeResult>
|
|
603
593
|
```
|
|
604
594
|
|
|
605
595
|
Retrieves events that overlap a date range.
|
|
@@ -611,14 +601,13 @@ multi-day events that span the range without starting or ending inside it.
|
|
|
611
601
|
| ------------- | ----------------------------------------------------------------------------- |
|
|
612
602
|
| **`options`** | <code><a href="#listeventsinrangeoptions">ListEventsInRangeOptions</a></code> |
|
|
613
603
|
|
|
614
|
-
**Returns:** <code>Promise<
|
|
604
|
+
**Returns:** <code>Promise<<a href="#listeventsinrangeresult">ListEventsInRangeResult</a>></code>
|
|
615
605
|
|
|
616
606
|
**Since:** 0.10.0
|
|
617
607
|
|
|
618
608
|
**Platform:** Android, iOS
|
|
619
609
|
|
|
620
|
-
|
|
621
|
-
|
|
610
|
+
---
|
|
622
611
|
|
|
623
612
|
### commit()
|
|
624
613
|
|
|
@@ -632,8 +621,7 @@ Saves pending calendar changes.
|
|
|
632
621
|
|
|
633
622
|
**Platform:** iOS
|
|
634
623
|
|
|
635
|
-
|
|
636
|
-
|
|
624
|
+
---
|
|
637
625
|
|
|
638
626
|
### selectCalendarsWithPrompt(...)
|
|
639
627
|
|
|
@@ -662,8 +650,7 @@ call continues until the user confirms or cancels.
|
|
|
662
650
|
|
|
663
651
|
**Platform:** iOS
|
|
664
652
|
|
|
665
|
-
|
|
666
|
-
|
|
653
|
+
---
|
|
667
654
|
|
|
668
655
|
### fetchAllCalendarSources()
|
|
669
656
|
|
|
@@ -682,8 +669,7 @@ an empty array. This method does not reject solely for missing permission.
|
|
|
682
669
|
|
|
683
670
|
**Platform:** iOS
|
|
684
671
|
|
|
685
|
-
|
|
686
|
-
|
|
672
|
+
---
|
|
687
673
|
|
|
688
674
|
### listCalendars()
|
|
689
675
|
|
|
@@ -702,8 +688,7 @@ rejects. On iOS, missing authorization typically returns an empty `result`.
|
|
|
702
688
|
|
|
703
689
|
**Platform:** Android, iOS
|
|
704
690
|
|
|
705
|
-
|
|
706
|
-
|
|
691
|
+
---
|
|
707
692
|
|
|
708
693
|
### getDefaultCalendar(...)
|
|
709
694
|
|
|
@@ -731,8 +716,7 @@ Otherwise the method returns `null` when there is no system default.
|
|
|
731
716
|
|
|
732
717
|
**Platform:** Android, iOS
|
|
733
718
|
|
|
734
|
-
|
|
735
|
-
|
|
719
|
+
---
|
|
736
720
|
|
|
737
721
|
### openCalendar(...)
|
|
738
722
|
|
|
@@ -750,8 +734,7 @@ Opens the calendar app.
|
|
|
750
734
|
|
|
751
735
|
**Platform:** Android, iOS
|
|
752
736
|
|
|
753
|
-
|
|
754
|
-
|
|
737
|
+
---
|
|
755
738
|
|
|
756
739
|
### createCalendar(...)
|
|
757
740
|
|
|
@@ -774,8 +757,7 @@ On Android, `accountName` and `ownerAccount` are required at runtime.
|
|
|
774
757
|
|
|
775
758
|
**Platform:** Android, iOS
|
|
776
759
|
|
|
777
|
-
|
|
778
|
-
|
|
760
|
+
---
|
|
779
761
|
|
|
780
762
|
### deleteCalendar(...)
|
|
781
763
|
|
|
@@ -793,8 +775,7 @@ Deletes a calendar by id.
|
|
|
793
775
|
|
|
794
776
|
**Platform:** Android, iOS
|
|
795
777
|
|
|
796
|
-
|
|
797
|
-
|
|
778
|
+
---
|
|
798
779
|
|
|
799
780
|
### modifyCalendar(...)
|
|
800
781
|
|
|
@@ -812,8 +793,7 @@ Modifies a calendar with options.
|
|
|
812
793
|
|
|
813
794
|
**Platform:** Android, iOS
|
|
814
795
|
|
|
815
|
-
|
|
816
|
-
|
|
796
|
+
---
|
|
817
797
|
|
|
818
798
|
### createRemindersList(...)
|
|
819
799
|
|
|
@@ -833,8 +813,7 @@ Creates a new reminders list.
|
|
|
833
813
|
|
|
834
814
|
**Platform:** iOS
|
|
835
815
|
|
|
836
|
-
|
|
837
|
-
|
|
816
|
+
---
|
|
838
817
|
|
|
839
818
|
### deleteRemindersList(...)
|
|
840
819
|
|
|
@@ -852,8 +831,7 @@ Deletes a reminders list.
|
|
|
852
831
|
|
|
853
832
|
**Platform:** iOS
|
|
854
833
|
|
|
855
|
-
|
|
856
|
-
|
|
834
|
+
---
|
|
857
835
|
|
|
858
836
|
### fetchAllRemindersSources()
|
|
859
837
|
|
|
@@ -869,8 +847,7 @@ Retrieves a list of calendar sources.
|
|
|
869
847
|
|
|
870
848
|
**Platform:** iOS
|
|
871
849
|
|
|
872
|
-
|
|
873
|
-
|
|
850
|
+
---
|
|
874
851
|
|
|
875
852
|
### openReminders()
|
|
876
853
|
|
|
@@ -884,8 +861,7 @@ Opens the reminders app.
|
|
|
884
861
|
|
|
885
862
|
**Platform:** iOS
|
|
886
863
|
|
|
887
|
-
|
|
888
|
-
|
|
864
|
+
---
|
|
889
865
|
|
|
890
866
|
### getDefaultRemindersList()
|
|
891
867
|
|
|
@@ -901,8 +877,7 @@ Retrieves the default reminders list.
|
|
|
901
877
|
|
|
902
878
|
**Platform:** iOS
|
|
903
879
|
|
|
904
|
-
|
|
905
|
-
|
|
880
|
+
---
|
|
906
881
|
|
|
907
882
|
### getRemindersLists()
|
|
908
883
|
|
|
@@ -918,13 +893,12 @@ Retrieves all available reminders lists.
|
|
|
918
893
|
|
|
919
894
|
**Platform:** iOS
|
|
920
895
|
|
|
921
|
-
|
|
922
|
-
|
|
896
|
+
---
|
|
923
897
|
|
|
924
898
|
### createReminder(...)
|
|
925
899
|
|
|
926
900
|
```typescript
|
|
927
|
-
createReminder(options: CreateReminderOptions) => Promise<
|
|
901
|
+
createReminder(options: CreateReminderOptions) => Promise<CreateReminderResult>
|
|
928
902
|
```
|
|
929
903
|
|
|
930
904
|
Creates a reminder.
|
|
@@ -933,14 +907,13 @@ Creates a reminder.
|
|
|
933
907
|
| ------------- | ----------------------------------------------------------------------- |
|
|
934
908
|
| **`options`** | <code><a href="#createreminderoptions">CreateReminderOptions</a></code> |
|
|
935
909
|
|
|
936
|
-
**Returns:** <code>Promise<
|
|
910
|
+
**Returns:** <code>Promise<<a href="#createreminderresult">CreateReminderResult</a>></code>
|
|
937
911
|
|
|
938
912
|
**Since:** 0.5.0
|
|
939
913
|
|
|
940
914
|
**Platform:** iOS
|
|
941
915
|
|
|
942
|
-
|
|
943
|
-
|
|
916
|
+
---
|
|
944
917
|
|
|
945
918
|
### deleteRemindersById(...)
|
|
946
919
|
|
|
@@ -960,8 +933,7 @@ Deletes multiple reminders.
|
|
|
960
933
|
|
|
961
934
|
**Platform:** iOS
|
|
962
935
|
|
|
963
|
-
|
|
964
|
-
|
|
936
|
+
---
|
|
965
937
|
|
|
966
938
|
### deleteReminder(...)
|
|
967
939
|
|
|
@@ -979,8 +951,7 @@ Deletes a reminder.
|
|
|
979
951
|
|
|
980
952
|
**Platform:** iOS
|
|
981
953
|
|
|
982
|
-
|
|
983
|
-
|
|
954
|
+
---
|
|
984
955
|
|
|
985
956
|
### modifyReminder(...)
|
|
986
957
|
|
|
@@ -998,13 +969,12 @@ Modifies a reminder.
|
|
|
998
969
|
|
|
999
970
|
**Platform:** iOS
|
|
1000
971
|
|
|
1001
|
-
|
|
1002
|
-
|
|
972
|
+
---
|
|
1003
973
|
|
|
1004
974
|
### getReminderById(...)
|
|
1005
975
|
|
|
1006
976
|
```typescript
|
|
1007
|
-
getReminderById(options: GetReminderByIdOptions) => Promise<
|
|
977
|
+
getReminderById(options: GetReminderByIdOptions) => Promise<GetReminderByIdResult>
|
|
1008
978
|
```
|
|
1009
979
|
|
|
1010
980
|
Retrieve a reminder by ID.
|
|
@@ -1013,19 +983,18 @@ Retrieve a reminder by ID.
|
|
|
1013
983
|
| ------------- | ------------------------------------------------------------------------- |
|
|
1014
984
|
| **`options`** | <code><a href="#getreminderbyidoptions">GetReminderByIdOptions</a></code> |
|
|
1015
985
|
|
|
1016
|
-
**Returns:** <code>Promise<
|
|
986
|
+
**Returns:** <code>Promise<<a href="#getreminderbyidresult">GetReminderByIdResult</a>></code>
|
|
1017
987
|
|
|
1018
988
|
**Since:** 7.1.0
|
|
1019
989
|
|
|
1020
990
|
**Platform:** iOS
|
|
1021
991
|
|
|
1022
|
-
|
|
1023
|
-
|
|
992
|
+
---
|
|
1024
993
|
|
|
1025
994
|
### getRemindersFromLists(...)
|
|
1026
995
|
|
|
1027
996
|
```typescript
|
|
1028
|
-
getRemindersFromLists(options: GetRemindersFromListsOptions) => Promise<
|
|
997
|
+
getRemindersFromLists(options: GetRemindersFromListsOptions) => Promise<GetRemindersFromListsResult>
|
|
1029
998
|
```
|
|
1030
999
|
|
|
1031
1000
|
Retrieves reminders from multiple lists.
|
|
@@ -1034,14 +1003,13 @@ Retrieves reminders from multiple lists.
|
|
|
1034
1003
|
| ------------- | ------------------------------------------------------------------------------------- |
|
|
1035
1004
|
| **`options`** | <code><a href="#getremindersfromlistsoptions">GetRemindersFromListsOptions</a></code> |
|
|
1036
1005
|
|
|
1037
|
-
**Returns:** <code>Promise<
|
|
1006
|
+
**Returns:** <code>Promise<<a href="#getremindersfromlistsresult">GetRemindersFromListsResult</a>></code>
|
|
1038
1007
|
|
|
1039
1008
|
**Since:** 5.3.0
|
|
1040
1009
|
|
|
1041
1010
|
**Platform:** iOS
|
|
1042
1011
|
|
|
1043
|
-
|
|
1044
|
-
|
|
1012
|
+
---
|
|
1045
1013
|
|
|
1046
1014
|
### deleteReminderWithPrompt(...)
|
|
1047
1015
|
|
|
@@ -1061,8 +1029,7 @@ Opens a dialog to delete a reminder.
|
|
|
1061
1029
|
|
|
1062
1030
|
**Platform:** iOS
|
|
1063
1031
|
|
|
1064
|
-
|
|
1065
|
-
|
|
1032
|
+
---
|
|
1066
1033
|
|
|
1067
1034
|
### updateRemindersList(...)
|
|
1068
1035
|
|
|
@@ -1082,12 +1049,10 @@ Update a reminders list with options.
|
|
|
1082
1049
|
|
|
1083
1050
|
**Platform:** iOS
|
|
1084
1051
|
|
|
1085
|
-
|
|
1086
|
-
|
|
1052
|
+
---
|
|
1087
1053
|
|
|
1088
1054
|
### Interfaces
|
|
1089
1055
|
|
|
1090
|
-
|
|
1091
1056
|
#### CheckPermissionOptions
|
|
1092
1057
|
|
|
1093
1058
|
Options for {@link CalendarAccess#checkPermission}.
|
|
@@ -1096,7 +1061,6 @@ Options for {@link CalendarAccess#checkPermission}.
|
|
|
1096
1061
|
| ----------- | --------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------- | ----- | ------------ |
|
|
1097
1062
|
| **`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
1063
|
|
|
1099
|
-
|
|
1100
1064
|
#### RequestPermissionOptions
|
|
1101
1065
|
|
|
1102
1066
|
Options for {@link CalendarAccess#requestPermission}.
|
|
@@ -1105,14 +1069,12 @@ Options for {@link CalendarAccess#requestPermission}.
|
|
|
1105
1069
|
| ----------- | --------------------------------------------------------------------------- | -------------------------------- | ----- | ------------ |
|
|
1106
1070
|
| **`scope`** | <code><a href="#calendarpermissionscope">CalendarPermissionScope</a></code> | The permission scope to request. | 8.3.1 | Android, iOS |
|
|
1107
1071
|
|
|
1108
|
-
|
|
1109
1072
|
#### CreateEventWithPromptResult
|
|
1110
1073
|
|
|
1111
1074
|
| Prop | Type | Description | Since | Platform |
|
|
1112
1075
|
| -------- | --------------------------- | -------------------------------------------------------------------------------------------------- | ----- | ------------ |
|
|
1113
1076
|
| **`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
1077
|
|
|
1115
|
-
|
|
1116
1078
|
#### CreateEventWithPromptOptions
|
|
1117
1079
|
|
|
1118
1080
|
| Prop | Type | Description | Since | Platform |
|
|
@@ -1130,7 +1092,6 @@ Options for {@link CalendarAccess#requestPermission}.
|
|
|
1130
1092
|
| **`title`** | <code>string</code> | | 0.1.0 | Android, iOS |
|
|
1131
1093
|
| **`url`** | <code>string</code> | | 0.1.0 | iOS |
|
|
1132
1094
|
|
|
1133
|
-
|
|
1134
1095
|
#### EventRecurrenceRule
|
|
1135
1096
|
|
|
1136
1097
|
| Prop | Type | Description | Default | Since | Platform |
|
|
@@ -1145,7 +1106,6 @@ Options for {@link CalendarAccess#requestPermission}.
|
|
|
1145
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 |
|
|
1146
1107
|
| **`weeksOfTheYear`** | <code>number[]</code> | Limits a yearly recurrence to specific ISO week numbers (1 to 53). | | 7.3.0 | iOS |
|
|
1147
1108
|
|
|
1148
|
-
|
|
1149
1109
|
#### ModifyEventWithPromptOptions
|
|
1150
1110
|
|
|
1151
1111
|
| Prop | Type | Description | Since | Platform |
|
|
@@ -1164,14 +1124,12 @@ Options for {@link CalendarAccess#requestPermission}.
|
|
|
1164
1124
|
| **`url`** | <code>string</code> | | 0.1.0 | iOS |
|
|
1165
1125
|
| **`id`** | <code>string</code> | The ID of the event to be modified. | 7.1.0 | Android, iOS |
|
|
1166
1126
|
|
|
1167
|
-
|
|
1168
1127
|
#### CreateEventResult
|
|
1169
1128
|
|
|
1170
|
-
| Prop | Type | Description
|
|
1171
|
-
| --------- | --------------------------- |
|
|
1172
|
-
| **`ics`** | <code>File</code>
|
|
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.
|
|
1174
|
-
|
|
1129
|
+
| Prop | Type | Description | Since | Platform |
|
|
1130
|
+
| --------- | --------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ----- | ------------ |
|
|
1131
|
+
| **`ics`** | <code>File \| null</code> | An `.ics` file (`text/calendar`) with one `VEVENT`. Always `null` on Android and iOS. On Web, the plugin does not write to a calendar store or start a download; use `downloadIcsFile(...)` or pass the `File` to another API. | 8.5.0 | Web |
|
|
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. | 0.4.0 | Android, iOS |
|
|
1175
1133
|
|
|
1176
1134
|
#### CreateEventOptions
|
|
1177
1135
|
|
|
@@ -1195,7 +1153,6 @@ Options for {@link CalendarAccess#requestPermission}.
|
|
|
1195
1153
|
| **`title`** | <code>string</code> | | | 0.4.0 | Android, iOS, Web |
|
|
1196
1154
|
| **`url`** | <code>string</code> | | | 0.1.0 | iOS, Web |
|
|
1197
1155
|
|
|
1198
|
-
|
|
1199
1156
|
#### EventGuest
|
|
1200
1157
|
|
|
1201
1158
|
| Prop | Type | Since |
|
|
@@ -1203,7 +1160,6 @@ Options for {@link CalendarAccess#requestPermission}.
|
|
|
1203
1160
|
| **`name`** | <code>string</code> | 7.1.0 |
|
|
1204
1161
|
| **`email`** | <code>string</code> | 7.1.0 |
|
|
1205
1162
|
|
|
1206
|
-
|
|
1207
1163
|
#### ModifyEventOptions
|
|
1208
1164
|
|
|
1209
1165
|
| Prop | Type | Description | Default | Since | Platform |
|
|
@@ -1226,7 +1182,6 @@ Options for {@link CalendarAccess#requestPermission}.
|
|
|
1226
1182
|
| **`title`** | <code>string</code> | | | 0.4.0 | Android, iOS |
|
|
1227
1183
|
| **`url`** | <code>string</code> | | | 0.1.0 | iOS |
|
|
1228
1184
|
|
|
1229
|
-
|
|
1230
1185
|
#### DeleteEventsByIdResult
|
|
1231
1186
|
|
|
1232
1187
|
| Prop | Type | Since |
|
|
@@ -1234,7 +1189,6 @@ Options for {@link CalendarAccess#requestPermission}.
|
|
|
1234
1189
|
| **`deleted`** | <code>string[]</code> | 7.1.0 |
|
|
1235
1190
|
| **`failed`** | <code>string[]</code> | 7.1.0 |
|
|
1236
1191
|
|
|
1237
|
-
|
|
1238
1192
|
#### DeleteEventsByIdOptions
|
|
1239
1193
|
|
|
1240
1194
|
| Prop | Type | Description | Default | Since | Platform |
|
|
@@ -1243,7 +1197,6 @@ Options for {@link CalendarAccess#requestPermission}.
|
|
|
1243
1197
|
| **`ids`** | <code>string[]</code> | | | 7.1.0 | |
|
|
1244
1198
|
| **`span`** | <code><a href="#eventspan">EventSpan</a></code> | How much of a recurring series to delete. On Android, `THIS_EVENT` cannot target a single recurring occurrence here — use `deleteEvent` with `instanceDate`. Those ids are reported in `failed`. | <code>EventSpan.THIS_EVENT</code> | 7.1.0 | Android, iOS |
|
|
1245
1199
|
|
|
1246
|
-
|
|
1247
1200
|
#### DeleteEventOptions
|
|
1248
1201
|
|
|
1249
1202
|
| Prop | Type | Description | Default | Since | Platform |
|
|
@@ -1253,7 +1206,6 @@ Options for {@link CalendarAccess#requestPermission}.
|
|
|
1253
1206
|
| **`instanceDate`** | <code>number</code> | The start time of the occurrence to delete, in milliseconds since the epoch. Use `startDate` from `listEventsInRange`. On Android, required for `THIS_EVENT` on recurring events. If omitted with `THIS_AND_FUTURE_EVENTS`, the whole series is deleted. | | 8.3.0 | Android |
|
|
1254
1207
|
| **`span`** | <code><a href="#eventspan">EventSpan</a></code> | How much of a recurring series to delete. | <code>EventSpan.THIS_EVENT</code> | 7.1.0 | Android, iOS |
|
|
1255
1208
|
|
|
1256
|
-
|
|
1257
1209
|
#### DeleteEventWithPromptOptions
|
|
1258
1210
|
|
|
1259
1211
|
| Prop | Type | Description | Default | Since | Platform |
|
|
@@ -1267,33 +1219,41 @@ Options for {@link CalendarAccess#requestPermission}.
|
|
|
1267
1219
|
| **`span`** | <code><a href="#eventspan">EventSpan</a></code> | How much of a recurring series to delete. | <code>EventSpan.THIS_EVENT</code> | 7.1.0 | Android, iOS |
|
|
1268
1220
|
| **`title`** | <code>string</code> | Title of the dialog. | | 7.1.0 | Android, iOS |
|
|
1269
1221
|
|
|
1222
|
+
#### ListEventsInRangeResult
|
|
1270
1223
|
|
|
1271
|
-
|
|
1224
|
+
| Prop | Type | Description | Since | Platform |
|
|
1225
|
+
| ------------ | ---------------------------- | ---------------------------------------- | ----- | ------------ |
|
|
1226
|
+
| **`result`** | <code>CalendarEvent[]</code> | Events that overlap the requested range. | 8.6.0 | Android, iOS |
|
|
1272
1227
|
|
|
1273
|
-
|
|
1274
|
-
| ------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------- | ----- | ------------ |
|
|
1275
|
-
| **`id`** | <code>string</code> | | 7.1.0 | Android, iOS |
|
|
1276
|
-
| **`title`** | <code>string</code> | | 7.1.0 | Android, iOS |
|
|
1277
|
-
| **`calendarId`** | <code>string \| null</code> | | 7.1.0 | Android, iOS |
|
|
1278
|
-
| **`location`** | <code>string \| null</code> | | 7.1.0 | Android, iOS |
|
|
1279
|
-
| **`startDate`** | <code>number</code> | | 7.1.0 | Android, iOS |
|
|
1280
|
-
| **`endDate`** | <code>number</code> | | 7.1.0 | Android, iOS |
|
|
1281
|
-
| **`isAllDay`** | <code>boolean</code> | | 7.1.0 | Android, iOS |
|
|
1282
|
-
| **`alerts`** | <code>number[]</code> | Alert times in minutes relative to the event start. | 7.1.0 | Android, iOS |
|
|
1283
|
-
| **`url`** | <code>string \| null</code> | | 7.1.0 | iOS |
|
|
1284
|
-
| **`description`** | <code>string \| null</code> | | 7.1.0 | Android, iOS |
|
|
1285
|
-
| **`availability`** | <code><a href="#eventavailability">EventAvailability</a> \| null</code> | | 7.1.0 | Android, iOS |
|
|
1286
|
-
| **`organizer`** | <code>string \| null</code> | | 7.1.0 | Android, iOS |
|
|
1287
|
-
| **`color`** | <code>string \| null</code> | | 7.1.0 | Android, iOS |
|
|
1288
|
-
| **`duration`** | <code>string \| null</code> | | 7.1.0 | Android |
|
|
1289
|
-
| **`isDetached`** | <code>boolean \| null</code> | | 7.1.0 | iOS |
|
|
1290
|
-
| **`birthdayContactIdentifier`** | <code>string \| null</code> | | 7.1.0 | iOS |
|
|
1291
|
-
| **`status`** | <code><a href="#eventstatus">EventStatus</a> \| null</code> | | 7.1.0 | Android, iOS |
|
|
1292
|
-
| **`creationDate`** | <code>number \| null</code> | | 7.1.0 | iOS |
|
|
1293
|
-
| **`lastModifiedDate`** | <code>number \| null</code> | | 7.1.0 | iOS |
|
|
1294
|
-
| **`attendees`** | <code>{ email: string \| null; name: string \| null; role: <a href="#attendeerole">AttendeeRole</a> \| null; status: <a href="#attendeestatus">AttendeeStatus</a> \| null; type: <a href="#attendeetype">AttendeeType</a> \| null; }[]</code> | | 7.1.0 | Android, iOS |
|
|
1295
|
-
| **`timezone`** | <code>string \| null</code> | | 7.1.0 | Android, iOS |
|
|
1228
|
+
#### CalendarEvent
|
|
1296
1229
|
|
|
1230
|
+
| Prop | Type | Description | Since | Platform |
|
|
1231
|
+
| ------------------------------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----- | ------------ |
|
|
1232
|
+
| **`alerts`** | <code>number[]</code> | Alert times in minutes relative to the event start. | 7.1.0 | Android, iOS |
|
|
1233
|
+
| **`attendees`** | <code>{ email: string \| null; name: string \| null; role: <a href="#attendeerole">AttendeeRole</a> \| null; status: <a href="#attendeestatus">AttendeeStatus</a> \| null; type: <a href="#attendeetype">AttendeeType</a> \| null; }[]</code> | | 7.1.0 | Android, iOS |
|
|
1234
|
+
| **`availability`** | <code><a href="#eventavailability">EventAvailability</a> \| null</code> | | 7.1.0 | Android, iOS |
|
|
1235
|
+
| **`birthdayContactIdentifier`** | <code>string \| null</code> | | 7.1.0 | iOS |
|
|
1236
|
+
| **`calendarId`** | <code>string \| null</code> | | 7.1.0 | Android, iOS |
|
|
1237
|
+
| **`calendarItemExternalIdentifier`** | <code>string \| null</code> | A stable external id for this calendar item. On iOS this is set when the system provides it. On Android and web it is always `null`. Use `masterId` on Android for the series master id. Do not treat this field as the same as `masterId`. They identify different things on different platforms. For non-detached occurrences of a series, this value is shared across those occurrences. On one device, `id` is often already shared for them. This field is mainly useful as a stable id across devices. Detached exceptions usually get a new identifier. You cannot find the original series from this value. Use `isDetached` and `isPartOfSeries` instead. Do not pass this value where the plugin expects an event `id`. | 8.6.0 | iOS |
|
|
1238
|
+
| **`color`** | <code>string \| null</code> | | 7.1.0 | Android, iOS |
|
|
1239
|
+
| **`creationDate`** | <code>number \| null</code> | | 7.1.0 | iOS |
|
|
1240
|
+
| **`description`** | <code>string \| null</code> | | 7.1.0 | Android, iOS |
|
|
1241
|
+
| **`duration`** | <code>string \| null</code> | | 7.1.0 | Android |
|
|
1242
|
+
| **`endDate`** | <code>number</code> | | 7.1.0 | Android, iOS |
|
|
1243
|
+
| **`id`** | <code>string</code> | | 7.1.0 | Android, iOS |
|
|
1244
|
+
| **`isAllDay`** | <code>boolean</code> | | 7.1.0 | Android, iOS |
|
|
1245
|
+
| **`isDetached`** | <code>boolean \| null</code> | | 7.1.0 | iOS |
|
|
1246
|
+
| **`isPartOfSeries`** | <code>boolean</code> | Whether this event belongs to a recurring series. `true` for series occurrences and detached exceptions. `false` for one-off events. Detached exceptions also set `isDetached` (iOS only). | 8.6.0 | Android, iOS |
|
|
1247
|
+
| **`lastModifiedDate`** | <code>number \| null</code> | | 7.1.0 | iOS |
|
|
1248
|
+
| **`location`** | <code>string \| null</code> | | 7.1.0 | Android, iOS |
|
|
1249
|
+
| **`masterId`** | <code>string \| null</code> | The id of the series master for this listed occurrence. On Android this is always a string. On iOS and web it is always `null`. iOS has no public master event id. Use `calendarItemExternalIdentifier` on iOS instead. Do not treat this field as the same as `calendarItemExternalIdentifier`. They identify different things on different platforms. If this row is the master or a one-shot event, `masterId` equals `id`. If this row is an exception, `id` is the exception and `masterId` is the series master. To modify or delete the whole series, pass `masterId` as the `id` option. You still need `span` and `instanceDate` when those APIs require them. In rare sync cases, an exception may temporarily report `masterId` equal to `id` until the platform links it to the series master. | 8.6.0 | Android |
|
|
1250
|
+
| **`organizer`** | <code>string \| null</code> | | 7.1.0 | Android, iOS |
|
|
1251
|
+
| **`seriesStartDate`** | <code>number</code> | Start time of the recurring series, in milliseconds since the epoch. Equals `startDate` for one-off events. On iOS, equals `startDate` when the series start is not available for a detached exception. | 8.6.0 | Android, iOS |
|
|
1252
|
+
| **`startDate`** | <code>number</code> | | 7.1.0 | Android, iOS |
|
|
1253
|
+
| **`status`** | <code><a href="#eventstatus">EventStatus</a> \| null</code> | | 7.1.0 | Android, iOS |
|
|
1254
|
+
| **`timezone`** | <code>string \| null</code> | | 7.1.0 | Android, iOS |
|
|
1255
|
+
| **`title`** | <code>string</code> | | 7.1.0 | Android, iOS |
|
|
1256
|
+
| **`url`** | <code>string \| null</code> | | 7.1.0 | iOS |
|
|
1297
1257
|
|
|
1298
1258
|
#### ListEventsInRangeOptions
|
|
1299
1259
|
|
|
@@ -1302,14 +1262,12 @@ Options for {@link CalendarAccess#requestPermission}.
|
|
|
1302
1262
|
| **`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
1263
|
| **`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
1264
|
|
|
1305
|
-
|
|
1306
1265
|
#### SelectCalendarsWithPromptResult
|
|
1307
1266
|
|
|
1308
1267
|
| Prop | Type | Description | Since | Platform |
|
|
1309
1268
|
| ------------ | ----------------------- | ------------------------------------------------------------------------- | ----- | -------- |
|
|
1310
1269
|
| **`result`** | <code>Calendar[]</code> | Calendars the user confirmed in the chooser. Empty when the user cancels. | 8.4.0 | iOS |
|
|
1311
1270
|
|
|
1312
|
-
|
|
1313
1271
|
#### Calendar
|
|
1314
1272
|
|
|
1315
1273
|
| Prop | Type | Description | Since | Platform |
|
|
@@ -1329,7 +1287,6 @@ Options for {@link CalendarAccess#requestPermission}.
|
|
|
1329
1287
|
| **`maxReminders`** | <code>number \| null</code> | Maximum number of reminders allowed per event. | 7.1.0 | Android |
|
|
1330
1288
|
| **`location`** | <code>string \| null</code> | | 7.1.0 | Android |
|
|
1331
1289
|
|
|
1332
|
-
|
|
1333
1290
|
#### CalendarSource
|
|
1334
1291
|
|
|
1335
1292
|
| Prop | Type | Since | Platform |
|
|
@@ -1338,7 +1295,6 @@ Options for {@link CalendarAccess#requestPermission}.
|
|
|
1338
1295
|
| **`id`** | <code>string</code> | 7.1.0 | iOS |
|
|
1339
1296
|
| **`title`** | <code>string</code> | 7.1.0 | iOS |
|
|
1340
1297
|
|
|
1341
|
-
|
|
1342
1298
|
#### SelectCalendarsWithPromptOptions
|
|
1343
1299
|
|
|
1344
1300
|
| Prop | Type | Description | Default | Since |
|
|
@@ -1346,42 +1302,36 @@ Options for {@link CalendarAccess#requestPermission}.
|
|
|
1346
1302
|
| **`displayStyle`** | <code><a href="#calendarchooserdisplaystyle">CalendarChooserDisplayStyle</a></code> | | <code>CalendarChooserDisplayStyle.ALL_CALENDARS</code> | 7.1.0 |
|
|
1347
1303
|
| **`multiple`** | <code>boolean</code> | Allow multiple selections. | <code>false</code> | 7.1.0 |
|
|
1348
1304
|
|
|
1349
|
-
|
|
1350
1305
|
#### FetchAllCalendarSourcesResult
|
|
1351
1306
|
|
|
1352
1307
|
| Prop | Type | Description | Since | Platform |
|
|
1353
1308
|
| ------------ | ----------------------------- | -------------------------------------------------- | ----- | -------- |
|
|
1354
1309
|
| **`result`** | <code>CalendarSource[]</code> | All calendar sources (accounts) known to EventKit. | 8.4.0 | iOS |
|
|
1355
1310
|
|
|
1356
|
-
|
|
1357
1311
|
#### ListCalendarsResult
|
|
1358
1312
|
|
|
1359
1313
|
| Prop | Type | Description | Since | Platform |
|
|
1360
1314
|
| ------------ | ----------------------- | ------------------------ | ----- | ------------ |
|
|
1361
1315
|
| **`result`** | <code>Calendar[]</code> | All available calendars. | 8.4.0 | Android, iOS |
|
|
1362
1316
|
|
|
1363
|
-
|
|
1364
1317
|
#### GetDefaultCalendarOptions
|
|
1365
1318
|
|
|
1366
1319
|
| Prop | Type | Description | Default | Since | Platform |
|
|
1367
1320
|
| ------------------------- | -------------------- | --------------------------------------------------------------------------- | ------------------ | ----- | ------------ |
|
|
1368
1321
|
| **`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
1322
|
|
|
1370
|
-
|
|
1371
1323
|
#### OpenCalendarOptions
|
|
1372
1324
|
|
|
1373
1325
|
| Prop | Type | Description | Default | Since | Platform |
|
|
1374
1326
|
| ---------- | ------------------- | ------------------------------------------------------------------ | ----------------------- | ----- | ------------ |
|
|
1375
1327
|
| **`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
1328
|
|
|
1377
|
-
|
|
1378
1329
|
#### CreateCalendarResult
|
|
1379
1330
|
|
|
1380
1331
|
| Prop | Type | Description | Since | Platform |
|
|
1381
1332
|
| -------- | ------------------- | ----------------------------------------- | ----- | ------------ |
|
|
1382
1333
|
| **`id`** | <code>string</code> | Identifier of the newly created calendar. | 8.4.0 | Android, iOS |
|
|
1383
1334
|
|
|
1384
|
-
|
|
1385
1335
|
#### CreateCalendarOptions
|
|
1386
1336
|
|
|
1387
1337
|
| Prop | Type | Description | Default | Since | Platform |
|
|
@@ -1392,14 +1342,12 @@ Options for {@link CalendarAccess#requestPermission}.
|
|
|
1392
1342
|
| **`accountName`** | <code>string</code> | The account under which the calendar is registered. Required on Android. Typically an email address. | | 7.1.0 | Android |
|
|
1393
1343
|
| **`ownerAccount`** | <code>string</code> | The owner of the calendar. Required on Android. Typically an email address. | | 7.1.0 | Android |
|
|
1394
1344
|
|
|
1395
|
-
|
|
1396
1345
|
#### DeleteCalendarOptions
|
|
1397
1346
|
|
|
1398
1347
|
| Prop | Type | Since | Platform |
|
|
1399
1348
|
| -------- | ------------------- | ----- | ------------ |
|
|
1400
1349
|
| **`id`** | <code>string</code> | 7.1.0 | Android, iOS |
|
|
1401
1350
|
|
|
1402
|
-
|
|
1403
1351
|
#### ModifyCalendarOptions
|
|
1404
1352
|
|
|
1405
1353
|
| Prop | Type | Description | Since | Platform |
|
|
@@ -1408,14 +1356,12 @@ Options for {@link CalendarAccess#requestPermission}.
|
|
|
1408
1356
|
| **`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
1357
|
| **`color`** | <code>string</code> | The color of the calendar as `#RRGGBB` or `#RRGGBBAA`. | 7.2.0 | Android, iOS |
|
|
1410
1358
|
|
|
1411
|
-
|
|
1412
1359
|
#### CreateRemindersListResult
|
|
1413
1360
|
|
|
1414
1361
|
| Prop | Type | Description | Since | Platform |
|
|
1415
1362
|
| -------- | ------------------- | ----------------------------------------------- | ----- | -------- |
|
|
1416
1363
|
| **`id`** | <code>string</code> | Identifier of the newly created reminders list. | 8.1.0 | iOS |
|
|
1417
1364
|
|
|
1418
|
-
|
|
1419
1365
|
#### CreateRemindersListOptions
|
|
1420
1366
|
|
|
1421
1367
|
| Prop | Type | Description | Default | Since | Platform |
|
|
@@ -1425,7 +1371,6 @@ Options for {@link CalendarAccess#requestPermission}.
|
|
|
1425
1371
|
| **`sourceId`** | <code>string</code> | The EKSource identifier (account) where the list should be created. If left undefined, iCloud will be used if available, otherwise falls back to local. | | 8.1.0 | iOS |
|
|
1426
1372
|
| **`title`** | <code>string</code> | The title of the list. | | 8.1.0 | iOS |
|
|
1427
1373
|
|
|
1428
|
-
|
|
1429
1374
|
#### DeleteRemindersListOptions
|
|
1430
1375
|
|
|
1431
1376
|
| Prop | Type | Description | Default | Since | Platform |
|
|
@@ -1433,33 +1378,37 @@ Options for {@link CalendarAccess#requestPermission}.
|
|
|
1433
1378
|
| **`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 |
|
|
1434
1379
|
| **`id`** | <code>string</code> | Identifier of the reminders list to delete. | | 8.2.0 | iOS |
|
|
1435
1380
|
|
|
1381
|
+
#### CreateReminderResult
|
|
1436
1382
|
|
|
1437
|
-
|
|
1383
|
+
| Prop | Type | Description | Since | Platform |
|
|
1384
|
+
| -------- | ------------------- | ----------------------------------------- | ----- | -------- |
|
|
1385
|
+
| **`id`** | <code>string</code> | Identifier of the newly created reminder. | 0.5.0 | iOS |
|
|
1438
1386
|
|
|
1439
|
-
|
|
1440
|
-
| -------------------- | --------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------- | ----- |
|
|
1441
|
-
| **`title`** | <code>string</code> | | 7.1.0 |
|
|
1442
|
-
| **`listId`** | <code>string</code> | | 7.1.0 |
|
|
1443
|
-
| **`priority`** | <code>number</code> | | 7.1.0 |
|
|
1444
|
-
| **`isCompleted`** | <code>boolean</code> | | 7.1.0 |
|
|
1445
|
-
| **`startDate`** | <code>number</code> | | 7.1.0 |
|
|
1446
|
-
| **`dueDate`** | <code>number</code> | | 7.1.0 |
|
|
1447
|
-
| **`completionDate`** | <code>number</code> | | 7.1.0 |
|
|
1448
|
-
| **`notes`** | <code>string</code> | | 7.1.0 |
|
|
1449
|
-
| **`url`** | <code>string</code> | | 7.1.0 |
|
|
1450
|
-
| **`location`** | <code>string</code> | | 7.1.0 |
|
|
1451
|
-
| **`recurrence`** | <code><a href="#recurrencerule">RecurrenceRule</a></code> | | 7.1.0 |
|
|
1452
|
-
| **`alerts`** | <code>number[]</code> | Alert times in minutes relative to the reminder start. Use negative numbers for alerts before the start, and positive numbers for alerts after the start. | 7.1.0 |
|
|
1387
|
+
#### CreateReminderOptions
|
|
1453
1388
|
|
|
1389
|
+
| Prop | Type | Description | Default | Since | Platform |
|
|
1390
|
+
| -------------------- | --------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------- | ----- | -------- |
|
|
1391
|
+
| **`alerts`** | <code>number[]</code> | Alert times in minutes relative to the reminder start. Use negative numbers for alerts before the start, and positive numbers for alerts after the start. On iOS only 2 alerts are supported. | | 7.1.0 | |
|
|
1392
|
+
| **`commit`** | <code>boolean</code> | Whether to save immediately (`true`) or batch changes for later (`false`). 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.7.0 | iOS |
|
|
1393
|
+
| **`completionDate`** | <code>number</code> | | | 7.1.0 | |
|
|
1394
|
+
| **`dueDate`** | <code>number</code> | When the reminder should be completed, in milliseconds since the epoch. On iOS, if `startDate` is omitted, it is set to this value. | | 7.1.0 | |
|
|
1395
|
+
| **`isCompleted`** | <code>boolean</code> | | | 7.1.0 | |
|
|
1396
|
+
| **`listId`** | <code>string</code> | | | 7.1.0 | |
|
|
1397
|
+
| **`location`** | <code>string</code> | | | 7.1.0 | |
|
|
1398
|
+
| **`notes`** | <code>string</code> | | | 7.1.0 | |
|
|
1399
|
+
| **`priority`** | <code>number</code> | | | 7.1.0 | |
|
|
1400
|
+
| **`recurrence`** | <code><a href="#recurrencerule">RecurrenceRule</a></code> | | | 7.1.0 | iOS |
|
|
1401
|
+
| **`startDate`** | <code>number</code> | When the reminder starts, in milliseconds since the epoch. Relative `alerts` use this date. | | 7.1.0 | |
|
|
1402
|
+
| **`title`** | <code>string</code> | | | 7.1.0 | |
|
|
1403
|
+
| **`url`** | <code>string</code> | | | 7.1.0 | |
|
|
1454
1404
|
|
|
1455
1405
|
#### RecurrenceRule
|
|
1456
1406
|
|
|
1457
|
-
| Prop | Type | Description | Since |
|
|
1458
|
-
| --------------- | ------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ----- |
|
|
1459
|
-
| **`frequency`** | <code><a href="#recurrencefrequency">RecurrenceFrequency</a></code> |
|
|
1460
|
-
| **`interval`** | <code>number</code> | How often it repeats (e.g. 1 for every occurrence, 2 for every second occurrence). | 7.1.0 |
|
|
1461
|
-
| **`end`** | <code>number</code> |
|
|
1462
|
-
|
|
1407
|
+
| Prop | Type | Description | Since | Platform |
|
|
1408
|
+
| --------------- | ------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ----- | -------- |
|
|
1409
|
+
| **`frequency`** | <code><a href="#recurrencefrequency">RecurrenceFrequency</a></code> | How often the reminder repeats. | 7.1.0 | iOS |
|
|
1410
|
+
| **`interval`** | <code>number</code> | How often it repeats (e.g. 1 for every occurrence, 2 for every second occurrence). | 7.1.0 | iOS |
|
|
1411
|
+
| **`end`** | <code>number</code> | End of the recurrence series as a Unix timestamp in milliseconds. | 7.1.0 | iOS |
|
|
1463
1412
|
|
|
1464
1413
|
#### DeleteRemindersByIdResult
|
|
1465
1414
|
|
|
@@ -1468,58 +1417,61 @@ Options for {@link CalendarAccess#requestPermission}.
|
|
|
1468
1417
|
| **`deleted`** | <code>string[]</code> | 7.1.0 |
|
|
1469
1418
|
| **`failed`** | <code>string[]</code> | 7.1.0 |
|
|
1470
1419
|
|
|
1471
|
-
|
|
1472
1420
|
#### DeleteRemindersByIdOptions
|
|
1473
1421
|
|
|
1474
1422
|
| Prop | Type | Since |
|
|
1475
1423
|
| --------- | --------------------- | ----- |
|
|
1476
1424
|
| **`ids`** | <code>string[]</code> | 7.1.0 |
|
|
1477
1425
|
|
|
1478
|
-
|
|
1479
1426
|
#### DeleteReminderOptions
|
|
1480
1427
|
|
|
1481
|
-
| Prop
|
|
1482
|
-
|
|
|
1483
|
-
| **`
|
|
1484
|
-
|
|
1428
|
+
| Prop | Type | Description | Default | Since | Platform |
|
|
1429
|
+
| ------------ | -------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------- | ----- | -------- |
|
|
1430
|
+
| **`commit`** | <code>boolean</code> | Whether to save immediately (`true`) or batch changes for later (`false`). 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.7.0 | iOS |
|
|
1431
|
+
| **`id`** | <code>string</code> | | | 7.1.0 | |
|
|
1485
1432
|
|
|
1486
1433
|
#### ModifyReminderOptions
|
|
1487
1434
|
|
|
1488
|
-
| Prop | Type
|
|
1489
|
-
| -------------------- |
|
|
1490
|
-
| **`
|
|
1491
|
-
| **`
|
|
1492
|
-
| **`
|
|
1493
|
-
| **`
|
|
1494
|
-
| **`
|
|
1495
|
-
| **`
|
|
1496
|
-
| **`
|
|
1497
|
-
| **`
|
|
1498
|
-
| **`notes`** | <code>string</code> |
|
|
1499
|
-
| **`
|
|
1500
|
-
| **`
|
|
1501
|
-
| **`
|
|
1502
|
-
| **`
|
|
1503
|
-
|
|
1435
|
+
| Prop | Type | Description | Default | Since | Platform |
|
|
1436
|
+
| -------------------- | ----------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------- | ----- | -------- |
|
|
1437
|
+
| **`alerts`** | <code>number[] \| null</code> | Alert times in minutes relative to the reminder start. Use negative numbers for alerts before the start, and positive numbers for alerts after the start. Omit or pass `undefined` to leave existing alerts unchanged. Pass `null` or an empty array `[]` to clear alerts. On iOS, when both `startDate` and `dueDate` are cleared in the same call, alerts are cleared even if `alerts` is set. When clearing dates across separate batched calls, pass `alerts: null` or `[]` explicitly. On iOS only 2 alerts are supported. | | 7.1.0 | |
|
|
1438
|
+
| **`commit`** | <code>boolean</code> | Whether to save immediately (`true`) or batch changes for later (`false`). 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.7.0 | iOS |
|
|
1439
|
+
| **`completionDate`** | <code>number \| null</code> | When the reminder was completed, in milliseconds since the epoch. Omit or pass `undefined` to leave the existing value unchanged. Since 8.7.0, pass `null` to clear. Clearing this date does not mark the reminder incomplete; set `isCompleted` to `false` for that. | | 7.1.0 | |
|
|
1440
|
+
| **`dueDate`** | <code>number \| null</code> | When the reminder is due, in milliseconds since the epoch. On iOS, if `startDate` is omitted and the reminder has no start, it is set to this value. Omit or pass `undefined` to leave the existing value unchanged. Since 8.7.0, pass `null` to clear. Clearing only `dueDate` leaves an existing start unchanged (including a start previously copied from due). Pass `startDate: null` together with `dueDate: null` to remove scheduling. | | 7.1.0 | |
|
|
1441
|
+
| **`id`** | <code>string</code> | | | 7.1.0 | |
|
|
1442
|
+
| **`isCompleted`** | <code>boolean</code> | | | 7.1.0 | |
|
|
1443
|
+
| **`listId`** | <code>string</code> | | | 7.1.0 | |
|
|
1444
|
+
| **`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
|
+
| **`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> | | | 7.1.0 | |
|
|
1447
|
+
| **`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
|
+
| **`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
|
+
| **`title`** | <code>string</code> | | | 7.1.0 | |
|
|
1450
|
+
| **`url`** | <code>string \| null</code> | URL associated with the reminder. Omit or pass `undefined` to leave the existing value unchanged. Since 8.7.0, pass `null` to clear. | | 7.1.0 | |
|
|
1451
|
+
|
|
1452
|
+
#### GetReminderByIdResult
|
|
1453
|
+
|
|
1454
|
+
| Prop | Type | Description | Since | Platform |
|
|
1455
|
+
| ------------ | ----------------------------------------------------- | ---------------------------------------------------------- | ----- | -------- |
|
|
1456
|
+
| **`result`** | <code><a href="#reminder">Reminder</a> \| null</code> | The reminder for the given id, or `null` when none exists. | 7.1.0 | iOS |
|
|
1504
1457
|
|
|
1505
1458
|
#### Reminder
|
|
1506
1459
|
|
|
1507
|
-
| Prop | Type | Since |
|
|
1508
|
-
| -------------------- | ----------------------------- | ----- |
|
|
1509
|
-
| **`id`** | <code>string</code> | 7.1.0 |
|
|
1510
|
-
| **`title`** | <code>string \| null</code> | 7.1.0 |
|
|
1511
|
-
| **`listId`** | <code>string \| null</code> | 7.1.0 |
|
|
1512
|
-
| **`isCompleted`** | <code>boolean</code> | 7.1.0 |
|
|
1513
|
-
| **`priority`** | <code>number \| null</code> | 7.1.0 |
|
|
1514
|
-
| **`notes`** | <code>string \| null</code> | 7.1.0 |
|
|
1515
|
-
| **`location`** | <code>string \| null</code> | 7.1.0 |
|
|
1516
|
-
| **`url`** | <code>string \| null</code> | 7.1.0 |
|
|
1517
|
-
| **`startDate`** | <code>number \| null</code> | 7.1.0 |
|
|
1518
|
-
| **`dueDate`** | <code>number \| null</code> | 7.1.0 |
|
|
1519
|
-
| **`completionDate`** | <code>number \| null</code> | 7.1.0 |
|
|
1520
|
-
| **`recurrence`** | <code>RecurrenceRule[]</code> | 7.1.0 |
|
|
1521
|
-
| **`alerts`** | <code>number[]</code> | 7.1.0 |
|
|
1522
|
-
|
|
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 | |
|
|
1523
1475
|
|
|
1524
1476
|
#### GetReminderByIdOptions
|
|
1525
1477
|
|
|
@@ -1527,6 +1479,11 @@ Options for {@link CalendarAccess#requestPermission}.
|
|
|
1527
1479
|
| -------- | ------------------- | ----- |
|
|
1528
1480
|
| **`id`** | <code>string</code> | 7.1.0 |
|
|
1529
1481
|
|
|
1482
|
+
#### GetRemindersFromListsResult
|
|
1483
|
+
|
|
1484
|
+
| Prop | Type | Description | Since | Platform |
|
|
1485
|
+
| ------------ | ----------------------- | ----------------------------------- | ----- | -------- |
|
|
1486
|
+
| **`result`** | <code>Reminder[]</code> | Reminders from the requested lists. | 5.3.0 | iOS |
|
|
1530
1487
|
|
|
1531
1488
|
#### GetRemindersFromListsOptions
|
|
1532
1489
|
|
|
@@ -1534,7 +1491,6 @@ Options for {@link CalendarAccess#requestPermission}.
|
|
|
1534
1491
|
| ------------- | --------------------- | ----- |
|
|
1535
1492
|
| **`listIds`** | <code>string[]</code> | 7.1.0 |
|
|
1536
1493
|
|
|
1537
|
-
|
|
1538
1494
|
#### DeleteReminderWithPromptOptions
|
|
1539
1495
|
|
|
1540
1496
|
| Prop | Type | Description | Default | Since |
|
|
@@ -1545,14 +1501,12 @@ Options for {@link CalendarAccess#requestPermission}.
|
|
|
1545
1501
|
| **`confirmButtonText`** | <code>string</code> | Text to show on the confirm button. | <code>'Delete'</code> | 7.2.0 |
|
|
1546
1502
|
| **`cancelButtonText`** | <code>string</code> | Text to show on the cancel button. | <code>'Cancel'</code> | 7.2.0 |
|
|
1547
1503
|
|
|
1548
|
-
|
|
1549
1504
|
#### UpdateRemindersListResult
|
|
1550
1505
|
|
|
1551
1506
|
| Prop | Type | Description | Since | Platform |
|
|
1552
1507
|
| -------- | ------------------- | ----------------------------------------- | ----- | -------- |
|
|
1553
1508
|
| **`id`** | <code>string</code> | Identifier of the updated reminders list. | 8.2.0 | iOS |
|
|
1554
1509
|
|
|
1555
|
-
|
|
1556
1510
|
#### UpdateRemindersListOptions
|
|
1557
1511
|
|
|
1558
1512
|
| Prop | Type | Description | Default | Since | Platform |
|
|
@@ -1562,50 +1516,49 @@ Options for {@link CalendarAccess#requestPermission}.
|
|
|
1562
1516
|
| **`id`** | <code>string</code> | The identifier of the list to update. | | 8.2.0 | iOS |
|
|
1563
1517
|
| **`title`** | <code>string</code> | The new title of the list. If omitted, the title is left unchanged. | | 8.2.0 | iOS |
|
|
1564
1518
|
|
|
1565
|
-
|
|
1566
1519
|
### Type Aliases
|
|
1567
1520
|
|
|
1568
|
-
|
|
1569
1521
|
#### PermissionState
|
|
1570
1522
|
|
|
1571
1523
|
<code>'prompt' | 'prompt-with-rationale' | 'granted' | 'denied'</code>
|
|
1572
1524
|
|
|
1573
|
-
|
|
1574
1525
|
#### CheckAllPermissionsResult
|
|
1575
1526
|
|
|
1576
|
-
<code
|
|
1577
|
-
|
|
1527
|
+
<code>
|
|
1528
|
+
<a href="#record">Record</a><<a href="#calendarpermissionscope">CalendarPermissionScope</a>,{' '}
|
|
1529
|
+
<a href="#permissionstate">PermissionState</a>>
|
|
1530
|
+
</code>
|
|
1578
1531
|
|
|
1579
1532
|
#### Record
|
|
1580
1533
|
|
|
1581
1534
|
Construct a type with a set of properties K of type T
|
|
1582
1535
|
|
|
1583
|
-
<code>{
|
|
1584
1536
|
[P in K]: T;
|
|
1585
1537
|
}</code>
|
|
1586
|
-
|
|
1538
|
+
<code>{
|
|
1539
|
+
[P in K]: T;
|
|
1540
|
+
}</code>
|
|
1587
1541
|
|
|
1588
1542
|
#### RequestAllPermissionsResult
|
|
1589
1543
|
|
|
1590
|
-
<code
|
|
1591
|
-
|
|
1544
|
+
<code>
|
|
1545
|
+
<a href="#checkallpermissionsresult">CheckAllPermissionsResult</a>
|
|
1546
|
+
</code>
|
|
1592
1547
|
|
|
1593
1548
|
#### RecurrenceFrequency
|
|
1594
1549
|
|
|
1595
1550
|
<code>'daily' | 'weekly' | 'monthly' | 'yearly'</code>
|
|
1596
1551
|
|
|
1597
|
-
|
|
1598
1552
|
#### EventEditAction
|
|
1599
1553
|
|
|
1600
1554
|
<code>'canceled' | 'saved' | 'deleted'</code>
|
|
1601
1555
|
|
|
1602
|
-
|
|
1603
1556
|
#### RemindersList
|
|
1604
1557
|
|
|
1605
|
-
<code
|
|
1606
|
-
|
|
1558
|
+
<code>
|
|
1559
|
+
<a href="#calendar">Calendar</a>
|
|
1560
|
+
</code>
|
|
1607
1561
|
|
|
1608
1562
|
### Enums
|
|
1609
1563
|
|
|
1610
|
-
|
|
1611
1564
|
#### CalendarPermissionScope
|
|
1612
1565
|
|
|
1613
1566
|
| Members | Value | Description | Since | Platform |
|
|
@@ -1615,7 +1568,6 @@ Construct a type with a set of properties K of type T
|
|
|
1615
1568
|
| **`WRITE_CALENDAR`** | <code>'writeCalendar'</code> | Permission required for adding or modifying calendar events. | 7.1.0 | Android, iOS |
|
|
1616
1569
|
| **`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 |
|
|
1617
1570
|
|
|
1618
|
-
|
|
1619
1571
|
#### EventAvailability
|
|
1620
1572
|
|
|
1621
1573
|
| Members | Value | Since | Platform |
|
|
@@ -1626,7 +1578,6 @@ Construct a type with a set of properties K of type T
|
|
|
1626
1578
|
| **`TENTATIVE`** | | 7.1.0 | Android, iOS |
|
|
1627
1579
|
| **`UNAVAILABLE`** | | 7.1.0 | iOS |
|
|
1628
1580
|
|
|
1629
|
-
|
|
1630
1581
|
#### EventSpan
|
|
1631
1582
|
|
|
1632
1583
|
| Members | Description | Since |
|
|
@@ -1634,17 +1585,6 @@ Construct a type with a set of properties K of type T
|
|
|
1634
1585
|
| **`THIS_EVENT`** | Only the identified event or occurrence. | 7.1.0 |
|
|
1635
1586
|
| **`THIS_AND_FUTURE_EVENTS`** | The identified occurrence and future occurrences in the series. | 7.1.0 |
|
|
1636
1587
|
|
|
1637
|
-
|
|
1638
|
-
#### EventStatus
|
|
1639
|
-
|
|
1640
|
-
| Members | Value | Since | Platform |
|
|
1641
|
-
| --------------- | ------------------------ | ----- | ------------ |
|
|
1642
|
-
| **`NONE`** | <code>'none'</code> | 7.1.0 | iOS |
|
|
1643
|
-
| **`CONFIRMED`** | <code>'confirmed'</code> | 7.1.0 | Android, iOS |
|
|
1644
|
-
| **`TENTATIVE`** | <code>'tentative'</code> | 7.1.0 | Android, iOS |
|
|
1645
|
-
| **`CANCELED`** | <code>'canceled'</code> | 7.1.0 | Android, iOS |
|
|
1646
|
-
|
|
1647
|
-
|
|
1648
1588
|
#### AttendeeRole
|
|
1649
1589
|
|
|
1650
1590
|
| Members | Value | Since | Platform |
|
|
@@ -1659,7 +1599,6 @@ Construct a type with a set of properties K of type T
|
|
|
1659
1599
|
| **`PERFORMER`** | <code>'performer'</code> | 7.1.0 | Android |
|
|
1660
1600
|
| **`SPEAKER`** | <code>'speaker'</code> | 7.1.0 | Android |
|
|
1661
1601
|
|
|
1662
|
-
|
|
1663
1602
|
#### AttendeeStatus
|
|
1664
1603
|
|
|
1665
1604
|
| Members | Value | Since | Platform |
|
|
@@ -1675,7 +1614,6 @@ Construct a type with a set of properties K of type T
|
|
|
1675
1614
|
| **`COMPLETED`** | <code>'completed'</code> | 7.1.0 | iOS |
|
|
1676
1615
|
| **`IN_PROCESS`** | <code>'inProcess'</code> | 7.1.0 | iOS |
|
|
1677
1616
|
|
|
1678
|
-
|
|
1679
1617
|
#### AttendeeType
|
|
1680
1618
|
|
|
1681
1619
|
| Members | Value | Since | Platform |
|
|
@@ -1689,6 +1627,14 @@ Construct a type with a set of properties K of type T
|
|
|
1689
1627
|
| **`NONE`** | <code>'none'</code> | 7.1.0 | Android |
|
|
1690
1628
|
| **`OPTIONAL`** | <code>'optional'</code> | 7.1.0 | Android |
|
|
1691
1629
|
|
|
1630
|
+
#### EventStatus
|
|
1631
|
+
|
|
1632
|
+
| Members | Value | Since | Platform |
|
|
1633
|
+
| --------------- | ------------------------ | ----- | ------------ |
|
|
1634
|
+
| **`NONE`** | <code>'none'</code> | 7.1.0 | iOS |
|
|
1635
|
+
| **`CONFIRMED`** | <code>'confirmed'</code> | 7.1.0 | Android, iOS |
|
|
1636
|
+
| **`TENTATIVE`** | <code>'tentative'</code> | 7.1.0 | Android, iOS |
|
|
1637
|
+
| **`CANCELED`** | <code>'canceled'</code> | 7.1.0 | Android, iOS |
|
|
1692
1638
|
|
|
1693
1639
|
#### CalendarType
|
|
1694
1640
|
|
|
@@ -1700,7 +1646,6 @@ Construct a type with a set of properties K of type T
|
|
|
1700
1646
|
| **`SUBSCRIPTION`** | 7.1.0 |
|
|
1701
1647
|
| **`BIRTHDAY`** | 7.1.0 |
|
|
1702
1648
|
|
|
1703
|
-
|
|
1704
1649
|
#### CalendarSourceType
|
|
1705
1650
|
|
|
1706
1651
|
| Members | Since |
|
|
@@ -1712,7 +1657,6 @@ Construct a type with a set of properties K of type T
|
|
|
1712
1657
|
| **`SUBSCRIBED`** | 7.1.0 |
|
|
1713
1658
|
| **`BIRTHDAYS`** | 7.1.0 |
|
|
1714
1659
|
|
|
1715
|
-
|
|
1716
1660
|
#### CalendarChooserDisplayStyle
|
|
1717
1661
|
|
|
1718
1662
|
| Members | Since |
|