@ebarooni/capacitor-calendar 5.2.0 → 5.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 +6 -0
- package/android/src/main/java/dev/barooni/capacitor/calendar/CapacitorCalendarPlugin.kt +98 -1
- package/dist/docs.json +458 -10
- package/dist/esm/definitions.d.ts +124 -10
- package/dist/esm/definitions.js.map +1 -1
- package/dist/esm/index.d.ts +2 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/schemas/interfaces/reminder.d.ts +67 -0
- package/dist/esm/schemas/interfaces/reminder.js +2 -0
- package/dist/esm/schemas/interfaces/reminder.js.map +1 -0
- package/dist/esm/web.d.ts +26 -0
- package/dist/esm/web.js +18 -0
- package/dist/esm/web.js.map +1 -1
- package/dist/plugin.cjs.js +18 -0
- package/dist/plugin.cjs.js.map +1 -1
- package/dist/plugin.js +18 -0
- package/dist/plugin.js.map +1 -1
- package/ios/Plugin/CapacitorCalendar.swift +2 -2
- package/ios/Plugin/CapacitorCalendarPlugin.m +6 -0
- package/ios/Plugin/CapacitorCalendarPlugin.swift +76 -0
- package/ios/Plugin/CapacitorReminders.swift +122 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -91,6 +91,12 @@ permissions can be found below:
|
|
|
91
91
|
* [`deleteEventsById(...)`](#deleteeventsbyid)
|
|
92
92
|
* [`createCalendar(...)`](#createcalendar)
|
|
93
93
|
* [`deleteCalendar(...)`](#deletecalendar)
|
|
94
|
+
* [`getRemindersFromLists(...)`](#getremindersfromlists)
|
|
95
|
+
* [`deleteRemindersById(...)`](#deleteremindersbyid)
|
|
96
|
+
* [`requestWriteOnlyCalendarAccess()`](#requestwriteonlycalendaraccess)
|
|
97
|
+
* [`requestReadOnlyCalendarAccess()`](#requestreadonlycalendaraccess)
|
|
98
|
+
* [`requestFullCalendarAccess()`](#requestfullcalendaraccess)
|
|
99
|
+
* [`requestFullRemindersAccess()`](#requestfullremindersaccess)
|
|
94
100
|
* [Interfaces](#interfaces)
|
|
95
101
|
* [Type Aliases](#type-aliases)
|
|
96
102
|
* [Enums](#enums)
|
|
@@ -29,6 +29,13 @@ import com.getcapacitor.annotation.PermissionCallback
|
|
|
29
29
|
Manifest.permission.WRITE_CALENDAR,
|
|
30
30
|
],
|
|
31
31
|
),
|
|
32
|
+
Permission(
|
|
33
|
+
alias = "readWriteCalendar",
|
|
34
|
+
strings = [
|
|
35
|
+
Manifest.permission.WRITE_CALENDAR,
|
|
36
|
+
Manifest.permission.READ_CALENDAR,
|
|
37
|
+
],
|
|
38
|
+
),
|
|
32
39
|
],
|
|
33
40
|
)
|
|
34
41
|
class CapacitorCalendarPlugin : Plugin() {
|
|
@@ -53,7 +60,7 @@ class CapacitorCalendarPlugin : Plugin() {
|
|
|
53
60
|
location?.let { intent.putExtra(CalendarContract.Events.EVENT_LOCATION, it) }
|
|
54
61
|
startDate?.let { intent.putExtra(CalendarContract.EXTRA_EVENT_BEGIN_TIME, it) }
|
|
55
62
|
endDate?.let { intent.putExtra(CalendarContract.EXTRA_EVENT_END_TIME, it) }
|
|
56
|
-
isAllDay?.let { intent.putExtra(CalendarContract.EXTRA_EVENT_ALL_DAY,
|
|
63
|
+
isAllDay?.let { intent.putExtra(CalendarContract.EXTRA_EVENT_ALL_DAY, it) }
|
|
57
64
|
|
|
58
65
|
return startActivityForResult(
|
|
59
66
|
call,
|
|
@@ -131,6 +138,48 @@ class CapacitorCalendarPlugin : Plugin() {
|
|
|
131
138
|
}
|
|
132
139
|
}
|
|
133
140
|
|
|
141
|
+
@PluginMethod(returnType = PluginMethod.RETURN_PROMISE)
|
|
142
|
+
fun requestWriteOnlyCalendarAccess(call: PluginCall) {
|
|
143
|
+
val permissionName = "writeCalendar"
|
|
144
|
+
try {
|
|
145
|
+
return requestPermissionForAlias(
|
|
146
|
+
permissionName,
|
|
147
|
+
call,
|
|
148
|
+
"requestWriteOnlyCalendarAccessCallback",
|
|
149
|
+
)
|
|
150
|
+
} catch (_: Exception) {
|
|
151
|
+
throw Exception("${::requestPermissionCallback.name} Could not authorize $permissionName")
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
@PluginMethod(returnType = PluginMethod.RETURN_PROMISE)
|
|
156
|
+
fun requestReadOnlyCalendarAccess(call: PluginCall) {
|
|
157
|
+
val permissionName = "readCalendar"
|
|
158
|
+
try {
|
|
159
|
+
return requestPermissionForAlias(
|
|
160
|
+
permissionName,
|
|
161
|
+
call,
|
|
162
|
+
"requestReadOnlyCalendarAccessCallback",
|
|
163
|
+
)
|
|
164
|
+
} catch (_: Exception) {
|
|
165
|
+
throw Exception("${::requestPermissionCallback.name} Could not authorize $permissionName")
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
@PluginMethod(returnType = PluginMethod.RETURN_PROMISE)
|
|
170
|
+
fun requestFullCalendarAccess(call: PluginCall) {
|
|
171
|
+
val permissionName = "readWriteCalendar"
|
|
172
|
+
try {
|
|
173
|
+
return requestPermissionForAlias(
|
|
174
|
+
permissionName,
|
|
175
|
+
call,
|
|
176
|
+
"requestFullCalendarAccessCallback",
|
|
177
|
+
)
|
|
178
|
+
} catch (_: Exception) {
|
|
179
|
+
throw Exception("${::requestPermissionCallback.name} Could not authorize $permissionName")
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
|
|
134
183
|
@PermissionCallback
|
|
135
184
|
private fun requestPermissionCallback(call: PluginCall) {
|
|
136
185
|
val permissionName = call.getString("alias")
|
|
@@ -143,6 +192,42 @@ class CapacitorCalendarPlugin : Plugin() {
|
|
|
143
192
|
}
|
|
144
193
|
}
|
|
145
194
|
|
|
195
|
+
@PermissionCallback
|
|
196
|
+
private fun requestWriteOnlyCalendarAccessCallback(call: PluginCall) {
|
|
197
|
+
val permissionName = "writeCalendar"
|
|
198
|
+
try {
|
|
199
|
+
val ret = JSObject()
|
|
200
|
+
ret.put("result", getPermissionState(permissionName))
|
|
201
|
+
call.resolve(ret)
|
|
202
|
+
} catch (_: Exception) {
|
|
203
|
+
throw Exception("${::requestPermissionCallback.name} Could not authorize $permissionName")
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
@PermissionCallback
|
|
208
|
+
private fun requestReadOnlyCalendarAccessCallback(call: PluginCall) {
|
|
209
|
+
val permissionName = "readCalendar"
|
|
210
|
+
try {
|
|
211
|
+
val ret = JSObject()
|
|
212
|
+
ret.put("result", getPermissionState(permissionName))
|
|
213
|
+
call.resolve(ret)
|
|
214
|
+
} catch (_: Exception) {
|
|
215
|
+
throw Exception("${::requestPermissionCallback.name} Could not authorize $permissionName")
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
@PermissionCallback
|
|
220
|
+
private fun requestFullCalendarAccessCallbackCallback(call: PluginCall) {
|
|
221
|
+
val permissionName = "readWriteCalendar"
|
|
222
|
+
try {
|
|
223
|
+
val ret = JSObject()
|
|
224
|
+
ret.put("result", getPermissionState(permissionName))
|
|
225
|
+
call.resolve(ret)
|
|
226
|
+
} catch (_: Exception) {
|
|
227
|
+
throw Exception("${::requestPermissionCallback.name} Could not authorize $permissionName")
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
|
|
146
231
|
@PluginMethod(returnType = PluginMethod.RETURN_PROMISE)
|
|
147
232
|
fun requestAllPermissions(call: PluginCall) {
|
|
148
233
|
try {
|
|
@@ -291,4 +376,16 @@ class CapacitorCalendarPlugin : Plugin() {
|
|
|
291
376
|
call.unimplemented("[CapacitorCalendar.${::deleteCalendar.name}] Not implemented on Android")
|
|
292
377
|
return
|
|
293
378
|
}
|
|
379
|
+
|
|
380
|
+
@PluginMethod(returnType = PluginMethod.RETURN_PROMISE)
|
|
381
|
+
fun getRemindersFromLists(call: PluginCall) {
|
|
382
|
+
call.unimplemented("[CapacitorCalendar.${::getRemindersFromLists.name}] Not implemented on Android")
|
|
383
|
+
return
|
|
384
|
+
}
|
|
385
|
+
|
|
386
|
+
@PluginMethod(returnType = PluginMethod.RETURN_PROMISE)
|
|
387
|
+
fun deleteRemindersById(call: PluginCall) {
|
|
388
|
+
call.unimplemented("[CapacitorCalendar.${::deleteRemindersById.name}] Not implemented on Android")
|
|
389
|
+
return
|
|
390
|
+
}
|
|
294
391
|
}
|
package/dist/docs.json
CHANGED
|
@@ -18,7 +18,12 @@
|
|
|
18
18
|
"returns": "Promise<{ result: PermissionState; }>",
|
|
19
19
|
"tags": [
|
|
20
20
|
{
|
|
21
|
-
"name": "method"
|
|
21
|
+
"name": "method",
|
|
22
|
+
"text": "checkPermission"
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"name": "since",
|
|
26
|
+
"text": "0.1.0"
|
|
22
27
|
},
|
|
23
28
|
{
|
|
24
29
|
"name": "platform",
|
|
@@ -30,11 +35,11 @@
|
|
|
30
35
|
},
|
|
31
36
|
{
|
|
32
37
|
"name": "returns",
|
|
33
|
-
"text": ";{ result: PermissionState }>}
|
|
38
|
+
"text": ";{ result: PermissionState }>} A promise that resolves with the current status of the requested permission."
|
|
34
39
|
},
|
|
35
40
|
{
|
|
36
41
|
"name": "example",
|
|
37
|
-
"text": "const
|
|
42
|
+
"text": "const { result } = await this.checkPermission({ alias: 'readCalendar' });"
|
|
38
43
|
}
|
|
39
44
|
],
|
|
40
45
|
"docs": "Checks the current authorization status of a specific permission.",
|
|
@@ -51,7 +56,12 @@
|
|
|
51
56
|
"returns": "Promise<PluginPermissionsMap>",
|
|
52
57
|
"tags": [
|
|
53
58
|
{
|
|
54
|
-
"name": "method"
|
|
59
|
+
"name": "method",
|
|
60
|
+
"text": "checkAllPermissions"
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
"name": "since",
|
|
64
|
+
"text": "0.1.0"
|
|
55
65
|
},
|
|
56
66
|
{
|
|
57
67
|
"name": "platform",
|
|
@@ -59,7 +69,7 @@
|
|
|
59
69
|
},
|
|
60
70
|
{
|
|
61
71
|
"name": "returns",
|
|
62
|
-
"text": ";PluginPermissionsMap>}
|
|
72
|
+
"text": ";PluginPermissionsMap>} A promise that resolves with an object containing all the permissions and their status."
|
|
63
73
|
},
|
|
64
74
|
{
|
|
65
75
|
"name": "example",
|
|
@@ -85,7 +95,12 @@
|
|
|
85
95
|
"returns": "Promise<{ result: PermissionState; }>",
|
|
86
96
|
"tags": [
|
|
87
97
|
{
|
|
88
|
-
"name": "method"
|
|
98
|
+
"name": "method",
|
|
99
|
+
"text": "requestPermission"
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
"name": "since",
|
|
103
|
+
"text": "0.1.0"
|
|
89
104
|
},
|
|
90
105
|
{
|
|
91
106
|
"name": "platform",
|
|
@@ -97,11 +112,11 @@
|
|
|
97
112
|
},
|
|
98
113
|
{
|
|
99
114
|
"name": "returns",
|
|
100
|
-
"text": ";{ result: PermissionState }>}
|
|
115
|
+
"text": ";{ result: PermissionState }>} A promise that resolves with the new permission status after the request is made."
|
|
101
116
|
},
|
|
102
117
|
{
|
|
103
118
|
"name": "example",
|
|
104
|
-
"text": "const result = await this.requestPermission({ alias: 'readCalendar' });"
|
|
119
|
+
"text": "const { result } = await this.requestPermission({ alias: 'readCalendar' });"
|
|
105
120
|
}
|
|
106
121
|
],
|
|
107
122
|
"docs": "Requests authorization to a specific permission, if not already granted.\nIf the permission is already granted, it will directly return the status.",
|
|
@@ -118,7 +133,12 @@
|
|
|
118
133
|
"returns": "Promise<PluginPermissionsMap>",
|
|
119
134
|
"tags": [
|
|
120
135
|
{
|
|
121
|
-
"name": "method"
|
|
136
|
+
"name": "method",
|
|
137
|
+
"text": "requestAllPermissions"
|
|
138
|
+
},
|
|
139
|
+
{
|
|
140
|
+
"name": "since",
|
|
141
|
+
"text": "0.1.0"
|
|
122
142
|
},
|
|
123
143
|
{
|
|
124
144
|
"name": "platform",
|
|
@@ -126,7 +146,7 @@
|
|
|
126
146
|
},
|
|
127
147
|
{
|
|
128
148
|
"name": "returns",
|
|
129
|
-
"text": ";PluginPermissionsMap>}
|
|
149
|
+
"text": ";PluginPermissionsMap>} A promise that resolves with the new permission statuses after the request is made."
|
|
130
150
|
},
|
|
131
151
|
{
|
|
132
152
|
"name": "example",
|
|
@@ -682,6 +702,230 @@
|
|
|
682
702
|
"docs": "Deletes a calendar by id",
|
|
683
703
|
"complexTypes": [],
|
|
684
704
|
"slug": "deletecalendar"
|
|
705
|
+
},
|
|
706
|
+
{
|
|
707
|
+
"name": "getRemindersFromLists",
|
|
708
|
+
"signature": "(options?: { listIds: string[]; } | undefined) => Promise<{ result: Reminder[]; }>",
|
|
709
|
+
"parameters": [
|
|
710
|
+
{
|
|
711
|
+
"name": "options",
|
|
712
|
+
"docs": "Options for defining the date range.\nIt Will fetch all reminders from all available lists if not provided. (Optional)",
|
|
713
|
+
"type": "{ listIds: string[]; } | undefined"
|
|
714
|
+
}
|
|
715
|
+
],
|
|
716
|
+
"returns": "Promise<{ result: Reminder[]; }>",
|
|
717
|
+
"tags": [
|
|
718
|
+
{
|
|
719
|
+
"name": "method",
|
|
720
|
+
"text": "getRemindersFromLists"
|
|
721
|
+
},
|
|
722
|
+
{
|
|
723
|
+
"name": "since",
|
|
724
|
+
"text": "5.3.0"
|
|
725
|
+
},
|
|
726
|
+
{
|
|
727
|
+
"name": "platform",
|
|
728
|
+
"text": "iOS"
|
|
729
|
+
},
|
|
730
|
+
{
|
|
731
|
+
"name": "permissions",
|
|
732
|
+
"text": "<h3>Runtime Permissions:</h3>\n<ul>\n <li><strong>iOS:</strong> readReminders</li>\n</ul>"
|
|
733
|
+
},
|
|
734
|
+
{
|
|
735
|
+
"name": "param",
|
|
736
|
+
"text": "options Options for defining the date range.\nIt Will fetch all reminders from all available lists if not provided. (Optional)"
|
|
737
|
+
},
|
|
738
|
+
{
|
|
739
|
+
"name": "returns",
|
|
740
|
+
"text": "A Promise that resolves with the list of reminders."
|
|
741
|
+
},
|
|
742
|
+
{
|
|
743
|
+
"name": "example",
|
|
744
|
+
"text": "const now = Date.now();\nconst { result } = await CapacitorCalendar.getRemindersFromLists({\n listIds: ['LIST_ID_1', 'LIST_ID_2'],\n});"
|
|
745
|
+
}
|
|
746
|
+
],
|
|
747
|
+
"docs": "Retrieves the list of reminders present in the given date range.",
|
|
748
|
+
"complexTypes": [
|
|
749
|
+
"Reminder"
|
|
750
|
+
],
|
|
751
|
+
"slug": "getremindersfromlists"
|
|
752
|
+
},
|
|
753
|
+
{
|
|
754
|
+
"name": "deleteRemindersById",
|
|
755
|
+
"signature": "(options: { ids: string[]; }) => Promise<{ result: { deleted: string[]; failed: string[]; }; }>",
|
|
756
|
+
"parameters": [
|
|
757
|
+
{
|
|
758
|
+
"name": "options",
|
|
759
|
+
"docs": "Options for defining reminder IDs.",
|
|
760
|
+
"type": "{ ids: string[]; }"
|
|
761
|
+
}
|
|
762
|
+
],
|
|
763
|
+
"returns": "Promise<{ result: { deleted: string[]; failed: string[]; }; }>",
|
|
764
|
+
"tags": [
|
|
765
|
+
{
|
|
766
|
+
"name": "method",
|
|
767
|
+
"text": "deleteRemindersById"
|
|
768
|
+
},
|
|
769
|
+
{
|
|
770
|
+
"name": "since",
|
|
771
|
+
"text": "5.3.0"
|
|
772
|
+
},
|
|
773
|
+
{
|
|
774
|
+
"name": "platform",
|
|
775
|
+
"text": "iOS"
|
|
776
|
+
},
|
|
777
|
+
{
|
|
778
|
+
"name": "permissions",
|
|
779
|
+
"text": "<h3>Runtime Permissions:</h3>\n<ul>\n <li><strong>iOS:</strong> writeReminders</li>\n</ul>"
|
|
780
|
+
},
|
|
781
|
+
{
|
|
782
|
+
"name": "param",
|
|
783
|
+
"text": "options Options for defining reminder IDs."
|
|
784
|
+
},
|
|
785
|
+
{
|
|
786
|
+
"name": "returns",
|
|
787
|
+
"text": "A promise that resolves to an object with two properties:\n - deleted: string[] - An array of IDs that were successfully deleted.\n - failed: string[] - An array of IDs that could not be deleted."
|
|
788
|
+
},
|
|
789
|
+
{
|
|
790
|
+
"name": "example",
|
|
791
|
+
"text": "const idsToDelete = ['ID_1', 'ID_2', 'ID_DOES_NOT_EXIST'];\nconst { result } = await CapacitorCalendar.deleteRemindersById(idsToDelete)\nconsole.log(result.deleted) // ['ID_1', 'ID_2']\nconsole.log(result.failed) // ['ID_DOES_NOT_EXIST']"
|
|
792
|
+
}
|
|
793
|
+
],
|
|
794
|
+
"docs": "Deletes reminders given their IDs.",
|
|
795
|
+
"complexTypes": [],
|
|
796
|
+
"slug": "deleteremindersbyid"
|
|
797
|
+
},
|
|
798
|
+
{
|
|
799
|
+
"name": "requestWriteOnlyCalendarAccess",
|
|
800
|
+
"signature": "() => Promise<{ result: PermissionState; }>",
|
|
801
|
+
"parameters": [],
|
|
802
|
+
"returns": "Promise<{ result: PermissionState; }>",
|
|
803
|
+
"tags": [
|
|
804
|
+
{
|
|
805
|
+
"name": "method",
|
|
806
|
+
"text": "requestWriteOnlyCalendarAccess"
|
|
807
|
+
},
|
|
808
|
+
{
|
|
809
|
+
"name": "since",
|
|
810
|
+
"text": "5.4.0"
|
|
811
|
+
},
|
|
812
|
+
{
|
|
813
|
+
"name": "platform",
|
|
814
|
+
"text": "iOS, Android"
|
|
815
|
+
},
|
|
816
|
+
{
|
|
817
|
+
"name": "returns",
|
|
818
|
+
"text": "A promise that resolves with the state of the write access permission."
|
|
819
|
+
},
|
|
820
|
+
{
|
|
821
|
+
"name": "example",
|
|
822
|
+
"text": "const { result } = await this.requestWriteOnlyCalendarAccess();"
|
|
823
|
+
}
|
|
824
|
+
],
|
|
825
|
+
"docs": "Requests write access for the calendar. If its already granted, it will directly return the state.",
|
|
826
|
+
"complexTypes": [
|
|
827
|
+
"PermissionState"
|
|
828
|
+
],
|
|
829
|
+
"slug": "requestwriteonlycalendaraccess"
|
|
830
|
+
},
|
|
831
|
+
{
|
|
832
|
+
"name": "requestReadOnlyCalendarAccess",
|
|
833
|
+
"signature": "() => Promise<{ result: PermissionState; }>",
|
|
834
|
+
"parameters": [],
|
|
835
|
+
"returns": "Promise<{ result: PermissionState; }>",
|
|
836
|
+
"tags": [
|
|
837
|
+
{
|
|
838
|
+
"name": "method",
|
|
839
|
+
"text": "requestReadOnlyCalendarAccess"
|
|
840
|
+
},
|
|
841
|
+
{
|
|
842
|
+
"name": "since",
|
|
843
|
+
"text": "5.4.0"
|
|
844
|
+
},
|
|
845
|
+
{
|
|
846
|
+
"name": "platform",
|
|
847
|
+
"text": "Android"
|
|
848
|
+
},
|
|
849
|
+
{
|
|
850
|
+
"name": "returns",
|
|
851
|
+
"text": "A promise that resolves with the state of the read access permission."
|
|
852
|
+
},
|
|
853
|
+
{
|
|
854
|
+
"name": "example",
|
|
855
|
+
"text": "const { result } = await this.requestReadOnlyCalendarAccess();"
|
|
856
|
+
}
|
|
857
|
+
],
|
|
858
|
+
"docs": "Requests read access for the calendar. If its already granted, it will directly return the state.",
|
|
859
|
+
"complexTypes": [
|
|
860
|
+
"PermissionState"
|
|
861
|
+
],
|
|
862
|
+
"slug": "requestreadonlycalendaraccess"
|
|
863
|
+
},
|
|
864
|
+
{
|
|
865
|
+
"name": "requestFullCalendarAccess",
|
|
866
|
+
"signature": "() => Promise<{ result: PermissionState; }>",
|
|
867
|
+
"parameters": [],
|
|
868
|
+
"returns": "Promise<{ result: PermissionState; }>",
|
|
869
|
+
"tags": [
|
|
870
|
+
{
|
|
871
|
+
"name": "method",
|
|
872
|
+
"text": "requestFullCalendarAccess"
|
|
873
|
+
},
|
|
874
|
+
{
|
|
875
|
+
"name": "since",
|
|
876
|
+
"text": "5.4.0"
|
|
877
|
+
},
|
|
878
|
+
{
|
|
879
|
+
"name": "platform",
|
|
880
|
+
"text": "iOS, Android"
|
|
881
|
+
},
|
|
882
|
+
{
|
|
883
|
+
"name": "returns",
|
|
884
|
+
"text": "A promise that resolves with the state of read and write access permission."
|
|
885
|
+
},
|
|
886
|
+
{
|
|
887
|
+
"name": "example",
|
|
888
|
+
"text": "const { result } = await this.requestFullCalendarAccess();"
|
|
889
|
+
}
|
|
890
|
+
],
|
|
891
|
+
"docs": "Requests read and write access for the calendar. If its already granted, it will directly return the state.",
|
|
892
|
+
"complexTypes": [
|
|
893
|
+
"PermissionState"
|
|
894
|
+
],
|
|
895
|
+
"slug": "requestfullcalendaraccess"
|
|
896
|
+
},
|
|
897
|
+
{
|
|
898
|
+
"name": "requestFullRemindersAccess",
|
|
899
|
+
"signature": "() => Promise<{ result: PermissionState; }>",
|
|
900
|
+
"parameters": [],
|
|
901
|
+
"returns": "Promise<{ result: PermissionState; }>",
|
|
902
|
+
"tags": [
|
|
903
|
+
{
|
|
904
|
+
"name": "method",
|
|
905
|
+
"text": "requestFullRemindersAccess"
|
|
906
|
+
},
|
|
907
|
+
{
|
|
908
|
+
"name": "since",
|
|
909
|
+
"text": "5.4.0"
|
|
910
|
+
},
|
|
911
|
+
{
|
|
912
|
+
"name": "platform",
|
|
913
|
+
"text": "iOS"
|
|
914
|
+
},
|
|
915
|
+
{
|
|
916
|
+
"name": "returns",
|
|
917
|
+
"text": "A promise that resolves with the state of read and write access permission."
|
|
918
|
+
},
|
|
919
|
+
{
|
|
920
|
+
"name": "example",
|
|
921
|
+
"text": "const { result } = await this.requestFullRemindersAccess();"
|
|
922
|
+
}
|
|
923
|
+
],
|
|
924
|
+
"docs": "Requests read and write access for the reminders. If its already granted, it will directly return the state.",
|
|
925
|
+
"complexTypes": [
|
|
926
|
+
"PermissionState"
|
|
927
|
+
],
|
|
928
|
+
"slug": "requestfullremindersaccess"
|
|
685
929
|
}
|
|
686
930
|
],
|
|
687
931
|
"properties": []
|
|
@@ -1011,6 +1255,210 @@
|
|
|
1011
1255
|
"type": "string"
|
|
1012
1256
|
}
|
|
1013
1257
|
]
|
|
1258
|
+
},
|
|
1259
|
+
{
|
|
1260
|
+
"name": "Reminder",
|
|
1261
|
+
"slug": "reminder",
|
|
1262
|
+
"docs": "Represents a reminder in a reminders list.",
|
|
1263
|
+
"tags": [
|
|
1264
|
+
{
|
|
1265
|
+
"text": "Reminder",
|
|
1266
|
+
"name": "interface"
|
|
1267
|
+
},
|
|
1268
|
+
{
|
|
1269
|
+
"text": "{string} id The unique identifier of the reminder.",
|
|
1270
|
+
"name": "property"
|
|
1271
|
+
},
|
|
1272
|
+
{
|
|
1273
|
+
"text": "{string} title The title or name of the reminder. (Optional)",
|
|
1274
|
+
"name": "property"
|
|
1275
|
+
},
|
|
1276
|
+
{
|
|
1277
|
+
"text": "{string} listId The list that the reminder belongs to. (Optional)",
|
|
1278
|
+
"name": "property"
|
|
1279
|
+
},
|
|
1280
|
+
{
|
|
1281
|
+
"text": "{boolean} isCompleted Whether the reminder is completed already or not.",
|
|
1282
|
+
"name": "property"
|
|
1283
|
+
},
|
|
1284
|
+
{
|
|
1285
|
+
"text": "{number} priority The priority of the reminder. (Optional)",
|
|
1286
|
+
"name": "property"
|
|
1287
|
+
},
|
|
1288
|
+
{
|
|
1289
|
+
"text": "{string} notes The notes of the reminder. (Optional)",
|
|
1290
|
+
"name": "property"
|
|
1291
|
+
},
|
|
1292
|
+
{
|
|
1293
|
+
"text": "{string} url The url of the reminder. (Optional)",
|
|
1294
|
+
"name": "property"
|
|
1295
|
+
},
|
|
1296
|
+
{
|
|
1297
|
+
"text": "{number} startDate The start date of the reminder. (Optional)",
|
|
1298
|
+
"name": "property"
|
|
1299
|
+
},
|
|
1300
|
+
{
|
|
1301
|
+
"text": "{number} dueDate The due date of the reminder. (Optional)",
|
|
1302
|
+
"name": "property"
|
|
1303
|
+
},
|
|
1304
|
+
{
|
|
1305
|
+
"text": "{number} completionDate The completion date of the reminder. (Optional)",
|
|
1306
|
+
"name": "property"
|
|
1307
|
+
},
|
|
1308
|
+
{
|
|
1309
|
+
"text": "{ReminderRecurrenceRule[]} recurrence The recurrence rules of the reminder. (Optional)",
|
|
1310
|
+
"name": "property"
|
|
1311
|
+
}
|
|
1312
|
+
],
|
|
1313
|
+
"methods": [],
|
|
1314
|
+
"properties": [
|
|
1315
|
+
{
|
|
1316
|
+
"name": "id",
|
|
1317
|
+
"tags": [
|
|
1318
|
+
{
|
|
1319
|
+
"text": "iOS",
|
|
1320
|
+
"name": "platform"
|
|
1321
|
+
}
|
|
1322
|
+
],
|
|
1323
|
+
"docs": "",
|
|
1324
|
+
"complexTypes": [],
|
|
1325
|
+
"type": "string"
|
|
1326
|
+
},
|
|
1327
|
+
{
|
|
1328
|
+
"name": "title",
|
|
1329
|
+
"tags": [
|
|
1330
|
+
{
|
|
1331
|
+
"text": "iOS",
|
|
1332
|
+
"name": "platform"
|
|
1333
|
+
}
|
|
1334
|
+
],
|
|
1335
|
+
"docs": "",
|
|
1336
|
+
"complexTypes": [],
|
|
1337
|
+
"type": "string | undefined"
|
|
1338
|
+
},
|
|
1339
|
+
{
|
|
1340
|
+
"name": "listId",
|
|
1341
|
+
"tags": [
|
|
1342
|
+
{
|
|
1343
|
+
"text": "iOS",
|
|
1344
|
+
"name": "platform"
|
|
1345
|
+
}
|
|
1346
|
+
],
|
|
1347
|
+
"docs": "",
|
|
1348
|
+
"complexTypes": [],
|
|
1349
|
+
"type": "string | undefined"
|
|
1350
|
+
},
|
|
1351
|
+
{
|
|
1352
|
+
"name": "isCompleted",
|
|
1353
|
+
"tags": [
|
|
1354
|
+
{
|
|
1355
|
+
"text": "iOS",
|
|
1356
|
+
"name": "platform"
|
|
1357
|
+
}
|
|
1358
|
+
],
|
|
1359
|
+
"docs": "",
|
|
1360
|
+
"complexTypes": [],
|
|
1361
|
+
"type": "boolean | undefined"
|
|
1362
|
+
},
|
|
1363
|
+
{
|
|
1364
|
+
"name": "priority",
|
|
1365
|
+
"tags": [
|
|
1366
|
+
{
|
|
1367
|
+
"text": "iOS",
|
|
1368
|
+
"name": "platform"
|
|
1369
|
+
}
|
|
1370
|
+
],
|
|
1371
|
+
"docs": "",
|
|
1372
|
+
"complexTypes": [],
|
|
1373
|
+
"type": "number | undefined"
|
|
1374
|
+
},
|
|
1375
|
+
{
|
|
1376
|
+
"name": "notes",
|
|
1377
|
+
"tags": [
|
|
1378
|
+
{
|
|
1379
|
+
"text": "iOS",
|
|
1380
|
+
"name": "platform"
|
|
1381
|
+
}
|
|
1382
|
+
],
|
|
1383
|
+
"docs": "",
|
|
1384
|
+
"complexTypes": [],
|
|
1385
|
+
"type": "string | undefined"
|
|
1386
|
+
},
|
|
1387
|
+
{
|
|
1388
|
+
"name": "location",
|
|
1389
|
+
"tags": [
|
|
1390
|
+
{
|
|
1391
|
+
"text": "iOS",
|
|
1392
|
+
"name": "platform"
|
|
1393
|
+
}
|
|
1394
|
+
],
|
|
1395
|
+
"docs": "",
|
|
1396
|
+
"complexTypes": [],
|
|
1397
|
+
"type": "string | undefined"
|
|
1398
|
+
},
|
|
1399
|
+
{
|
|
1400
|
+
"name": "url",
|
|
1401
|
+
"tags": [
|
|
1402
|
+
{
|
|
1403
|
+
"text": "iOS",
|
|
1404
|
+
"name": "platform"
|
|
1405
|
+
}
|
|
1406
|
+
],
|
|
1407
|
+
"docs": "",
|
|
1408
|
+
"complexTypes": [],
|
|
1409
|
+
"type": "string | undefined"
|
|
1410
|
+
},
|
|
1411
|
+
{
|
|
1412
|
+
"name": "startDate",
|
|
1413
|
+
"tags": [
|
|
1414
|
+
{
|
|
1415
|
+
"text": "iOS",
|
|
1416
|
+
"name": "platform"
|
|
1417
|
+
}
|
|
1418
|
+
],
|
|
1419
|
+
"docs": "",
|
|
1420
|
+
"complexTypes": [],
|
|
1421
|
+
"type": "number | undefined"
|
|
1422
|
+
},
|
|
1423
|
+
{
|
|
1424
|
+
"name": "dueDate",
|
|
1425
|
+
"tags": [
|
|
1426
|
+
{
|
|
1427
|
+
"text": "iOS",
|
|
1428
|
+
"name": "platform"
|
|
1429
|
+
}
|
|
1430
|
+
],
|
|
1431
|
+
"docs": "",
|
|
1432
|
+
"complexTypes": [],
|
|
1433
|
+
"type": "number | undefined"
|
|
1434
|
+
},
|
|
1435
|
+
{
|
|
1436
|
+
"name": "completionDate",
|
|
1437
|
+
"tags": [
|
|
1438
|
+
{
|
|
1439
|
+
"text": "iOS",
|
|
1440
|
+
"name": "platform"
|
|
1441
|
+
}
|
|
1442
|
+
],
|
|
1443
|
+
"docs": "",
|
|
1444
|
+
"complexTypes": [],
|
|
1445
|
+
"type": "number | undefined"
|
|
1446
|
+
},
|
|
1447
|
+
{
|
|
1448
|
+
"name": "recurrence",
|
|
1449
|
+
"tags": [
|
|
1450
|
+
{
|
|
1451
|
+
"text": "iOS",
|
|
1452
|
+
"name": "platform"
|
|
1453
|
+
}
|
|
1454
|
+
],
|
|
1455
|
+
"docs": "",
|
|
1456
|
+
"complexTypes": [
|
|
1457
|
+
"ReminderRecurrenceRule"
|
|
1458
|
+
],
|
|
1459
|
+
"type": "ReminderRecurrenceRule[] | undefined"
|
|
1460
|
+
}
|
|
1461
|
+
]
|
|
1014
1462
|
}
|
|
1015
1463
|
],
|
|
1016
1464
|
"enums": [
|