@ebarooni/capacitor-calendar 8.3.0 → 8.4.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 +179 -71
- 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 +439 -51
- package/dist/esm/index.d.ts +8 -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/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 +15 -1
- 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.d.ts +15 -21
- package/dist/esm/web.js +1 -1
- package/dist/esm/web.js.map +1 -1
- package/dist/plugin.cjs.js +9 -1
- package/dist/plugin.cjs.js.map +1 -1
- package/dist/plugin.js +9 -1
- 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/dist/docs.json
CHANGED
|
@@ -7,12 +7,12 @@
|
|
|
7
7
|
"methods": [
|
|
8
8
|
{
|
|
9
9
|
"name": "checkPermission",
|
|
10
|
-
"signature": "(options:
|
|
10
|
+
"signature": "(options: CheckPermissionOptions) => Promise<{ result: PermissionState; }>",
|
|
11
11
|
"parameters": [
|
|
12
12
|
{
|
|
13
13
|
"name": "options",
|
|
14
14
|
"docs": "",
|
|
15
|
-
"type": "
|
|
15
|
+
"type": "CheckPermissionOptions"
|
|
16
16
|
}
|
|
17
17
|
],
|
|
18
18
|
"returns": "Promise<{ result: PermissionState; }>",
|
|
@@ -21,6 +21,18 @@
|
|
|
21
21
|
"name": "example",
|
|
22
22
|
"text": "CapacitorCalendar.checkPermission({ scope: CalendarPermissionScope.READ_CALENDAR });"
|
|
23
23
|
},
|
|
24
|
+
{
|
|
25
|
+
"name": "throws",
|
|
26
|
+
"text": "{Error} `Scope must be provided.` — when `scope` is missing."
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"name": "throws",
|
|
30
|
+
"text": "{Error} `Invalid scope.` — when `scope` is invalid."
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"name": "throws",
|
|
34
|
+
"text": "{Error} `Unhandled permission state.` — when the native status cannot be mapped."
|
|
35
|
+
},
|
|
24
36
|
{
|
|
25
37
|
"name": "platform",
|
|
26
38
|
"text": "Android, iOS"
|
|
@@ -30,10 +42,10 @@
|
|
|
30
42
|
"text": "0.1.0"
|
|
31
43
|
}
|
|
32
44
|
],
|
|
33
|
-
"docs": "Retrieves the current permission state for a given scope
|
|
45
|
+
"docs": "Retrieves the current permission state for a given scope.\nOn Android, `readReminders` and `writeReminders` resolve to `\"prompt\"`.",
|
|
34
46
|
"complexTypes": [
|
|
35
47
|
"PermissionState",
|
|
36
|
-
"
|
|
48
|
+
"CheckPermissionOptions"
|
|
37
49
|
],
|
|
38
50
|
"slug": "checkpermission"
|
|
39
51
|
},
|
|
@@ -43,6 +55,10 @@
|
|
|
43
55
|
"parameters": [],
|
|
44
56
|
"returns": "Promise<{ result: CheckAllPermissionsResult; }>",
|
|
45
57
|
"tags": [
|
|
58
|
+
{
|
|
59
|
+
"name": "throws",
|
|
60
|
+
"text": "{Error} `Unhandled permission state.` — when a native status cannot be mapped."
|
|
61
|
+
},
|
|
46
62
|
{
|
|
47
63
|
"name": "platform",
|
|
48
64
|
"text": "Android, iOS"
|
|
@@ -52,7 +68,7 @@
|
|
|
52
68
|
"text": "0.1.0"
|
|
53
69
|
}
|
|
54
70
|
],
|
|
55
|
-
"docs": "Retrieves the current state of all permissions
|
|
71
|
+
"docs": "Retrieves the current state of all permissions.\nOn Android, reminder keys always resolve to `\"prompt\"`.",
|
|
56
72
|
"complexTypes": [
|
|
57
73
|
"CheckAllPermissionsResult"
|
|
58
74
|
],
|
|
@@ -60,23 +76,31 @@
|
|
|
60
76
|
},
|
|
61
77
|
{
|
|
62
78
|
"name": "requestPermission",
|
|
63
|
-
"signature": "(options:
|
|
79
|
+
"signature": "(options: RequestPermissionOptions) => Promise<{ result: PermissionState; }>",
|
|
64
80
|
"parameters": [
|
|
65
81
|
{
|
|
66
82
|
"name": "options",
|
|
67
83
|
"docs": "",
|
|
68
|
-
"type": "
|
|
84
|
+
"type": "RequestPermissionOptions"
|
|
69
85
|
}
|
|
70
86
|
],
|
|
71
87
|
"returns": "Promise<{ result: PermissionState; }>",
|
|
72
88
|
"tags": [
|
|
73
89
|
{
|
|
74
90
|
"name": "example",
|
|
75
|
-
"text": "
|
|
91
|
+
"text": "CapacitorCalendar.requestPermission({ scope: CalendarPermissionScope.READ_CALENDAR });"
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
"name": "throws",
|
|
95
|
+
"text": "{Error} `Scope must be provided.` — when `scope` is missing."
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
"name": "throws",
|
|
99
|
+
"text": "{Error} `Invalid scope.` — when `scope` is invalid, or a reminders scope on Android."
|
|
76
100
|
},
|
|
77
101
|
{
|
|
78
102
|
"name": "deprecated",
|
|
79
|
-
"text": "Use {@link requestWriteOnlyCalendarAccess}
|
|
103
|
+
"text": "Use {@link requestWriteOnlyCalendarAccess},\n{@link requestReadOnlyCalendarAccess} (Android),\n{@link requestFullCalendarAccess} (also for read on iOS),\nor {@link requestFullRemindersAccess} instead."
|
|
80
104
|
},
|
|
81
105
|
{
|
|
82
106
|
"name": "platform",
|
|
@@ -87,10 +111,10 @@
|
|
|
87
111
|
"text": "0.1.0"
|
|
88
112
|
}
|
|
89
113
|
],
|
|
90
|
-
"docs": "Requests permission for a given scope
|
|
114
|
+
"docs": "Requests permission for a given scope.\nOn Android, `readReminders` and `writeReminders` reject with `Invalid scope.`",
|
|
91
115
|
"complexTypes": [
|
|
92
116
|
"PermissionState",
|
|
93
|
-
"
|
|
117
|
+
"RequestPermissionOptions"
|
|
94
118
|
],
|
|
95
119
|
"slug": "requestpermission"
|
|
96
120
|
},
|
|
@@ -113,7 +137,7 @@
|
|
|
113
137
|
"text": "0.1.0"
|
|
114
138
|
}
|
|
115
139
|
],
|
|
116
|
-
"docs": "Requests permission for all calendar and reminder permissions
|
|
140
|
+
"docs": "Requests permission for all calendar and reminder permissions.\nOn Android, only calendar permissions are requested; reminder keys stay `\"prompt\"`.",
|
|
117
141
|
"complexTypes": [
|
|
118
142
|
"RequestAllPermissionsResult"
|
|
119
143
|
],
|
|
@@ -204,6 +228,10 @@
|
|
|
204
228
|
"name": "permissions",
|
|
205
229
|
"text": "| Platform | Required |\n|-----------|---------------------|\n| iOS 17+ | `NSRemindersFullAccessUsageDescription` |\n| iOS 10-16 | `NSRemindersUsageDescription` |"
|
|
206
230
|
},
|
|
231
|
+
{
|
|
232
|
+
"name": "throws",
|
|
233
|
+
"text": "{Error} when EventKit fails or required Info.plist keys are missing."
|
|
234
|
+
},
|
|
207
235
|
{
|
|
208
236
|
"name": "platform",
|
|
209
237
|
"text": "iOS"
|
|
@@ -221,7 +249,7 @@
|
|
|
221
249
|
"text": "5.4.0"
|
|
222
250
|
}
|
|
223
251
|
],
|
|
224
|
-
"docs": "Requests read and write access to the reminders
|
|
252
|
+
"docs": "Requests read and write access to the reminders.\nResolves with `\"granted\"` or `\"denied\"` (never `\"prompt\"`).\nA grant covers both `readReminders` and `writeReminders`.",
|
|
225
253
|
"complexTypes": [
|
|
226
254
|
"PermissionState"
|
|
227
255
|
],
|
|
@@ -442,6 +470,10 @@
|
|
|
442
470
|
],
|
|
443
471
|
"returns": "Promise<{ result: CalendarEvent[]; }>",
|
|
444
472
|
"tags": [
|
|
473
|
+
{
|
|
474
|
+
"name": "example",
|
|
475
|
+
"text": "const startOfDay = new Date();\nstartOfDay.setHours(0, 0, 0, 0);\nconst startOfNextDay = new Date(startOfDay);\nstartOfNextDay.setDate(startOfNextDay.getDate() + 1);\n\nconst { result } = await CapacitorCalendar.listEventsInRange({\n from: startOfDay.getTime(),\n to: startOfNextDay.getTime(),\n});"
|
|
476
|
+
},
|
|
445
477
|
{
|
|
446
478
|
"name": "platform",
|
|
447
479
|
"text": "Android, iOS"
|
|
@@ -451,7 +483,7 @@
|
|
|
451
483
|
"text": "0.10.0"
|
|
452
484
|
}
|
|
453
485
|
],
|
|
454
|
-
"docs": "Retrieves
|
|
486
|
+
"docs": "Retrieves events that overlap a date range.\n\nAn event is included when its time interval intersects `[from, to]`, including\nmulti-day events that span the range without starting or ending inside it.",
|
|
455
487
|
"complexTypes": [
|
|
456
488
|
"CalendarEvent",
|
|
457
489
|
"ListEventsInRangeOptions"
|
|
@@ -479,7 +511,7 @@
|
|
|
479
511
|
},
|
|
480
512
|
{
|
|
481
513
|
"name": "selectCalendarsWithPrompt",
|
|
482
|
-
"signature": "(options?: SelectCalendarsWithPromptOptions | undefined) => Promise<
|
|
514
|
+
"signature": "(options?: SelectCalendarsWithPromptOptions | undefined) => Promise<SelectCalendarsWithPromptResult>",
|
|
483
515
|
"parameters": [
|
|
484
516
|
{
|
|
485
517
|
"name": "options",
|
|
@@ -487,7 +519,7 @@
|
|
|
487
519
|
"type": "SelectCalendarsWithPromptOptions | undefined"
|
|
488
520
|
}
|
|
489
521
|
],
|
|
490
|
-
"returns": "Promise<
|
|
522
|
+
"returns": "Promise<SelectCalendarsWithPromptResult>",
|
|
491
523
|
"tags": [
|
|
492
524
|
{
|
|
493
525
|
"name": "platform",
|
|
@@ -498,18 +530,18 @@
|
|
|
498
530
|
"text": "0.2.0"
|
|
499
531
|
}
|
|
500
532
|
],
|
|
501
|
-
"docs": "Opens a system interface to choose one or multiple calendars.",
|
|
533
|
+
"docs": "Opens a system interface to choose one or multiple calendars.\n\nCalendar access is expected. Call `requestFullCalendarAccess()` first.\nWithout authorization the chooser can look empty.\n\nOn confirm, `result` contains the calendars the user selected.\nOn cancel, `result` is an empty array.\n\nIf a chooser is already presented, a new call is rejected; the in-flight\ncall continues until the user confirms or cancels.",
|
|
502
534
|
"complexTypes": [
|
|
503
|
-
"
|
|
535
|
+
"SelectCalendarsWithPromptResult",
|
|
504
536
|
"SelectCalendarsWithPromptOptions"
|
|
505
537
|
],
|
|
506
538
|
"slug": "selectcalendarswithprompt"
|
|
507
539
|
},
|
|
508
540
|
{
|
|
509
541
|
"name": "fetchAllCalendarSources",
|
|
510
|
-
"signature": "() => Promise<
|
|
542
|
+
"signature": "() => Promise<FetchAllCalendarSourcesResult>",
|
|
511
543
|
"parameters": [],
|
|
512
|
-
"returns": "Promise<
|
|
544
|
+
"returns": "Promise<FetchAllCalendarSourcesResult>",
|
|
513
545
|
"tags": [
|
|
514
546
|
{
|
|
515
547
|
"name": "platform",
|
|
@@ -520,17 +552,17 @@
|
|
|
520
552
|
"text": "6.6.0"
|
|
521
553
|
}
|
|
522
554
|
],
|
|
523
|
-
"docs": "Retrieves a list of calendar sources.",
|
|
555
|
+
"docs": "Retrieves a list of calendar sources.\n\nRequires calendar access. Without authorization, `result` is typically\nan empty array. This method does not reject solely for missing permission.",
|
|
524
556
|
"complexTypes": [
|
|
525
|
-
"
|
|
557
|
+
"FetchAllCalendarSourcesResult"
|
|
526
558
|
],
|
|
527
559
|
"slug": "fetchallcalendarsources"
|
|
528
560
|
},
|
|
529
561
|
{
|
|
530
562
|
"name": "listCalendars",
|
|
531
|
-
"signature": "() => Promise<
|
|
563
|
+
"signature": "() => Promise<ListCalendarsResult>",
|
|
532
564
|
"parameters": [],
|
|
533
|
-
"returns": "Promise<
|
|
565
|
+
"returns": "Promise<ListCalendarsResult>",
|
|
534
566
|
"tags": [
|
|
535
567
|
{
|
|
536
568
|
"name": "platform",
|
|
@@ -541,16 +573,22 @@
|
|
|
541
573
|
"text": "7.1.0"
|
|
542
574
|
}
|
|
543
575
|
],
|
|
544
|
-
"docs": "Retrieves a list of all available calendars.",
|
|
576
|
+
"docs": "Retrieves a list of all available calendars.\n\nRequires calendar read access. On Android, missing permission typically\nrejects. On iOS, missing authorization typically returns an empty `result`.",
|
|
545
577
|
"complexTypes": [
|
|
546
|
-
"
|
|
578
|
+
"ListCalendarsResult"
|
|
547
579
|
],
|
|
548
580
|
"slug": "listcalendars"
|
|
549
581
|
},
|
|
550
582
|
{
|
|
551
583
|
"name": "getDefaultCalendar",
|
|
552
|
-
"signature": "() => Promise<{ result: Calendar | null; }>",
|
|
553
|
-
"parameters": [
|
|
584
|
+
"signature": "(options?: GetDefaultCalendarOptions | undefined) => Promise<{ result: Calendar | null; }>",
|
|
585
|
+
"parameters": [
|
|
586
|
+
{
|
|
587
|
+
"name": "options",
|
|
588
|
+
"docs": "",
|
|
589
|
+
"type": "GetDefaultCalendarOptions | undefined"
|
|
590
|
+
}
|
|
591
|
+
],
|
|
554
592
|
"returns": "Promise<{ result: Calendar | null; }>",
|
|
555
593
|
"tags": [
|
|
556
594
|
{
|
|
@@ -562,9 +600,10 @@
|
|
|
562
600
|
"text": "0.3.0"
|
|
563
601
|
}
|
|
564
602
|
],
|
|
565
|
-
"docs": "Retrieves the default calendar.",
|
|
603
|
+
"docs": "Retrieves the default calendar.\n\nRequires calendar read access. On Android, missing permission typically\nrejects. On iOS, missing authorization typically yields `result: null`.\n\nThe system default is the primary calendar on Android and\n`defaultCalendarForNewEvents` on iOS. When neither exists and\n`useFallbackCalendar` is true, the first available calendar is returned.\nOtherwise the method returns `null` when there is no system default.",
|
|
566
604
|
"complexTypes": [
|
|
567
|
-
"Calendar"
|
|
605
|
+
"Calendar",
|
|
606
|
+
"GetDefaultCalendarOptions"
|
|
568
607
|
],
|
|
569
608
|
"slug": "getdefaultcalendar"
|
|
570
609
|
},
|
|
@@ -601,7 +640,7 @@
|
|
|
601
640
|
},
|
|
602
641
|
{
|
|
603
642
|
"name": "createCalendar",
|
|
604
|
-
"signature": "(options: CreateCalendarOptions) => Promise<
|
|
643
|
+
"signature": "(options: CreateCalendarOptions) => Promise<CreateCalendarResult>",
|
|
605
644
|
"parameters": [
|
|
606
645
|
{
|
|
607
646
|
"name": "options",
|
|
@@ -609,8 +648,36 @@
|
|
|
609
648
|
"type": "CreateCalendarOptions"
|
|
610
649
|
}
|
|
611
650
|
],
|
|
612
|
-
"returns": "Promise<
|
|
651
|
+
"returns": "Promise<CreateCalendarResult>",
|
|
613
652
|
"tags": [
|
|
653
|
+
{
|
|
654
|
+
"name": "example",
|
|
655
|
+
"text": "CapacitorCalendar.createCalendar({\n title: 'Work',\n accountName: 'plugin@example.com',\n ownerAccount: 'plugin@example.com',\n});"
|
|
656
|
+
},
|
|
657
|
+
{
|
|
658
|
+
"name": "throws",
|
|
659
|
+
"text": "{Error} `Title must be provided.` — when `title` is missing."
|
|
660
|
+
},
|
|
661
|
+
{
|
|
662
|
+
"name": "throws",
|
|
663
|
+
"text": "{Error} `Invalid color format.` — when `color` is present but invalid."
|
|
664
|
+
},
|
|
665
|
+
{
|
|
666
|
+
"name": "throws",
|
|
667
|
+
"text": "{Error} `Account name must be provided.` — when `accountName` is missing on Android."
|
|
668
|
+
},
|
|
669
|
+
{
|
|
670
|
+
"name": "throws",
|
|
671
|
+
"text": "{Error} `Owner account must be provided.` — when `ownerAccount` is missing on Android."
|
|
672
|
+
},
|
|
673
|
+
{
|
|
674
|
+
"name": "throws",
|
|
675
|
+
"text": "{Error} `Calendar source not found.` — when `sourceId` is set and no EventKit source matches (iOS)."
|
|
676
|
+
},
|
|
677
|
+
{
|
|
678
|
+
"name": "throws",
|
|
679
|
+
"text": "{Error} `Failed to retrieve calendar ID.` — when the calendar is created but no id is returned."
|
|
680
|
+
},
|
|
614
681
|
{
|
|
615
682
|
"name": "platform",
|
|
616
683
|
"text": "Android, iOS"
|
|
@@ -620,8 +687,9 @@
|
|
|
620
687
|
"text": "5.2.0"
|
|
621
688
|
}
|
|
622
689
|
],
|
|
623
|
-
"docs": "Creates a calendar.",
|
|
690
|
+
"docs": "Creates a calendar.\n\n`title` is required. `color` is optional and defaults to `#007AFF`.\nOn Android, `accountName` and `ownerAccount` are required at runtime.",
|
|
624
691
|
"complexTypes": [
|
|
692
|
+
"CreateCalendarResult",
|
|
625
693
|
"CreateCalendarOptions"
|
|
626
694
|
],
|
|
627
695
|
"slug": "createcalendar"
|
|
@@ -638,6 +706,18 @@
|
|
|
638
706
|
],
|
|
639
707
|
"returns": "Promise<void>",
|
|
640
708
|
"tags": [
|
|
709
|
+
{
|
|
710
|
+
"name": "throws",
|
|
711
|
+
"text": "{Error} `Calendar ID must be provided.` — when `id` is missing."
|
|
712
|
+
},
|
|
713
|
+
{
|
|
714
|
+
"name": "throws",
|
|
715
|
+
"text": "{Error} `Invalid calendar ID.` — when `id` is not a numeric Android calendar id."
|
|
716
|
+
},
|
|
717
|
+
{
|
|
718
|
+
"name": "throws",
|
|
719
|
+
"text": "{Error} `Calendar not found.` — when no calendar exists for `id`."
|
|
720
|
+
},
|
|
641
721
|
{
|
|
642
722
|
"name": "platform",
|
|
643
723
|
"text": "Android, iOS"
|
|
@@ -665,6 +745,30 @@
|
|
|
665
745
|
],
|
|
666
746
|
"returns": "Promise<void>",
|
|
667
747
|
"tags": [
|
|
748
|
+
{
|
|
749
|
+
"name": "throws",
|
|
750
|
+
"text": "{Error} `Calendar ID must be provided.` — when `id` is missing."
|
|
751
|
+
},
|
|
752
|
+
{
|
|
753
|
+
"name": "throws",
|
|
754
|
+
"text": "{Error} `Invalid calendar ID.` — when `id` is not a numeric Android calendar id."
|
|
755
|
+
},
|
|
756
|
+
{
|
|
757
|
+
"name": "throws",
|
|
758
|
+
"text": "{Error} `At least one of title or color must be provided.` — when both are omitted."
|
|
759
|
+
},
|
|
760
|
+
{
|
|
761
|
+
"name": "throws",
|
|
762
|
+
"text": "{Error} `Invalid color format.` — when `color` is present but invalid."
|
|
763
|
+
},
|
|
764
|
+
{
|
|
765
|
+
"name": "throws",
|
|
766
|
+
"text": "{Error} `Calendar not found.` — when no calendar exists for `id`."
|
|
767
|
+
},
|
|
768
|
+
{
|
|
769
|
+
"name": "throws",
|
|
770
|
+
"text": "{Error} `Calendar is not modifiable.` — when the calendar cannot be modified (iOS)."
|
|
771
|
+
},
|
|
668
772
|
{
|
|
669
773
|
"name": "platform",
|
|
670
774
|
"text": "Android, iOS"
|
|
@@ -1049,6 +1153,78 @@
|
|
|
1049
1153
|
"properties": []
|
|
1050
1154
|
},
|
|
1051
1155
|
"interfaces": [
|
|
1156
|
+
{
|
|
1157
|
+
"name": "CheckPermissionOptions",
|
|
1158
|
+
"slug": "checkpermissionoptions",
|
|
1159
|
+
"docs": "Options for {@link CalendarAccess#checkPermission}.",
|
|
1160
|
+
"tags": [
|
|
1161
|
+
{
|
|
1162
|
+
"text": "8.3.1",
|
|
1163
|
+
"name": "since"
|
|
1164
|
+
}
|
|
1165
|
+
],
|
|
1166
|
+
"methods": [],
|
|
1167
|
+
"properties": [
|
|
1168
|
+
{
|
|
1169
|
+
"name": "scope",
|
|
1170
|
+
"tags": [
|
|
1171
|
+
{
|
|
1172
|
+
"text": "CalendarPermissionScope.READ_CALENDAR",
|
|
1173
|
+
"name": "example"
|
|
1174
|
+
},
|
|
1175
|
+
{
|
|
1176
|
+
"text": "Android, iOS",
|
|
1177
|
+
"name": "platform"
|
|
1178
|
+
},
|
|
1179
|
+
{
|
|
1180
|
+
"text": "8.3.1",
|
|
1181
|
+
"name": "since"
|
|
1182
|
+
}
|
|
1183
|
+
],
|
|
1184
|
+
"docs": "The permission scope to check.\n\nOn Android, `readReminders` and `writeReminders` resolve to `\"prompt\"`\n(reminders are not supported on Android).",
|
|
1185
|
+
"complexTypes": [
|
|
1186
|
+
"CalendarPermissionScope"
|
|
1187
|
+
],
|
|
1188
|
+
"type": "CalendarPermissionScope"
|
|
1189
|
+
}
|
|
1190
|
+
]
|
|
1191
|
+
},
|
|
1192
|
+
{
|
|
1193
|
+
"name": "RequestPermissionOptions",
|
|
1194
|
+
"slug": "requestpermissionoptions",
|
|
1195
|
+
"docs": "Options for {@link CalendarAccess#requestPermission}.",
|
|
1196
|
+
"tags": [
|
|
1197
|
+
{
|
|
1198
|
+
"text": "8.3.1",
|
|
1199
|
+
"name": "since"
|
|
1200
|
+
}
|
|
1201
|
+
],
|
|
1202
|
+
"methods": [],
|
|
1203
|
+
"properties": [
|
|
1204
|
+
{
|
|
1205
|
+
"name": "scope",
|
|
1206
|
+
"tags": [
|
|
1207
|
+
{
|
|
1208
|
+
"text": "CalendarPermissionScope.READ_CALENDAR",
|
|
1209
|
+
"name": "example"
|
|
1210
|
+
},
|
|
1211
|
+
{
|
|
1212
|
+
"text": "Android, iOS",
|
|
1213
|
+
"name": "platform"
|
|
1214
|
+
},
|
|
1215
|
+
{
|
|
1216
|
+
"text": "8.3.1",
|
|
1217
|
+
"name": "since"
|
|
1218
|
+
}
|
|
1219
|
+
],
|
|
1220
|
+
"docs": "The permission scope to request.",
|
|
1221
|
+
"complexTypes": [
|
|
1222
|
+
"CalendarPermissionScope"
|
|
1223
|
+
],
|
|
1224
|
+
"type": "CalendarPermissionScope"
|
|
1225
|
+
}
|
|
1226
|
+
]
|
|
1227
|
+
},
|
|
1052
1228
|
{
|
|
1053
1229
|
"name": "CreateEventWithPromptOptions",
|
|
1054
1230
|
"slug": "createeventwithpromptoptions",
|
|
@@ -3127,29 +3303,69 @@
|
|
|
3127
3303
|
{
|
|
3128
3304
|
"name": "from",
|
|
3129
3305
|
"tags": [
|
|
3306
|
+
{
|
|
3307
|
+
"text": "1719792000000",
|
|
3308
|
+
"name": "example"
|
|
3309
|
+
},
|
|
3130
3310
|
{
|
|
3131
3311
|
"text": "7.1.0",
|
|
3132
3312
|
"name": "since"
|
|
3133
3313
|
}
|
|
3134
3314
|
],
|
|
3135
|
-
"docs": "The
|
|
3315
|
+
"docs": "The start of the range, in milliseconds since the epoch.\nEvents still in progress at this time are included.",
|
|
3136
3316
|
"complexTypes": [],
|
|
3137
3317
|
"type": "number"
|
|
3138
3318
|
},
|
|
3139
3319
|
{
|
|
3140
3320
|
"name": "to",
|
|
3141
3321
|
"tags": [
|
|
3322
|
+
{
|
|
3323
|
+
"text": "1719878400000",
|
|
3324
|
+
"name": "example"
|
|
3325
|
+
},
|
|
3142
3326
|
{
|
|
3143
3327
|
"text": "7.1.0",
|
|
3144
3328
|
"name": "since"
|
|
3145
3329
|
}
|
|
3146
3330
|
],
|
|
3147
|
-
"docs": "The
|
|
3331
|
+
"docs": "The end of the range, in milliseconds since the epoch.\nEvents that begin at or after this time are typically excluded; prefer the\nnext day's start when querying a single calendar day.",
|
|
3148
3332
|
"complexTypes": [],
|
|
3149
3333
|
"type": "number"
|
|
3150
3334
|
}
|
|
3151
3335
|
]
|
|
3152
3336
|
},
|
|
3337
|
+
{
|
|
3338
|
+
"name": "SelectCalendarsWithPromptResult",
|
|
3339
|
+
"slug": "selectcalendarswithpromptresult",
|
|
3340
|
+
"docs": "",
|
|
3341
|
+
"tags": [
|
|
3342
|
+
{
|
|
3343
|
+
"text": "8.4.0",
|
|
3344
|
+
"name": "since"
|
|
3345
|
+
}
|
|
3346
|
+
],
|
|
3347
|
+
"methods": [],
|
|
3348
|
+
"properties": [
|
|
3349
|
+
{
|
|
3350
|
+
"name": "result",
|
|
3351
|
+
"tags": [
|
|
3352
|
+
{
|
|
3353
|
+
"text": "iOS",
|
|
3354
|
+
"name": "platform"
|
|
3355
|
+
},
|
|
3356
|
+
{
|
|
3357
|
+
"text": "8.4.0",
|
|
3358
|
+
"name": "since"
|
|
3359
|
+
}
|
|
3360
|
+
],
|
|
3361
|
+
"docs": "Calendars the user confirmed in the chooser.\nEmpty when the user cancels.",
|
|
3362
|
+
"complexTypes": [
|
|
3363
|
+
"Calendar"
|
|
3364
|
+
],
|
|
3365
|
+
"type": "Calendar[]"
|
|
3366
|
+
}
|
|
3367
|
+
]
|
|
3368
|
+
},
|
|
3153
3369
|
{
|
|
3154
3370
|
"name": "Calendar",
|
|
3155
3371
|
"slug": "calendar",
|
|
@@ -3190,9 +3406,9 @@
|
|
|
3190
3406
|
"name": "since"
|
|
3191
3407
|
}
|
|
3192
3408
|
],
|
|
3193
|
-
"docs": "",
|
|
3409
|
+
"docs": "Display title of the calendar.\nMay be `null` when the platform does not provide a title.",
|
|
3194
3410
|
"complexTypes": [],
|
|
3195
|
-
"type": "string"
|
|
3411
|
+
"type": "string | null"
|
|
3196
3412
|
},
|
|
3197
3413
|
{
|
|
3198
3414
|
"name": "internalTitle",
|
|
@@ -3217,14 +3433,22 @@
|
|
|
3217
3433
|
"text": "Android, iOS",
|
|
3218
3434
|
"name": "platform"
|
|
3219
3435
|
},
|
|
3436
|
+
{
|
|
3437
|
+
"text": "#0000FF",
|
|
3438
|
+
"name": "example"
|
|
3439
|
+
},
|
|
3440
|
+
{
|
|
3441
|
+
"text": "#0000FF80",
|
|
3442
|
+
"name": "example"
|
|
3443
|
+
},
|
|
3220
3444
|
{
|
|
3221
3445
|
"text": "7.1.0",
|
|
3222
3446
|
"name": "since"
|
|
3223
3447
|
}
|
|
3224
3448
|
],
|
|
3225
|
-
"docs": "",
|
|
3449
|
+
"docs": "Calendar color as a hex string.\n\nFormat: `#RRGGBB` when opaque; `#RRGGBBAA` when alpha is below fully opaque.\nMay be `null` when the platform does not provide a color.",
|
|
3226
3450
|
"complexTypes": [],
|
|
3227
|
-
"type": "string"
|
|
3451
|
+
"type": "string | null"
|
|
3228
3452
|
},
|
|
3229
3453
|
{
|
|
3230
3454
|
"name": "isImmutable",
|
|
@@ -3407,6 +3631,10 @@
|
|
|
3407
3631
|
{
|
|
3408
3632
|
"name": "type",
|
|
3409
3633
|
"tags": [
|
|
3634
|
+
{
|
|
3635
|
+
"text": "iOS",
|
|
3636
|
+
"name": "platform"
|
|
3637
|
+
},
|
|
3410
3638
|
{
|
|
3411
3639
|
"text": "7.1.0",
|
|
3412
3640
|
"name": "since"
|
|
@@ -3421,6 +3649,10 @@
|
|
|
3421
3649
|
{
|
|
3422
3650
|
"name": "id",
|
|
3423
3651
|
"tags": [
|
|
3652
|
+
{
|
|
3653
|
+
"text": "iOS",
|
|
3654
|
+
"name": "platform"
|
|
3655
|
+
},
|
|
3424
3656
|
{
|
|
3425
3657
|
"text": "7.1.0",
|
|
3426
3658
|
"name": "since"
|
|
@@ -3433,6 +3665,10 @@
|
|
|
3433
3665
|
{
|
|
3434
3666
|
"name": "title",
|
|
3435
3667
|
"tags": [
|
|
3668
|
+
{
|
|
3669
|
+
"text": "iOS",
|
|
3670
|
+
"name": "platform"
|
|
3671
|
+
},
|
|
3436
3672
|
{
|
|
3437
3673
|
"text": "7.1.0",
|
|
3438
3674
|
"name": "since"
|
|
@@ -3492,6 +3728,104 @@
|
|
|
3492
3728
|
}
|
|
3493
3729
|
]
|
|
3494
3730
|
},
|
|
3731
|
+
{
|
|
3732
|
+
"name": "FetchAllCalendarSourcesResult",
|
|
3733
|
+
"slug": "fetchallcalendarsourcesresult",
|
|
3734
|
+
"docs": "",
|
|
3735
|
+
"tags": [
|
|
3736
|
+
{
|
|
3737
|
+
"text": "8.4.0",
|
|
3738
|
+
"name": "since"
|
|
3739
|
+
}
|
|
3740
|
+
],
|
|
3741
|
+
"methods": [],
|
|
3742
|
+
"properties": [
|
|
3743
|
+
{
|
|
3744
|
+
"name": "result",
|
|
3745
|
+
"tags": [
|
|
3746
|
+
{
|
|
3747
|
+
"text": "iOS",
|
|
3748
|
+
"name": "platform"
|
|
3749
|
+
},
|
|
3750
|
+
{
|
|
3751
|
+
"text": "8.4.0",
|
|
3752
|
+
"name": "since"
|
|
3753
|
+
}
|
|
3754
|
+
],
|
|
3755
|
+
"docs": "All calendar sources (accounts) known to EventKit.",
|
|
3756
|
+
"complexTypes": [
|
|
3757
|
+
"CalendarSource"
|
|
3758
|
+
],
|
|
3759
|
+
"type": "CalendarSource[]"
|
|
3760
|
+
}
|
|
3761
|
+
]
|
|
3762
|
+
},
|
|
3763
|
+
{
|
|
3764
|
+
"name": "ListCalendarsResult",
|
|
3765
|
+
"slug": "listcalendarsresult",
|
|
3766
|
+
"docs": "",
|
|
3767
|
+
"tags": [
|
|
3768
|
+
{
|
|
3769
|
+
"text": "8.4.0",
|
|
3770
|
+
"name": "since"
|
|
3771
|
+
}
|
|
3772
|
+
],
|
|
3773
|
+
"methods": [],
|
|
3774
|
+
"properties": [
|
|
3775
|
+
{
|
|
3776
|
+
"name": "result",
|
|
3777
|
+
"tags": [
|
|
3778
|
+
{
|
|
3779
|
+
"text": "Android, iOS",
|
|
3780
|
+
"name": "platform"
|
|
3781
|
+
},
|
|
3782
|
+
{
|
|
3783
|
+
"text": "8.4.0",
|
|
3784
|
+
"name": "since"
|
|
3785
|
+
}
|
|
3786
|
+
],
|
|
3787
|
+
"docs": "All available calendars.",
|
|
3788
|
+
"complexTypes": [
|
|
3789
|
+
"Calendar"
|
|
3790
|
+
],
|
|
3791
|
+
"type": "Calendar[]"
|
|
3792
|
+
}
|
|
3793
|
+
]
|
|
3794
|
+
},
|
|
3795
|
+
{
|
|
3796
|
+
"name": "GetDefaultCalendarOptions",
|
|
3797
|
+
"slug": "getdefaultcalendaroptions",
|
|
3798
|
+
"docs": "",
|
|
3799
|
+
"tags": [
|
|
3800
|
+
{
|
|
3801
|
+
"text": "8.4.0",
|
|
3802
|
+
"name": "since"
|
|
3803
|
+
}
|
|
3804
|
+
],
|
|
3805
|
+
"methods": [],
|
|
3806
|
+
"properties": [
|
|
3807
|
+
{
|
|
3808
|
+
"name": "useFallbackCalendar",
|
|
3809
|
+
"tags": [
|
|
3810
|
+
{
|
|
3811
|
+
"text": "false",
|
|
3812
|
+
"name": "default"
|
|
3813
|
+
},
|
|
3814
|
+
{
|
|
3815
|
+
"text": "Android, iOS",
|
|
3816
|
+
"name": "platform"
|
|
3817
|
+
},
|
|
3818
|
+
{
|
|
3819
|
+
"text": "8.4.0",
|
|
3820
|
+
"name": "since"
|
|
3821
|
+
}
|
|
3822
|
+
],
|
|
3823
|
+
"docs": "When there is no system default calendar, use the first available calendar.",
|
|
3824
|
+
"complexTypes": [],
|
|
3825
|
+
"type": "boolean | undefined"
|
|
3826
|
+
}
|
|
3827
|
+
]
|
|
3828
|
+
},
|
|
3495
3829
|
{
|
|
3496
3830
|
"name": "OpenCalendarOptions",
|
|
3497
3831
|
"slug": "opencalendaroptions",
|
|
@@ -3507,18 +3841,56 @@
|
|
|
3507
3841
|
{
|
|
3508
3842
|
"name": "date",
|
|
3509
3843
|
"tags": [
|
|
3844
|
+
{
|
|
3845
|
+
"text": "Date.now()",
|
|
3846
|
+
"name": "example"
|
|
3847
|
+
},
|
|
3510
3848
|
{
|
|
3511
3849
|
"text": "Date.now()",
|
|
3512
3850
|
"name": "default"
|
|
3513
3851
|
},
|
|
3852
|
+
{
|
|
3853
|
+
"text": "Android, iOS",
|
|
3854
|
+
"name": "platform"
|
|
3855
|
+
},
|
|
3514
3856
|
{
|
|
3515
3857
|
"text": "7.1.0",
|
|
3516
3858
|
"name": "since"
|
|
3517
3859
|
}
|
|
3518
3860
|
],
|
|
3519
|
-
"docs": "",
|
|
3861
|
+
"docs": "The date to open the calendar at, in milliseconds since the epoch.",
|
|
3520
3862
|
"complexTypes": [],
|
|
3521
|
-
"type": "number"
|
|
3863
|
+
"type": "number | undefined"
|
|
3864
|
+
}
|
|
3865
|
+
]
|
|
3866
|
+
},
|
|
3867
|
+
{
|
|
3868
|
+
"name": "CreateCalendarResult",
|
|
3869
|
+
"slug": "createcalendarresult",
|
|
3870
|
+
"docs": "",
|
|
3871
|
+
"tags": [
|
|
3872
|
+
{
|
|
3873
|
+
"text": "8.4.0",
|
|
3874
|
+
"name": "since"
|
|
3875
|
+
}
|
|
3876
|
+
],
|
|
3877
|
+
"methods": [],
|
|
3878
|
+
"properties": [
|
|
3879
|
+
{
|
|
3880
|
+
"name": "id",
|
|
3881
|
+
"tags": [
|
|
3882
|
+
{
|
|
3883
|
+
"text": "Android, iOS",
|
|
3884
|
+
"name": "platform"
|
|
3885
|
+
},
|
|
3886
|
+
{
|
|
3887
|
+
"text": "8.4.0",
|
|
3888
|
+
"name": "since"
|
|
3889
|
+
}
|
|
3890
|
+
],
|
|
3891
|
+
"docs": "Identifier of the newly created calendar.",
|
|
3892
|
+
"complexTypes": [],
|
|
3893
|
+
"type": "string"
|
|
3522
3894
|
}
|
|
3523
3895
|
]
|
|
3524
3896
|
},
|
|
@@ -3558,15 +3930,19 @@
|
|
|
3558
3930
|
"name": "platform"
|
|
3559
3931
|
},
|
|
3560
3932
|
{
|
|
3561
|
-
"text": "#
|
|
3933
|
+
"text": "#007AFF",
|
|
3562
3934
|
"name": "example"
|
|
3563
3935
|
},
|
|
3936
|
+
{
|
|
3937
|
+
"text": "#007AFF",
|
|
3938
|
+
"name": "default"
|
|
3939
|
+
},
|
|
3564
3940
|
{
|
|
3565
3941
|
"text": "5.2.0",
|
|
3566
3942
|
"name": "since"
|
|
3567
3943
|
}
|
|
3568
3944
|
],
|
|
3569
|
-
"docs": "The color of the calendar
|
|
3945
|
+
"docs": "The color of the calendar as `#RRGGBB` or `#RRGGBBAA`.\n\nWhen omitted, Android and iOS use `#007AFF` (light-mode iOS system blue).",
|
|
3570
3946
|
"complexTypes": [],
|
|
3571
3947
|
"type": "string | undefined"
|
|
3572
3948
|
},
|
|
@@ -3582,13 +3958,17 @@
|
|
|
3582
3958
|
"name": "since"
|
|
3583
3959
|
}
|
|
3584
3960
|
],
|
|
3585
|
-
"docs": "",
|
|
3961
|
+
"docs": "The EventKit source (account) where the calendar should be created.\n\nIf provided, it must match an existing source from `fetchAllCalendarSources()`.\nIf omitted, iCloud is used when available, otherwise the local source.",
|
|
3586
3962
|
"complexTypes": [],
|
|
3587
3963
|
"type": "string | undefined"
|
|
3588
3964
|
},
|
|
3589
3965
|
{
|
|
3590
3966
|
"name": "accountName",
|
|
3591
3967
|
"tags": [
|
|
3968
|
+
{
|
|
3969
|
+
"text": "plugin@example.com",
|
|
3970
|
+
"name": "example"
|
|
3971
|
+
},
|
|
3592
3972
|
{
|
|
3593
3973
|
"text": "Android",
|
|
3594
3974
|
"name": "platform"
|
|
@@ -3598,13 +3978,17 @@
|
|
|
3598
3978
|
"name": "since"
|
|
3599
3979
|
}
|
|
3600
3980
|
],
|
|
3601
|
-
"docs": "
|
|
3981
|
+
"docs": "The account under which the calendar is registered.\nRequired on Android. Typically an email address.",
|
|
3602
3982
|
"complexTypes": [],
|
|
3603
3983
|
"type": "string | undefined"
|
|
3604
3984
|
},
|
|
3605
3985
|
{
|
|
3606
3986
|
"name": "ownerAccount",
|
|
3607
3987
|
"tags": [
|
|
3988
|
+
{
|
|
3989
|
+
"text": "plugin@example.com",
|
|
3990
|
+
"name": "example"
|
|
3991
|
+
},
|
|
3608
3992
|
{
|
|
3609
3993
|
"text": "Android",
|
|
3610
3994
|
"name": "platform"
|
|
@@ -3614,7 +3998,7 @@
|
|
|
3614
3998
|
"name": "since"
|
|
3615
3999
|
}
|
|
3616
4000
|
],
|
|
3617
|
-
"docs": "
|
|
4001
|
+
"docs": "The owner of the calendar.\nRequired on Android. Typically an email address.",
|
|
3618
4002
|
"complexTypes": [],
|
|
3619
4003
|
"type": "string | undefined"
|
|
3620
4004
|
}
|
|
@@ -3635,6 +4019,10 @@
|
|
|
3635
4019
|
{
|
|
3636
4020
|
"name": "id",
|
|
3637
4021
|
"tags": [
|
|
4022
|
+
{
|
|
4023
|
+
"text": "Android, iOS",
|
|
4024
|
+
"name": "platform"
|
|
4025
|
+
},
|
|
3638
4026
|
{
|
|
3639
4027
|
"text": "7.1.0",
|
|
3640
4028
|
"name": "since"
|
|
@@ -3686,7 +4074,7 @@
|
|
|
3686
4074
|
"name": "since"
|
|
3687
4075
|
}
|
|
3688
4076
|
],
|
|
3689
|
-
"docs": "",
|
|
4077
|
+
"docs": "Display title of the calendar.\n\nOn Android this updates both `CALENDAR_DISPLAY_NAME` (`title`) and\n`Calendars.NAME` (`internalTitle`).",
|
|
3690
4078
|
"complexTypes": [],
|
|
3691
4079
|
"type": "string | undefined"
|
|
3692
4080
|
},
|
|
@@ -3698,7 +4086,7 @@
|
|
|
3698
4086
|
"name": "platform"
|
|
3699
4087
|
},
|
|
3700
4088
|
{
|
|
3701
|
-
"text": "#
|
|
4089
|
+
"text": "#007AFF",
|
|
3702
4090
|
"name": "example"
|
|
3703
4091
|
},
|
|
3704
4092
|
{
|
|
@@ -3706,7 +4094,7 @@
|
|
|
3706
4094
|
"name": "since"
|
|
3707
4095
|
}
|
|
3708
4096
|
],
|
|
3709
|
-
"docs": "",
|
|
4097
|
+
"docs": "The color of the calendar as `#RRGGBB` or `#RRGGBBAA`.",
|
|
3710
4098
|
"complexTypes": [],
|
|
3711
4099
|
"type": "string | undefined"
|
|
3712
4100
|
}
|
|
@@ -4851,7 +5239,7 @@
|
|
|
4851
5239
|
"name": "since"
|
|
4852
5240
|
}
|
|
4853
5241
|
],
|
|
4854
|
-
"docs": "Permission required for reading reminders."
|
|
5242
|
+
"docs": "Permission required for reading reminders.\n\nOn Android, reminders are not supported. `checkPermission` and\n`checkAllPermissions` return `\"prompt\"` for this scope.\n`requestPermission` rejects with `Invalid scope.`."
|
|
4855
5243
|
},
|
|
4856
5244
|
{
|
|
4857
5245
|
"name": "WRITE_CALENDAR",
|
|
@@ -4889,7 +5277,7 @@
|
|
|
4889
5277
|
"name": "since"
|
|
4890
5278
|
}
|
|
4891
5279
|
],
|
|
4892
|
-
"docs": "Permission required for adding or modifying reminders."
|
|
5280
|
+
"docs": "Permission required for adding or modifying reminders.\n\nOn Android, reminders are not supported. `checkPermission` and\n`checkAllPermissions` return `\"prompt\"` for this scope.\n`requestPermission` rejects with `Invalid scope.`."
|
|
4893
5281
|
}
|
|
4894
5282
|
]
|
|
4895
5283
|
},
|