@ebarooni/capacitor-calendar 0.3.1 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +168 -28
- package/android/build.gradle +1 -1
- package/android/src/main/java/dev/barooni/capacitor/calendar/CapacitorCalendar.kt +35 -0
- package/android/src/main/java/dev/barooni/capacitor/calendar/CapacitorCalendarPlugin.kt +40 -0
- package/dist/docs.json +1100 -48
- package/dist/esm/definitions.d.ts +149 -62
- package/dist/esm/definitions.js +1 -31
- package/dist/esm/definitions.js.map +1 -1
- package/dist/esm/index.d.ts +10 -1
- package/dist/esm/index.js +5 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/schemas/enums/calendar-chooser-display-style.d.ts +15 -0
- package/dist/esm/schemas/enums/calendar-chooser-display-style.js +17 -0
- package/dist/esm/schemas/enums/calendar-chooser-display-style.js.map +1 -0
- package/dist/esm/schemas/enums/calendar-chooser-selection-style.d.ts +15 -0
- package/dist/esm/schemas/enums/calendar-chooser-selection-style.js +17 -0
- package/dist/esm/schemas/enums/calendar-chooser-selection-style.js.map +1 -0
- package/dist/esm/schemas/enums/plugin-permission.d.ts +22 -0
- package/dist/esm/schemas/enums/plugin-permission.js +24 -0
- package/dist/esm/schemas/enums/plugin-permission.js.map +1 -0
- package/dist/esm/schemas/enums/reminder-recurrence-frequency.d.ts +6 -0
- package/dist/esm/schemas/enums/reminder-recurrence-frequency.js +8 -0
- package/dist/esm/schemas/enums/reminder-recurrence-frequency.js.map +1 -0
- package/dist/esm/schemas/interfaces/calendar.d.ts +12 -0
- package/dist/esm/schemas/interfaces/calendar.js +2 -0
- package/dist/esm/schemas/interfaces/calendar.js.map +1 -0
- package/dist/esm/schemas/interfaces/plugin-permissions-map.d.ts +4 -0
- package/dist/esm/schemas/interfaces/plugin-permissions-map.js +2 -0
- package/dist/esm/schemas/interfaces/plugin-permissions-map.js.map +1 -0
- package/dist/esm/schemas/interfaces/reminder-recurrence-rule.d.ts +36 -0
- package/dist/esm/schemas/interfaces/reminder-recurrence-rule.js +2 -0
- package/dist/esm/schemas/interfaces/reminder-recurrence-rule.js.map +1 -0
- package/dist/esm/schemas/interfaces/reminders-list.d.ts +3 -0
- package/dist/esm/schemas/interfaces/reminders-list.js +2 -0
- package/dist/esm/schemas/interfaces/reminders-list.js.map +1 -0
- package/dist/esm/web.d.ts +41 -5
- package/dist/esm/web.js +12 -0
- package/dist/esm/web.js.map +1 -1
- package/dist/plugin.cjs.js +58 -14
- package/dist/plugin.cjs.js.map +1 -1
- package/dist/plugin.js +58 -14
- package/dist/plugin.js.map +1 -1
- package/ios/Plugin/CapacitorCalendar.swift +33 -0
- package/ios/Plugin/CapacitorCalendarPlugin.m +4 -0
- package/ios/Plugin/CapacitorCalendarPlugin.swift +131 -22
- package/ios/Plugin/CapacitorReminders.swift +177 -0
- package/package.json +10 -5
- package/ios/Plugin/Calendar.swift +0 -14
package/dist/docs.json
CHANGED
|
@@ -7,12 +7,12 @@
|
|
|
7
7
|
"methods": [
|
|
8
8
|
{
|
|
9
9
|
"name": "checkPermission",
|
|
10
|
-
"signature": "(options: { alias:
|
|
10
|
+
"signature": "(options: { alias: PluginPermission; }) => Promise<{ result: PermissionState; }>",
|
|
11
11
|
"parameters": [
|
|
12
12
|
{
|
|
13
13
|
"name": "options",
|
|
14
14
|
"docs": "An object with the name of the permission",
|
|
15
|
-
"type": "{ alias:
|
|
15
|
+
"type": "{ alias: PluginPermission; }"
|
|
16
16
|
}
|
|
17
17
|
],
|
|
18
18
|
"returns": "Promise<{ result: PermissionState; }>",
|
|
@@ -20,6 +20,10 @@
|
|
|
20
20
|
{
|
|
21
21
|
"name": "method"
|
|
22
22
|
},
|
|
23
|
+
{
|
|
24
|
+
"name": "platform",
|
|
25
|
+
"text": "iOS, Android"
|
|
26
|
+
},
|
|
23
27
|
{
|
|
24
28
|
"name": "param",
|
|
25
29
|
"text": "options An object with the name of the permission"
|
|
@@ -36,22 +40,26 @@
|
|
|
36
40
|
"docs": "Checks the current authorization status of a specific permission.",
|
|
37
41
|
"complexTypes": [
|
|
38
42
|
"PermissionState",
|
|
39
|
-
"
|
|
43
|
+
"PluginPermission"
|
|
40
44
|
],
|
|
41
45
|
"slug": "checkpermission"
|
|
42
46
|
},
|
|
43
47
|
{
|
|
44
48
|
"name": "checkAllPermissions",
|
|
45
|
-
"signature": "() => Promise<
|
|
49
|
+
"signature": "() => Promise<PluginPermissionsMap>",
|
|
46
50
|
"parameters": [],
|
|
47
|
-
"returns": "Promise<
|
|
51
|
+
"returns": "Promise<PluginPermissionsMap>",
|
|
48
52
|
"tags": [
|
|
49
53
|
{
|
|
50
54
|
"name": "method"
|
|
51
55
|
},
|
|
56
|
+
{
|
|
57
|
+
"name": "platform",
|
|
58
|
+
"text": "iOS, Android"
|
|
59
|
+
},
|
|
52
60
|
{
|
|
53
61
|
"name": "returns",
|
|
54
|
-
"text": ";
|
|
62
|
+
"text": ";PluginPermissionsMap>} – A promise that resolves with an object containing all the permissions and their status."
|
|
55
63
|
},
|
|
56
64
|
{
|
|
57
65
|
"name": "example",
|
|
@@ -60,18 +68,18 @@
|
|
|
60
68
|
],
|
|
61
69
|
"docs": "Checks the current authorization status of all the required permissions for the plugin.",
|
|
62
70
|
"complexTypes": [
|
|
63
|
-
"
|
|
71
|
+
"PluginPermissionsMap"
|
|
64
72
|
],
|
|
65
73
|
"slug": "checkallpermissions"
|
|
66
74
|
},
|
|
67
75
|
{
|
|
68
76
|
"name": "requestPermission",
|
|
69
|
-
"signature": "(options: { alias:
|
|
77
|
+
"signature": "(options: { alias: PluginPermission; }) => Promise<{ result: PermissionState; }>",
|
|
70
78
|
"parameters": [
|
|
71
79
|
{
|
|
72
80
|
"name": "options",
|
|
73
81
|
"docs": "An object with the name of the permission",
|
|
74
|
-
"type": "{ alias:
|
|
82
|
+
"type": "{ alias: PluginPermission; }"
|
|
75
83
|
}
|
|
76
84
|
],
|
|
77
85
|
"returns": "Promise<{ result: PermissionState; }>",
|
|
@@ -79,6 +87,10 @@
|
|
|
79
87
|
{
|
|
80
88
|
"name": "method"
|
|
81
89
|
},
|
|
90
|
+
{
|
|
91
|
+
"name": "platform",
|
|
92
|
+
"text": "iOS, Android"
|
|
93
|
+
},
|
|
82
94
|
{
|
|
83
95
|
"name": "param",
|
|
84
96
|
"text": "options An object with the name of the permission"
|
|
@@ -95,22 +107,26 @@
|
|
|
95
107
|
"docs": "Requests authorization to a specific permission, if not already granted.\nIf the permission is already granted, it will directly return the status.",
|
|
96
108
|
"complexTypes": [
|
|
97
109
|
"PermissionState",
|
|
98
|
-
"
|
|
110
|
+
"PluginPermission"
|
|
99
111
|
],
|
|
100
112
|
"slug": "requestpermission"
|
|
101
113
|
},
|
|
102
114
|
{
|
|
103
115
|
"name": "requestAllPermissions",
|
|
104
|
-
"signature": "() => Promise<
|
|
116
|
+
"signature": "() => Promise<PluginPermissionsMap>",
|
|
105
117
|
"parameters": [],
|
|
106
|
-
"returns": "Promise<
|
|
118
|
+
"returns": "Promise<PluginPermissionsMap>",
|
|
107
119
|
"tags": [
|
|
108
120
|
{
|
|
109
121
|
"name": "method"
|
|
110
122
|
},
|
|
123
|
+
{
|
|
124
|
+
"name": "platform",
|
|
125
|
+
"text": "iOS, Android"
|
|
126
|
+
},
|
|
111
127
|
{
|
|
112
128
|
"name": "returns",
|
|
113
|
-
"text": ";
|
|
129
|
+
"text": ";PluginPermissionsMap>} – A promise that resolves with the new permission statuses after the request is made."
|
|
114
130
|
},
|
|
115
131
|
{
|
|
116
132
|
"name": "example",
|
|
@@ -119,7 +135,7 @@
|
|
|
119
135
|
],
|
|
120
136
|
"docs": "Requests authorization to all the required permissions for the plugin, if they have not already been granted.",
|
|
121
137
|
"complexTypes": [
|
|
122
|
-
"
|
|
138
|
+
"PluginPermissionsMap"
|
|
123
139
|
],
|
|
124
140
|
"slug": "requestallpermissions"
|
|
125
141
|
},
|
|
@@ -132,6 +148,10 @@
|
|
|
132
148
|
{
|
|
133
149
|
"name": "method"
|
|
134
150
|
},
|
|
151
|
+
{
|
|
152
|
+
"name": "platform",
|
|
153
|
+
"text": "iOS, Android"
|
|
154
|
+
},
|
|
135
155
|
{
|
|
136
156
|
"name": "returns",
|
|
137
157
|
"text": ";{ eventCreated: boolean }>} – A promise that resolves with the result of the action."
|
|
@@ -161,6 +181,10 @@
|
|
|
161
181
|
"name": "method",
|
|
162
182
|
"text": "selectCalendarsWithPrompt"
|
|
163
183
|
},
|
|
184
|
+
{
|
|
185
|
+
"name": "platform",
|
|
186
|
+
"text": "iOS"
|
|
187
|
+
},
|
|
164
188
|
{
|
|
165
189
|
"name": "param",
|
|
166
190
|
"text": "options - Options for customizing the display and selection styles of the calendar chooser."
|
|
@@ -174,7 +198,7 @@
|
|
|
174
198
|
},
|
|
175
199
|
{
|
|
176
200
|
"name": "example",
|
|
177
|
-
"text": "if (capacitor.getPlatform() === 'ios') {\n const
|
|
201
|
+
"text": "if (capacitor.getPlatform() === 'ios') {\n const { result } = await selectCalendarsWithPrompt();\n console.log(result); // [{ id: '1', title: 'Work Calendar' }]\n}"
|
|
178
202
|
}
|
|
179
203
|
],
|
|
180
204
|
"docs": "Presents a prompt to the user to select calendars. This method is available only on iOS.",
|
|
@@ -198,13 +222,17 @@
|
|
|
198
222
|
"name": "method",
|
|
199
223
|
"text": "listCalendars"
|
|
200
224
|
},
|
|
225
|
+
{
|
|
226
|
+
"name": "platform",
|
|
227
|
+
"text": "iOS, Android"
|
|
228
|
+
},
|
|
201
229
|
{
|
|
202
230
|
"name": "returns",
|
|
203
231
|
"text": "A promise that resolves with an array of calendars available on the device.\nEach calendar object in the array contains an ID and a title."
|
|
204
232
|
},
|
|
205
233
|
{
|
|
206
234
|
"name": "example",
|
|
207
|
-
"text": "const
|
|
235
|
+
"text": "const { result } = await listCalendars();\nconsole.log(result); // [{ id: '1', title: 'Work Calendar' }, { id: '2', title: 'Personal Calendar' }]"
|
|
208
236
|
}
|
|
209
237
|
],
|
|
210
238
|
"docs": "Retrieves a list of calendars available on the device.",
|
|
@@ -219,20 +247,21 @@
|
|
|
219
247
|
"parameters": [],
|
|
220
248
|
"returns": "Promise<{ result: Calendar; }>",
|
|
221
249
|
"tags": [
|
|
222
|
-
{
|
|
223
|
-
"name": "async"
|
|
224
|
-
},
|
|
225
250
|
{
|
|
226
251
|
"name": "method",
|
|
227
252
|
"text": "getDefaultCalendar"
|
|
228
253
|
},
|
|
254
|
+
{
|
|
255
|
+
"name": "platform",
|
|
256
|
+
"text": "iOS, Android"
|
|
257
|
+
},
|
|
229
258
|
{
|
|
230
259
|
"name": "returns",
|
|
231
260
|
"text": "A promise that resolves with the default calendar set on the device.\nThe returned calendar object contains an ID and a title."
|
|
232
261
|
},
|
|
233
262
|
{
|
|
234
263
|
"name": "example",
|
|
235
|
-
"text": "const
|
|
264
|
+
"text": "const { result } = await getDefaultCalendar();\nconsole.log(result); // { id: '1', title: 'Default Calendar' }"
|
|
236
265
|
}
|
|
237
266
|
],
|
|
238
267
|
"docs": "Retrieves the default calendar set on the device.",
|
|
@@ -240,41 +269,157 @@
|
|
|
240
269
|
"Calendar"
|
|
241
270
|
],
|
|
242
271
|
"slug": "getdefaultcalendar"
|
|
272
|
+
},
|
|
273
|
+
{
|
|
274
|
+
"name": "createEvent",
|
|
275
|
+
"signature": "(options: { title: string; calendarId?: string; location?: string; startDate?: Date; endDate?: Date; isAllDay?: boolean; }) => Promise<{ eventCreated: boolean; }>",
|
|
276
|
+
"parameters": [
|
|
277
|
+
{
|
|
278
|
+
"name": "options",
|
|
279
|
+
"docs": "- Options for creating the event.",
|
|
280
|
+
"type": "{ title: string; calendarId?: string | undefined; location?: string | undefined; startDate?: Date | undefined; endDate?: Date | undefined; isAllDay?: boolean | undefined; }"
|
|
281
|
+
}
|
|
282
|
+
],
|
|
283
|
+
"returns": "Promise<{ eventCreated: boolean; }>",
|
|
284
|
+
"tags": [
|
|
285
|
+
{
|
|
286
|
+
"name": "method",
|
|
287
|
+
"text": "createEvent"
|
|
288
|
+
},
|
|
289
|
+
{
|
|
290
|
+
"name": "platform",
|
|
291
|
+
"text": "iOS, Android"
|
|
292
|
+
},
|
|
293
|
+
{
|
|
294
|
+
"name": "param",
|
|
295
|
+
"text": "options - Options for creating the event."
|
|
296
|
+
},
|
|
297
|
+
{
|
|
298
|
+
"name": "returns",
|
|
299
|
+
"text": "A Promise that resolves with an object indicating whether the event was created successfully.\nThe resolved object has a property 'eventCreated' which is a boolean value representing whether the event was created."
|
|
300
|
+
},
|
|
301
|
+
{
|
|
302
|
+
"name": "example",
|
|
303
|
+
"text": "const now = Date.now();\nconst eventOptions = {\n title: 'Team Meeting',\n location: 'Conference Room A',\n startDate: new Date(now),\n endDate: new Date(now + 2 * 60 * 60 * 1000),\n isAllDay: false\n};\nconst { eventCreated } = await createEvent(eventOptions);\nconsole.log(eventCreated); // true"
|
|
304
|
+
}
|
|
305
|
+
],
|
|
306
|
+
"docs": "Creates an event with the provided options.",
|
|
307
|
+
"complexTypes": [
|
|
308
|
+
"Date"
|
|
309
|
+
],
|
|
310
|
+
"slug": "createevent"
|
|
311
|
+
},
|
|
312
|
+
{
|
|
313
|
+
"name": "getDefaultRemindersList",
|
|
314
|
+
"signature": "() => Promise<{ result: RemindersList; }>",
|
|
315
|
+
"parameters": [],
|
|
316
|
+
"returns": "Promise<{ result: RemindersList; }>",
|
|
317
|
+
"tags": [
|
|
318
|
+
{
|
|
319
|
+
"name": "method",
|
|
320
|
+
"text": "getDefaultRemindersList"
|
|
321
|
+
},
|
|
322
|
+
{
|
|
323
|
+
"name": "platform",
|
|
324
|
+
"text": "iOS"
|
|
325
|
+
},
|
|
326
|
+
{
|
|
327
|
+
"name": "returns",
|
|
328
|
+
"text": "A promise that resolves with the default reminder list set on the device.\nThe returned reminders list object contains an ID and a title."
|
|
329
|
+
},
|
|
330
|
+
{
|
|
331
|
+
"name": "example",
|
|
332
|
+
"text": "const { result } = await getDefaultRemindersList();\nconsole.log(result); // { id: '1', title: 'Default Reminders List' }"
|
|
333
|
+
}
|
|
334
|
+
],
|
|
335
|
+
"docs": "Retrieves the default reminders list set on the device.",
|
|
336
|
+
"complexTypes": [
|
|
337
|
+
"RemindersList"
|
|
338
|
+
],
|
|
339
|
+
"slug": "getdefaultreminderslist"
|
|
340
|
+
},
|
|
341
|
+
{
|
|
342
|
+
"name": "getRemindersLists",
|
|
343
|
+
"signature": "() => Promise<{ result: RemindersList[]; }>",
|
|
344
|
+
"parameters": [],
|
|
345
|
+
"returns": "Promise<{ result: RemindersList[]; }>",
|
|
346
|
+
"tags": [
|
|
347
|
+
{
|
|
348
|
+
"name": "async"
|
|
349
|
+
},
|
|
350
|
+
{
|
|
351
|
+
"name": "method",
|
|
352
|
+
"text": "getRemindersLists"
|
|
353
|
+
},
|
|
354
|
+
{
|
|
355
|
+
"name": "platform",
|
|
356
|
+
"text": "iOS"
|
|
357
|
+
},
|
|
358
|
+
{
|
|
359
|
+
"name": "returns",
|
|
360
|
+
"text": "A promise that resolves with an array of reminders lists available on the device.\nEach reminders list object in the array contains an ID and a title."
|
|
361
|
+
},
|
|
362
|
+
{
|
|
363
|
+
"name": "example",
|
|
364
|
+
"text": "const { result } = await getRemindersLists();\nconsole.log(result); // [{ id: '1', title: 'Groceries' }, { id: '2', title: 'Subscriptions' }]"
|
|
365
|
+
}
|
|
366
|
+
],
|
|
367
|
+
"docs": "Retrieves all available reminders lists on the device.",
|
|
368
|
+
"complexTypes": [
|
|
369
|
+
"RemindersList"
|
|
370
|
+
],
|
|
371
|
+
"slug": "getreminderslists"
|
|
372
|
+
},
|
|
373
|
+
{
|
|
374
|
+
"name": "createReminder",
|
|
375
|
+
"signature": "(options: { title: string; listId?: string; priority?: number; isCompleted?: boolean; startDate?: number; dueDate?: number; completionDate?: number; notes?: string; url?: string; location?: string; recurrence?: ReminderRecurrenceRule; }) => Promise<{ reminderCreated: boolean; }>",
|
|
376
|
+
"parameters": [
|
|
377
|
+
{
|
|
378
|
+
"name": "options",
|
|
379
|
+
"docs": "- Options for creating the reminder.",
|
|
380
|
+
"type": "{ title: string; listId?: string | undefined; priority?: number | undefined; isCompleted?: boolean | undefined; startDate?: number | undefined; dueDate?: number | undefined; completionDate?: number | undefined; notes?: string | undefined; url?: string | undefined; location?: string | undefined; recurrence?: ReminderRecurrenceRule | undefined; }"
|
|
381
|
+
}
|
|
382
|
+
],
|
|
383
|
+
"returns": "Promise<{ reminderCreated: boolean; }>",
|
|
384
|
+
"tags": [
|
|
385
|
+
{
|
|
386
|
+
"name": "method",
|
|
387
|
+
"text": "createReminder"
|
|
388
|
+
},
|
|
389
|
+
{
|
|
390
|
+
"name": "platform",
|
|
391
|
+
"text": "iOS"
|
|
392
|
+
},
|
|
393
|
+
{
|
|
394
|
+
"name": "param",
|
|
395
|
+
"text": "options - Options for creating the reminder."
|
|
396
|
+
},
|
|
397
|
+
{
|
|
398
|
+
"name": "returns",
|
|
399
|
+
"text": "A Promise that resolves with an object indicating whether the reminder was created successfully.\nThe resolved object has a property 'reminderCreated' which is a boolean value representing whether the reminder was created."
|
|
400
|
+
},
|
|
401
|
+
{
|
|
402
|
+
"name": "example",
|
|
403
|
+
"text": "const now = Date.now();\nconst rules: ReminderRecurrenceRule = {\n frequency: ReminderRecurrenceFrequency.MONTHLY,\n interval: 10,\n end: Date.now()\n}\nconst reminderOptions = {\n title: 'Buy cucumber',\n listId: 'ABC12',\n priority: 5,\n isCompleted: false,\n startDateComponents: now,\n notes: 'Also buy tomatoes',\n url: 'https://capacitor-calendar.pages.dev/',\n location: 'My Local Supermarket',\n recurrence: rules\n};\nconst { reminderCreated } = await createReminder(reminderOptions);\nconsole.log(reminderCreated); // true"
|
|
404
|
+
}
|
|
405
|
+
],
|
|
406
|
+
"docs": "Creates a reminder with the provided options.",
|
|
407
|
+
"complexTypes": [
|
|
408
|
+
"ReminderRecurrenceRule"
|
|
409
|
+
],
|
|
410
|
+
"slug": "createreminder"
|
|
243
411
|
}
|
|
244
412
|
],
|
|
245
413
|
"properties": []
|
|
246
414
|
},
|
|
247
415
|
"interfaces": [
|
|
248
416
|
{
|
|
249
|
-
"name": "
|
|
250
|
-
"slug": "
|
|
251
|
-
"docs": "
|
|
252
|
-
"tags": [
|
|
253
|
-
{
|
|
254
|
-
"name": "interface"
|
|
255
|
-
}
|
|
256
|
-
],
|
|
417
|
+
"name": "PluginPermissionsMap",
|
|
418
|
+
"slug": "pluginpermissionsmap",
|
|
419
|
+
"docs": "",
|
|
420
|
+
"tags": [],
|
|
257
421
|
"methods": [],
|
|
258
|
-
"properties": [
|
|
259
|
-
{
|
|
260
|
-
"name": "readCalendar",
|
|
261
|
-
"tags": [],
|
|
262
|
-
"docs": "",
|
|
263
|
-
"complexTypes": [
|
|
264
|
-
"PermissionState"
|
|
265
|
-
],
|
|
266
|
-
"type": "PermissionState"
|
|
267
|
-
},
|
|
268
|
-
{
|
|
269
|
-
"name": "writeCalendar",
|
|
270
|
-
"tags": [],
|
|
271
|
-
"docs": "",
|
|
272
|
-
"complexTypes": [
|
|
273
|
-
"PermissionState"
|
|
274
|
-
],
|
|
275
|
-
"type": "PermissionState"
|
|
276
|
-
}
|
|
277
|
-
]
|
|
422
|
+
"properties": []
|
|
278
423
|
},
|
|
279
424
|
{
|
|
280
425
|
"name": "Calendar",
|
|
@@ -285,6 +430,10 @@
|
|
|
285
430
|
"text": "Calendar",
|
|
286
431
|
"name": "interface"
|
|
287
432
|
},
|
|
433
|
+
{
|
|
434
|
+
"text": "iOS, Android",
|
|
435
|
+
"name": "platform"
|
|
436
|
+
},
|
|
288
437
|
{
|
|
289
438
|
"text": "{string} id - The unique identifier of the calendar.",
|
|
290
439
|
"name": "property"
|
|
@@ -311,9 +460,886 @@
|
|
|
311
460
|
"type": "string"
|
|
312
461
|
}
|
|
313
462
|
]
|
|
463
|
+
},
|
|
464
|
+
{
|
|
465
|
+
"name": "Date",
|
|
466
|
+
"slug": "date",
|
|
467
|
+
"docs": "Enables basic storage and retrieval of dates and times.",
|
|
468
|
+
"tags": [],
|
|
469
|
+
"methods": [
|
|
470
|
+
{
|
|
471
|
+
"name": "toString",
|
|
472
|
+
"signature": "() => string",
|
|
473
|
+
"parameters": [],
|
|
474
|
+
"returns": "string",
|
|
475
|
+
"tags": [],
|
|
476
|
+
"docs": "Returns a string representation of a date. The format of the string depends on the locale.",
|
|
477
|
+
"complexTypes": [],
|
|
478
|
+
"slug": "tostring"
|
|
479
|
+
},
|
|
480
|
+
{
|
|
481
|
+
"name": "toDateString",
|
|
482
|
+
"signature": "() => string",
|
|
483
|
+
"parameters": [],
|
|
484
|
+
"returns": "string",
|
|
485
|
+
"tags": [],
|
|
486
|
+
"docs": "Returns a date as a string value.",
|
|
487
|
+
"complexTypes": [],
|
|
488
|
+
"slug": "todatestring"
|
|
489
|
+
},
|
|
490
|
+
{
|
|
491
|
+
"name": "toTimeString",
|
|
492
|
+
"signature": "() => string",
|
|
493
|
+
"parameters": [],
|
|
494
|
+
"returns": "string",
|
|
495
|
+
"tags": [],
|
|
496
|
+
"docs": "Returns a time as a string value.",
|
|
497
|
+
"complexTypes": [],
|
|
498
|
+
"slug": "totimestring"
|
|
499
|
+
},
|
|
500
|
+
{
|
|
501
|
+
"name": "toLocaleString",
|
|
502
|
+
"signature": "() => string",
|
|
503
|
+
"parameters": [],
|
|
504
|
+
"returns": "string",
|
|
505
|
+
"tags": [],
|
|
506
|
+
"docs": "Returns a value as a string value appropriate to the host environment's current locale.",
|
|
507
|
+
"complexTypes": [],
|
|
508
|
+
"slug": "tolocalestring"
|
|
509
|
+
},
|
|
510
|
+
{
|
|
511
|
+
"name": "toLocaleDateString",
|
|
512
|
+
"signature": "() => string",
|
|
513
|
+
"parameters": [],
|
|
514
|
+
"returns": "string",
|
|
515
|
+
"tags": [],
|
|
516
|
+
"docs": "Returns a date as a string value appropriate to the host environment's current locale.",
|
|
517
|
+
"complexTypes": [],
|
|
518
|
+
"slug": "tolocaledatestring"
|
|
519
|
+
},
|
|
520
|
+
{
|
|
521
|
+
"name": "toLocaleTimeString",
|
|
522
|
+
"signature": "() => string",
|
|
523
|
+
"parameters": [],
|
|
524
|
+
"returns": "string",
|
|
525
|
+
"tags": [],
|
|
526
|
+
"docs": "Returns a time as a string value appropriate to the host environment's current locale.",
|
|
527
|
+
"complexTypes": [],
|
|
528
|
+
"slug": "tolocaletimestring"
|
|
529
|
+
},
|
|
530
|
+
{
|
|
531
|
+
"name": "valueOf",
|
|
532
|
+
"signature": "() => number",
|
|
533
|
+
"parameters": [],
|
|
534
|
+
"returns": "number",
|
|
535
|
+
"tags": [],
|
|
536
|
+
"docs": "Returns the stored time value in milliseconds since midnight, January 1, 1970 UTC.",
|
|
537
|
+
"complexTypes": [],
|
|
538
|
+
"slug": "valueof"
|
|
539
|
+
},
|
|
540
|
+
{
|
|
541
|
+
"name": "getTime",
|
|
542
|
+
"signature": "() => number",
|
|
543
|
+
"parameters": [],
|
|
544
|
+
"returns": "number",
|
|
545
|
+
"tags": [],
|
|
546
|
+
"docs": "Gets the time value in milliseconds.",
|
|
547
|
+
"complexTypes": [],
|
|
548
|
+
"slug": "gettime"
|
|
549
|
+
},
|
|
550
|
+
{
|
|
551
|
+
"name": "getFullYear",
|
|
552
|
+
"signature": "() => number",
|
|
553
|
+
"parameters": [],
|
|
554
|
+
"returns": "number",
|
|
555
|
+
"tags": [],
|
|
556
|
+
"docs": "Gets the year, using local time.",
|
|
557
|
+
"complexTypes": [],
|
|
558
|
+
"slug": "getfullyear"
|
|
559
|
+
},
|
|
560
|
+
{
|
|
561
|
+
"name": "getUTCFullYear",
|
|
562
|
+
"signature": "() => number",
|
|
563
|
+
"parameters": [],
|
|
564
|
+
"returns": "number",
|
|
565
|
+
"tags": [],
|
|
566
|
+
"docs": "Gets the year using Universal Coordinated Time (UTC).",
|
|
567
|
+
"complexTypes": [],
|
|
568
|
+
"slug": "getutcfullyear"
|
|
569
|
+
},
|
|
570
|
+
{
|
|
571
|
+
"name": "getMonth",
|
|
572
|
+
"signature": "() => number",
|
|
573
|
+
"parameters": [],
|
|
574
|
+
"returns": "number",
|
|
575
|
+
"tags": [],
|
|
576
|
+
"docs": "Gets the month, using local time.",
|
|
577
|
+
"complexTypes": [],
|
|
578
|
+
"slug": "getmonth"
|
|
579
|
+
},
|
|
580
|
+
{
|
|
581
|
+
"name": "getUTCMonth",
|
|
582
|
+
"signature": "() => number",
|
|
583
|
+
"parameters": [],
|
|
584
|
+
"returns": "number",
|
|
585
|
+
"tags": [],
|
|
586
|
+
"docs": "Gets the month of a Date object using Universal Coordinated Time (UTC).",
|
|
587
|
+
"complexTypes": [],
|
|
588
|
+
"slug": "getutcmonth"
|
|
589
|
+
},
|
|
590
|
+
{
|
|
591
|
+
"name": "getDate",
|
|
592
|
+
"signature": "() => number",
|
|
593
|
+
"parameters": [],
|
|
594
|
+
"returns": "number",
|
|
595
|
+
"tags": [],
|
|
596
|
+
"docs": "Gets the day-of-the-month, using local time.",
|
|
597
|
+
"complexTypes": [],
|
|
598
|
+
"slug": "getdate"
|
|
599
|
+
},
|
|
600
|
+
{
|
|
601
|
+
"name": "getUTCDate",
|
|
602
|
+
"signature": "() => number",
|
|
603
|
+
"parameters": [],
|
|
604
|
+
"returns": "number",
|
|
605
|
+
"tags": [],
|
|
606
|
+
"docs": "Gets the day-of-the-month, using Universal Coordinated Time (UTC).",
|
|
607
|
+
"complexTypes": [],
|
|
608
|
+
"slug": "getutcdate"
|
|
609
|
+
},
|
|
610
|
+
{
|
|
611
|
+
"name": "getDay",
|
|
612
|
+
"signature": "() => number",
|
|
613
|
+
"parameters": [],
|
|
614
|
+
"returns": "number",
|
|
615
|
+
"tags": [],
|
|
616
|
+
"docs": "Gets the day of the week, using local time.",
|
|
617
|
+
"complexTypes": [],
|
|
618
|
+
"slug": "getday"
|
|
619
|
+
},
|
|
620
|
+
{
|
|
621
|
+
"name": "getUTCDay",
|
|
622
|
+
"signature": "() => number",
|
|
623
|
+
"parameters": [],
|
|
624
|
+
"returns": "number",
|
|
625
|
+
"tags": [],
|
|
626
|
+
"docs": "Gets the day of the week using Universal Coordinated Time (UTC).",
|
|
627
|
+
"complexTypes": [],
|
|
628
|
+
"slug": "getutcday"
|
|
629
|
+
},
|
|
630
|
+
{
|
|
631
|
+
"name": "getHours",
|
|
632
|
+
"signature": "() => number",
|
|
633
|
+
"parameters": [],
|
|
634
|
+
"returns": "number",
|
|
635
|
+
"tags": [],
|
|
636
|
+
"docs": "Gets the hours in a date, using local time.",
|
|
637
|
+
"complexTypes": [],
|
|
638
|
+
"slug": "gethours"
|
|
639
|
+
},
|
|
640
|
+
{
|
|
641
|
+
"name": "getUTCHours",
|
|
642
|
+
"signature": "() => number",
|
|
643
|
+
"parameters": [],
|
|
644
|
+
"returns": "number",
|
|
645
|
+
"tags": [],
|
|
646
|
+
"docs": "Gets the hours value in a Date object using Universal Coordinated Time (UTC).",
|
|
647
|
+
"complexTypes": [],
|
|
648
|
+
"slug": "getutchours"
|
|
649
|
+
},
|
|
650
|
+
{
|
|
651
|
+
"name": "getMinutes",
|
|
652
|
+
"signature": "() => number",
|
|
653
|
+
"parameters": [],
|
|
654
|
+
"returns": "number",
|
|
655
|
+
"tags": [],
|
|
656
|
+
"docs": "Gets the minutes of a Date object, using local time.",
|
|
657
|
+
"complexTypes": [],
|
|
658
|
+
"slug": "getminutes"
|
|
659
|
+
},
|
|
660
|
+
{
|
|
661
|
+
"name": "getUTCMinutes",
|
|
662
|
+
"signature": "() => number",
|
|
663
|
+
"parameters": [],
|
|
664
|
+
"returns": "number",
|
|
665
|
+
"tags": [],
|
|
666
|
+
"docs": "Gets the minutes of a Date object using Universal Coordinated Time (UTC).",
|
|
667
|
+
"complexTypes": [],
|
|
668
|
+
"slug": "getutcminutes"
|
|
669
|
+
},
|
|
670
|
+
{
|
|
671
|
+
"name": "getSeconds",
|
|
672
|
+
"signature": "() => number",
|
|
673
|
+
"parameters": [],
|
|
674
|
+
"returns": "number",
|
|
675
|
+
"tags": [],
|
|
676
|
+
"docs": "Gets the seconds of a Date object, using local time.",
|
|
677
|
+
"complexTypes": [],
|
|
678
|
+
"slug": "getseconds"
|
|
679
|
+
},
|
|
680
|
+
{
|
|
681
|
+
"name": "getUTCSeconds",
|
|
682
|
+
"signature": "() => number",
|
|
683
|
+
"parameters": [],
|
|
684
|
+
"returns": "number",
|
|
685
|
+
"tags": [],
|
|
686
|
+
"docs": "Gets the seconds of a Date object using Universal Coordinated Time (UTC).",
|
|
687
|
+
"complexTypes": [],
|
|
688
|
+
"slug": "getutcseconds"
|
|
689
|
+
},
|
|
690
|
+
{
|
|
691
|
+
"name": "getMilliseconds",
|
|
692
|
+
"signature": "() => number",
|
|
693
|
+
"parameters": [],
|
|
694
|
+
"returns": "number",
|
|
695
|
+
"tags": [],
|
|
696
|
+
"docs": "Gets the milliseconds of a Date, using local time.",
|
|
697
|
+
"complexTypes": [],
|
|
698
|
+
"slug": "getmilliseconds"
|
|
699
|
+
},
|
|
700
|
+
{
|
|
701
|
+
"name": "getUTCMilliseconds",
|
|
702
|
+
"signature": "() => number",
|
|
703
|
+
"parameters": [],
|
|
704
|
+
"returns": "number",
|
|
705
|
+
"tags": [],
|
|
706
|
+
"docs": "Gets the milliseconds of a Date object using Universal Coordinated Time (UTC).",
|
|
707
|
+
"complexTypes": [],
|
|
708
|
+
"slug": "getutcmilliseconds"
|
|
709
|
+
},
|
|
710
|
+
{
|
|
711
|
+
"name": "getTimezoneOffset",
|
|
712
|
+
"signature": "() => number",
|
|
713
|
+
"parameters": [],
|
|
714
|
+
"returns": "number",
|
|
715
|
+
"tags": [],
|
|
716
|
+
"docs": "Gets the difference in minutes between the time on the local computer and Universal Coordinated Time (UTC).",
|
|
717
|
+
"complexTypes": [],
|
|
718
|
+
"slug": "gettimezoneoffset"
|
|
719
|
+
},
|
|
720
|
+
{
|
|
721
|
+
"name": "setTime",
|
|
722
|
+
"signature": "(time: number) => number",
|
|
723
|
+
"parameters": [
|
|
724
|
+
{
|
|
725
|
+
"name": "time",
|
|
726
|
+
"docs": "A numeric value representing the number of elapsed milliseconds since midnight, January 1, 1970 GMT.",
|
|
727
|
+
"type": "number"
|
|
728
|
+
}
|
|
729
|
+
],
|
|
730
|
+
"returns": "number",
|
|
731
|
+
"tags": [
|
|
732
|
+
{
|
|
733
|
+
"name": "param",
|
|
734
|
+
"text": "time A numeric value representing the number of elapsed milliseconds since midnight, January 1, 1970 GMT."
|
|
735
|
+
}
|
|
736
|
+
],
|
|
737
|
+
"docs": "Sets the date and time value in the Date object.",
|
|
738
|
+
"complexTypes": [],
|
|
739
|
+
"slug": "settime"
|
|
740
|
+
},
|
|
741
|
+
{
|
|
742
|
+
"name": "setMilliseconds",
|
|
743
|
+
"signature": "(ms: number) => number",
|
|
744
|
+
"parameters": [
|
|
745
|
+
{
|
|
746
|
+
"name": "ms",
|
|
747
|
+
"docs": "A numeric value equal to the millisecond value.",
|
|
748
|
+
"type": "number"
|
|
749
|
+
}
|
|
750
|
+
],
|
|
751
|
+
"returns": "number",
|
|
752
|
+
"tags": [
|
|
753
|
+
{
|
|
754
|
+
"name": "param",
|
|
755
|
+
"text": "ms A numeric value equal to the millisecond value."
|
|
756
|
+
}
|
|
757
|
+
],
|
|
758
|
+
"docs": "Sets the milliseconds value in the Date object using local time.",
|
|
759
|
+
"complexTypes": [],
|
|
760
|
+
"slug": "setmilliseconds"
|
|
761
|
+
},
|
|
762
|
+
{
|
|
763
|
+
"name": "setUTCMilliseconds",
|
|
764
|
+
"signature": "(ms: number) => number",
|
|
765
|
+
"parameters": [
|
|
766
|
+
{
|
|
767
|
+
"name": "ms",
|
|
768
|
+
"docs": "A numeric value equal to the millisecond value.",
|
|
769
|
+
"type": "number"
|
|
770
|
+
}
|
|
771
|
+
],
|
|
772
|
+
"returns": "number",
|
|
773
|
+
"tags": [
|
|
774
|
+
{
|
|
775
|
+
"name": "param",
|
|
776
|
+
"text": "ms A numeric value equal to the millisecond value."
|
|
777
|
+
}
|
|
778
|
+
],
|
|
779
|
+
"docs": "Sets the milliseconds value in the Date object using Universal Coordinated Time (UTC).",
|
|
780
|
+
"complexTypes": [],
|
|
781
|
+
"slug": "setutcmilliseconds"
|
|
782
|
+
},
|
|
783
|
+
{
|
|
784
|
+
"name": "setSeconds",
|
|
785
|
+
"signature": "(sec: number, ms?: number | undefined) => number",
|
|
786
|
+
"parameters": [
|
|
787
|
+
{
|
|
788
|
+
"name": "sec",
|
|
789
|
+
"docs": "A numeric value equal to the seconds value.",
|
|
790
|
+
"type": "number"
|
|
791
|
+
},
|
|
792
|
+
{
|
|
793
|
+
"name": "ms",
|
|
794
|
+
"docs": "A numeric value equal to the milliseconds value.",
|
|
795
|
+
"type": "number | undefined"
|
|
796
|
+
}
|
|
797
|
+
],
|
|
798
|
+
"returns": "number",
|
|
799
|
+
"tags": [
|
|
800
|
+
{
|
|
801
|
+
"name": "param",
|
|
802
|
+
"text": "sec A numeric value equal to the seconds value."
|
|
803
|
+
},
|
|
804
|
+
{
|
|
805
|
+
"name": "param",
|
|
806
|
+
"text": "ms A numeric value equal to the milliseconds value."
|
|
807
|
+
}
|
|
808
|
+
],
|
|
809
|
+
"docs": "Sets the seconds value in the Date object using local time.",
|
|
810
|
+
"complexTypes": [],
|
|
811
|
+
"slug": "setseconds"
|
|
812
|
+
},
|
|
813
|
+
{
|
|
814
|
+
"name": "setUTCSeconds",
|
|
815
|
+
"signature": "(sec: number, ms?: number | undefined) => number",
|
|
816
|
+
"parameters": [
|
|
817
|
+
{
|
|
818
|
+
"name": "sec",
|
|
819
|
+
"docs": "A numeric value equal to the seconds value.",
|
|
820
|
+
"type": "number"
|
|
821
|
+
},
|
|
822
|
+
{
|
|
823
|
+
"name": "ms",
|
|
824
|
+
"docs": "A numeric value equal to the milliseconds value.",
|
|
825
|
+
"type": "number | undefined"
|
|
826
|
+
}
|
|
827
|
+
],
|
|
828
|
+
"returns": "number",
|
|
829
|
+
"tags": [
|
|
830
|
+
{
|
|
831
|
+
"name": "param",
|
|
832
|
+
"text": "sec A numeric value equal to the seconds value."
|
|
833
|
+
},
|
|
834
|
+
{
|
|
835
|
+
"name": "param",
|
|
836
|
+
"text": "ms A numeric value equal to the milliseconds value."
|
|
837
|
+
}
|
|
838
|
+
],
|
|
839
|
+
"docs": "Sets the seconds value in the Date object using Universal Coordinated Time (UTC).",
|
|
840
|
+
"complexTypes": [],
|
|
841
|
+
"slug": "setutcseconds"
|
|
842
|
+
},
|
|
843
|
+
{
|
|
844
|
+
"name": "setMinutes",
|
|
845
|
+
"signature": "(min: number, sec?: number | undefined, ms?: number | undefined) => number",
|
|
846
|
+
"parameters": [
|
|
847
|
+
{
|
|
848
|
+
"name": "min",
|
|
849
|
+
"docs": "A numeric value equal to the minutes value.",
|
|
850
|
+
"type": "number"
|
|
851
|
+
},
|
|
852
|
+
{
|
|
853
|
+
"name": "sec",
|
|
854
|
+
"docs": "A numeric value equal to the seconds value.",
|
|
855
|
+
"type": "number | undefined"
|
|
856
|
+
},
|
|
857
|
+
{
|
|
858
|
+
"name": "ms",
|
|
859
|
+
"docs": "A numeric value equal to the milliseconds value.",
|
|
860
|
+
"type": "number | undefined"
|
|
861
|
+
}
|
|
862
|
+
],
|
|
863
|
+
"returns": "number",
|
|
864
|
+
"tags": [
|
|
865
|
+
{
|
|
866
|
+
"name": "param",
|
|
867
|
+
"text": "min A numeric value equal to the minutes value."
|
|
868
|
+
},
|
|
869
|
+
{
|
|
870
|
+
"name": "param",
|
|
871
|
+
"text": "sec A numeric value equal to the seconds value."
|
|
872
|
+
},
|
|
873
|
+
{
|
|
874
|
+
"name": "param",
|
|
875
|
+
"text": "ms A numeric value equal to the milliseconds value."
|
|
876
|
+
}
|
|
877
|
+
],
|
|
878
|
+
"docs": "Sets the minutes value in the Date object using local time.",
|
|
879
|
+
"complexTypes": [],
|
|
880
|
+
"slug": "setminutes"
|
|
881
|
+
},
|
|
882
|
+
{
|
|
883
|
+
"name": "setUTCMinutes",
|
|
884
|
+
"signature": "(min: number, sec?: number | undefined, ms?: number | undefined) => number",
|
|
885
|
+
"parameters": [
|
|
886
|
+
{
|
|
887
|
+
"name": "min",
|
|
888
|
+
"docs": "A numeric value equal to the minutes value.",
|
|
889
|
+
"type": "number"
|
|
890
|
+
},
|
|
891
|
+
{
|
|
892
|
+
"name": "sec",
|
|
893
|
+
"docs": "A numeric value equal to the seconds value.",
|
|
894
|
+
"type": "number | undefined"
|
|
895
|
+
},
|
|
896
|
+
{
|
|
897
|
+
"name": "ms",
|
|
898
|
+
"docs": "A numeric value equal to the milliseconds value.",
|
|
899
|
+
"type": "number | undefined"
|
|
900
|
+
}
|
|
901
|
+
],
|
|
902
|
+
"returns": "number",
|
|
903
|
+
"tags": [
|
|
904
|
+
{
|
|
905
|
+
"name": "param",
|
|
906
|
+
"text": "min A numeric value equal to the minutes value."
|
|
907
|
+
},
|
|
908
|
+
{
|
|
909
|
+
"name": "param",
|
|
910
|
+
"text": "sec A numeric value equal to the seconds value."
|
|
911
|
+
},
|
|
912
|
+
{
|
|
913
|
+
"name": "param",
|
|
914
|
+
"text": "ms A numeric value equal to the milliseconds value."
|
|
915
|
+
}
|
|
916
|
+
],
|
|
917
|
+
"docs": "Sets the minutes value in the Date object using Universal Coordinated Time (UTC).",
|
|
918
|
+
"complexTypes": [],
|
|
919
|
+
"slug": "setutcminutes"
|
|
920
|
+
},
|
|
921
|
+
{
|
|
922
|
+
"name": "setHours",
|
|
923
|
+
"signature": "(hours: number, min?: number | undefined, sec?: number | undefined, ms?: number | undefined) => number",
|
|
924
|
+
"parameters": [
|
|
925
|
+
{
|
|
926
|
+
"name": "hours",
|
|
927
|
+
"docs": "A numeric value equal to the hours value.",
|
|
928
|
+
"type": "number"
|
|
929
|
+
},
|
|
930
|
+
{
|
|
931
|
+
"name": "min",
|
|
932
|
+
"docs": "A numeric value equal to the minutes value.",
|
|
933
|
+
"type": "number | undefined"
|
|
934
|
+
},
|
|
935
|
+
{
|
|
936
|
+
"name": "sec",
|
|
937
|
+
"docs": "A numeric value equal to the seconds value.",
|
|
938
|
+
"type": "number | undefined"
|
|
939
|
+
},
|
|
940
|
+
{
|
|
941
|
+
"name": "ms",
|
|
942
|
+
"docs": "A numeric value equal to the milliseconds value.",
|
|
943
|
+
"type": "number | undefined"
|
|
944
|
+
}
|
|
945
|
+
],
|
|
946
|
+
"returns": "number",
|
|
947
|
+
"tags": [
|
|
948
|
+
{
|
|
949
|
+
"name": "param",
|
|
950
|
+
"text": "hours A numeric value equal to the hours value."
|
|
951
|
+
},
|
|
952
|
+
{
|
|
953
|
+
"name": "param",
|
|
954
|
+
"text": "min A numeric value equal to the minutes value."
|
|
955
|
+
},
|
|
956
|
+
{
|
|
957
|
+
"name": "param",
|
|
958
|
+
"text": "sec A numeric value equal to the seconds value."
|
|
959
|
+
},
|
|
960
|
+
{
|
|
961
|
+
"name": "param",
|
|
962
|
+
"text": "ms A numeric value equal to the milliseconds value."
|
|
963
|
+
}
|
|
964
|
+
],
|
|
965
|
+
"docs": "Sets the hour value in the Date object using local time.",
|
|
966
|
+
"complexTypes": [],
|
|
967
|
+
"slug": "sethours"
|
|
968
|
+
},
|
|
969
|
+
{
|
|
970
|
+
"name": "setUTCHours",
|
|
971
|
+
"signature": "(hours: number, min?: number | undefined, sec?: number | undefined, ms?: number | undefined) => number",
|
|
972
|
+
"parameters": [
|
|
973
|
+
{
|
|
974
|
+
"name": "hours",
|
|
975
|
+
"docs": "A numeric value equal to the hours value.",
|
|
976
|
+
"type": "number"
|
|
977
|
+
},
|
|
978
|
+
{
|
|
979
|
+
"name": "min",
|
|
980
|
+
"docs": "A numeric value equal to the minutes value.",
|
|
981
|
+
"type": "number | undefined"
|
|
982
|
+
},
|
|
983
|
+
{
|
|
984
|
+
"name": "sec",
|
|
985
|
+
"docs": "A numeric value equal to the seconds value.",
|
|
986
|
+
"type": "number | undefined"
|
|
987
|
+
},
|
|
988
|
+
{
|
|
989
|
+
"name": "ms",
|
|
990
|
+
"docs": "A numeric value equal to the milliseconds value.",
|
|
991
|
+
"type": "number | undefined"
|
|
992
|
+
}
|
|
993
|
+
],
|
|
994
|
+
"returns": "number",
|
|
995
|
+
"tags": [
|
|
996
|
+
{
|
|
997
|
+
"name": "param",
|
|
998
|
+
"text": "hours A numeric value equal to the hours value."
|
|
999
|
+
},
|
|
1000
|
+
{
|
|
1001
|
+
"name": "param",
|
|
1002
|
+
"text": "min A numeric value equal to the minutes value."
|
|
1003
|
+
},
|
|
1004
|
+
{
|
|
1005
|
+
"name": "param",
|
|
1006
|
+
"text": "sec A numeric value equal to the seconds value."
|
|
1007
|
+
},
|
|
1008
|
+
{
|
|
1009
|
+
"name": "param",
|
|
1010
|
+
"text": "ms A numeric value equal to the milliseconds value."
|
|
1011
|
+
}
|
|
1012
|
+
],
|
|
1013
|
+
"docs": "Sets the hours value in the Date object using Universal Coordinated Time (UTC).",
|
|
1014
|
+
"complexTypes": [],
|
|
1015
|
+
"slug": "setutchours"
|
|
1016
|
+
},
|
|
1017
|
+
{
|
|
1018
|
+
"name": "setDate",
|
|
1019
|
+
"signature": "(date: number) => number",
|
|
1020
|
+
"parameters": [
|
|
1021
|
+
{
|
|
1022
|
+
"name": "date",
|
|
1023
|
+
"docs": "A numeric value equal to the day of the month.",
|
|
1024
|
+
"type": "number"
|
|
1025
|
+
}
|
|
1026
|
+
],
|
|
1027
|
+
"returns": "number",
|
|
1028
|
+
"tags": [
|
|
1029
|
+
{
|
|
1030
|
+
"name": "param",
|
|
1031
|
+
"text": "date A numeric value equal to the day of the month."
|
|
1032
|
+
}
|
|
1033
|
+
],
|
|
1034
|
+
"docs": "Sets the numeric day-of-the-month value of the Date object using local time.",
|
|
1035
|
+
"complexTypes": [],
|
|
1036
|
+
"slug": "setdate"
|
|
1037
|
+
},
|
|
1038
|
+
{
|
|
1039
|
+
"name": "setUTCDate",
|
|
1040
|
+
"signature": "(date: number) => number",
|
|
1041
|
+
"parameters": [
|
|
1042
|
+
{
|
|
1043
|
+
"name": "date",
|
|
1044
|
+
"docs": "A numeric value equal to the day of the month.",
|
|
1045
|
+
"type": "number"
|
|
1046
|
+
}
|
|
1047
|
+
],
|
|
1048
|
+
"returns": "number",
|
|
1049
|
+
"tags": [
|
|
1050
|
+
{
|
|
1051
|
+
"name": "param",
|
|
1052
|
+
"text": "date A numeric value equal to the day of the month."
|
|
1053
|
+
}
|
|
1054
|
+
],
|
|
1055
|
+
"docs": "Sets the numeric day of the month in the Date object using Universal Coordinated Time (UTC).",
|
|
1056
|
+
"complexTypes": [],
|
|
1057
|
+
"slug": "setutcdate"
|
|
1058
|
+
},
|
|
1059
|
+
{
|
|
1060
|
+
"name": "setMonth",
|
|
1061
|
+
"signature": "(month: number, date?: number | undefined) => number",
|
|
1062
|
+
"parameters": [
|
|
1063
|
+
{
|
|
1064
|
+
"name": "month",
|
|
1065
|
+
"docs": "A numeric value equal to the month. The value for January is 0, and other month values follow consecutively.",
|
|
1066
|
+
"type": "number"
|
|
1067
|
+
},
|
|
1068
|
+
{
|
|
1069
|
+
"name": "date",
|
|
1070
|
+
"docs": "A numeric value representing the day of the month. If this value is not supplied, the value from a call to the getDate method is used.",
|
|
1071
|
+
"type": "number | undefined"
|
|
1072
|
+
}
|
|
1073
|
+
],
|
|
1074
|
+
"returns": "number",
|
|
1075
|
+
"tags": [
|
|
1076
|
+
{
|
|
1077
|
+
"name": "param",
|
|
1078
|
+
"text": "month A numeric value equal to the month. The value for January is 0, and other month values follow consecutively."
|
|
1079
|
+
},
|
|
1080
|
+
{
|
|
1081
|
+
"name": "param",
|
|
1082
|
+
"text": "date A numeric value representing the day of the month. If this value is not supplied, the value from a call to the getDate method is used."
|
|
1083
|
+
}
|
|
1084
|
+
],
|
|
1085
|
+
"docs": "Sets the month value in the Date object using local time.",
|
|
1086
|
+
"complexTypes": [],
|
|
1087
|
+
"slug": "setmonth"
|
|
1088
|
+
},
|
|
1089
|
+
{
|
|
1090
|
+
"name": "setUTCMonth",
|
|
1091
|
+
"signature": "(month: number, date?: number | undefined) => number",
|
|
1092
|
+
"parameters": [
|
|
1093
|
+
{
|
|
1094
|
+
"name": "month",
|
|
1095
|
+
"docs": "A numeric value equal to the month. The value for January is 0, and other month values follow consecutively.",
|
|
1096
|
+
"type": "number"
|
|
1097
|
+
},
|
|
1098
|
+
{
|
|
1099
|
+
"name": "date",
|
|
1100
|
+
"docs": "A numeric value representing the day of the month. If it is not supplied, the value from a call to the getUTCDate method is used.",
|
|
1101
|
+
"type": "number | undefined"
|
|
1102
|
+
}
|
|
1103
|
+
],
|
|
1104
|
+
"returns": "number",
|
|
1105
|
+
"tags": [
|
|
1106
|
+
{
|
|
1107
|
+
"name": "param",
|
|
1108
|
+
"text": "month A numeric value equal to the month. The value for January is 0, and other month values follow consecutively."
|
|
1109
|
+
},
|
|
1110
|
+
{
|
|
1111
|
+
"name": "param",
|
|
1112
|
+
"text": "date A numeric value representing the day of the month. If it is not supplied, the value from a call to the getUTCDate method is used."
|
|
1113
|
+
}
|
|
1114
|
+
],
|
|
1115
|
+
"docs": "Sets the month value in the Date object using Universal Coordinated Time (UTC).",
|
|
1116
|
+
"complexTypes": [],
|
|
1117
|
+
"slug": "setutcmonth"
|
|
1118
|
+
},
|
|
1119
|
+
{
|
|
1120
|
+
"name": "setFullYear",
|
|
1121
|
+
"signature": "(year: number, month?: number | undefined, date?: number | undefined) => number",
|
|
1122
|
+
"parameters": [
|
|
1123
|
+
{
|
|
1124
|
+
"name": "year",
|
|
1125
|
+
"docs": "A numeric value for the year.",
|
|
1126
|
+
"type": "number"
|
|
1127
|
+
},
|
|
1128
|
+
{
|
|
1129
|
+
"name": "month",
|
|
1130
|
+
"docs": "A zero-based numeric value for the month (0 for January, 11 for December). Must be specified if numDate is specified.",
|
|
1131
|
+
"type": "number | undefined"
|
|
1132
|
+
},
|
|
1133
|
+
{
|
|
1134
|
+
"name": "date",
|
|
1135
|
+
"docs": "A numeric value equal for the day of the month.",
|
|
1136
|
+
"type": "number | undefined"
|
|
1137
|
+
}
|
|
1138
|
+
],
|
|
1139
|
+
"returns": "number",
|
|
1140
|
+
"tags": [
|
|
1141
|
+
{
|
|
1142
|
+
"name": "param",
|
|
1143
|
+
"text": "year A numeric value for the year."
|
|
1144
|
+
},
|
|
1145
|
+
{
|
|
1146
|
+
"name": "param",
|
|
1147
|
+
"text": "month A zero-based numeric value for the month (0 for January, 11 for December). Must be specified if numDate is specified."
|
|
1148
|
+
},
|
|
1149
|
+
{
|
|
1150
|
+
"name": "param",
|
|
1151
|
+
"text": "date A numeric value equal for the day of the month."
|
|
1152
|
+
}
|
|
1153
|
+
],
|
|
1154
|
+
"docs": "Sets the year of the Date object using local time.",
|
|
1155
|
+
"complexTypes": [],
|
|
1156
|
+
"slug": "setfullyear"
|
|
1157
|
+
},
|
|
1158
|
+
{
|
|
1159
|
+
"name": "setUTCFullYear",
|
|
1160
|
+
"signature": "(year: number, month?: number | undefined, date?: number | undefined) => number",
|
|
1161
|
+
"parameters": [
|
|
1162
|
+
{
|
|
1163
|
+
"name": "year",
|
|
1164
|
+
"docs": "A numeric value equal to the year.",
|
|
1165
|
+
"type": "number"
|
|
1166
|
+
},
|
|
1167
|
+
{
|
|
1168
|
+
"name": "month",
|
|
1169
|
+
"docs": "A numeric value equal to the month. The value for January is 0, and other month values follow consecutively. Must be supplied if numDate is supplied.",
|
|
1170
|
+
"type": "number | undefined"
|
|
1171
|
+
},
|
|
1172
|
+
{
|
|
1173
|
+
"name": "date",
|
|
1174
|
+
"docs": "A numeric value equal to the day of the month.",
|
|
1175
|
+
"type": "number | undefined"
|
|
1176
|
+
}
|
|
1177
|
+
],
|
|
1178
|
+
"returns": "number",
|
|
1179
|
+
"tags": [
|
|
1180
|
+
{
|
|
1181
|
+
"name": "param",
|
|
1182
|
+
"text": "year A numeric value equal to the year."
|
|
1183
|
+
},
|
|
1184
|
+
{
|
|
1185
|
+
"name": "param",
|
|
1186
|
+
"text": "month A numeric value equal to the month. The value for January is 0, and other month values follow consecutively. Must be supplied if numDate is supplied."
|
|
1187
|
+
},
|
|
1188
|
+
{
|
|
1189
|
+
"name": "param",
|
|
1190
|
+
"text": "date A numeric value equal to the day of the month."
|
|
1191
|
+
}
|
|
1192
|
+
],
|
|
1193
|
+
"docs": "Sets the year value in the Date object using Universal Coordinated Time (UTC).",
|
|
1194
|
+
"complexTypes": [],
|
|
1195
|
+
"slug": "setutcfullyear"
|
|
1196
|
+
},
|
|
1197
|
+
{
|
|
1198
|
+
"name": "toUTCString",
|
|
1199
|
+
"signature": "() => string",
|
|
1200
|
+
"parameters": [],
|
|
1201
|
+
"returns": "string",
|
|
1202
|
+
"tags": [],
|
|
1203
|
+
"docs": "Returns a date converted to a string using Universal Coordinated Time (UTC).",
|
|
1204
|
+
"complexTypes": [],
|
|
1205
|
+
"slug": "toutcstring"
|
|
1206
|
+
},
|
|
1207
|
+
{
|
|
1208
|
+
"name": "toISOString",
|
|
1209
|
+
"signature": "() => string",
|
|
1210
|
+
"parameters": [],
|
|
1211
|
+
"returns": "string",
|
|
1212
|
+
"tags": [],
|
|
1213
|
+
"docs": "Returns a date as a string value in ISO format.",
|
|
1214
|
+
"complexTypes": [],
|
|
1215
|
+
"slug": "toisostring"
|
|
1216
|
+
},
|
|
1217
|
+
{
|
|
1218
|
+
"name": "toJSON",
|
|
1219
|
+
"signature": "(key?: any) => string",
|
|
1220
|
+
"parameters": [
|
|
1221
|
+
{
|
|
1222
|
+
"name": "key",
|
|
1223
|
+
"docs": "",
|
|
1224
|
+
"type": "any"
|
|
1225
|
+
}
|
|
1226
|
+
],
|
|
1227
|
+
"returns": "string",
|
|
1228
|
+
"tags": [],
|
|
1229
|
+
"docs": "Used by the JSON.stringify method to enable the transformation of an object's data for JavaScript Object Notation (JSON) serialization.",
|
|
1230
|
+
"complexTypes": [],
|
|
1231
|
+
"slug": "tojson"
|
|
1232
|
+
}
|
|
1233
|
+
],
|
|
1234
|
+
"properties": []
|
|
1235
|
+
},
|
|
1236
|
+
{
|
|
1237
|
+
"name": "RemindersList",
|
|
1238
|
+
"slug": "reminderslist",
|
|
1239
|
+
"docs": "",
|
|
1240
|
+
"tags": [],
|
|
1241
|
+
"methods": [],
|
|
1242
|
+
"properties": []
|
|
1243
|
+
},
|
|
1244
|
+
{
|
|
1245
|
+
"name": "ReminderRecurrenceRule",
|
|
1246
|
+
"slug": "reminderrecurrencerule",
|
|
1247
|
+
"docs": "",
|
|
1248
|
+
"tags": [],
|
|
1249
|
+
"methods": [],
|
|
1250
|
+
"properties": [
|
|
1251
|
+
{
|
|
1252
|
+
"name": "frequency",
|
|
1253
|
+
"tags": [
|
|
1254
|
+
{
|
|
1255
|
+
"text": "// if frequency is set to weekly, the reminder will repeat on a weekly basis.\nconst rules: ReminderRecurrenceRule = {\n frequency: ReminderRecurrenceFrequency.WEEKLY,\n interval: 1,\n}",
|
|
1256
|
+
"name": "example"
|
|
1257
|
+
}
|
|
1258
|
+
],
|
|
1259
|
+
"docs": "How frequent should the reminder repeat.",
|
|
1260
|
+
"complexTypes": [
|
|
1261
|
+
"ReminderRecurrenceFrequency"
|
|
1262
|
+
],
|
|
1263
|
+
"type": "ReminderRecurrenceFrequency"
|
|
1264
|
+
},
|
|
1265
|
+
{
|
|
1266
|
+
"name": "interval",
|
|
1267
|
+
"tags": [
|
|
1268
|
+
{
|
|
1269
|
+
"text": "// if interval is set to 2 and frequency is set to daily, the reminder will repeat every 2 days.\nconst rules: ReminderRecurrenceRule = {\n frequency: ReminderRecurrenceFrequency.DAILY,\n interval: 2,\n}",
|
|
1270
|
+
"name": "example"
|
|
1271
|
+
}
|
|
1272
|
+
],
|
|
1273
|
+
"docs": "The interval should be a number greater than 0. For values lower than 1 the method will throw an error.",
|
|
1274
|
+
"complexTypes": [],
|
|
1275
|
+
"type": "number"
|
|
1276
|
+
},
|
|
1277
|
+
{
|
|
1278
|
+
"name": "end",
|
|
1279
|
+
"tags": [
|
|
1280
|
+
{
|
|
1281
|
+
"text": "const rules: ReminderRecurrenceRule = {\n frequency: ReminderRecurrenceFrequency.MONTHLY,\n interval: 10,\n end: Date.now()\n}",
|
|
1282
|
+
"name": "example"
|
|
1283
|
+
}
|
|
1284
|
+
],
|
|
1285
|
+
"docs": "When provided, the reminder will stop repeating at the given time.",
|
|
1286
|
+
"complexTypes": [],
|
|
1287
|
+
"type": "number | undefined"
|
|
1288
|
+
}
|
|
1289
|
+
]
|
|
314
1290
|
}
|
|
315
1291
|
],
|
|
316
1292
|
"enums": [
|
|
1293
|
+
{
|
|
1294
|
+
"name": "PluginPermission",
|
|
1295
|
+
"slug": "pluginpermission",
|
|
1296
|
+
"members": [
|
|
1297
|
+
{
|
|
1298
|
+
"name": "READ_CALENDAR",
|
|
1299
|
+
"value": "'readCalendar'",
|
|
1300
|
+
"tags": [
|
|
1301
|
+
{
|
|
1302
|
+
"text": "iOS, Android",
|
|
1303
|
+
"name": "platform"
|
|
1304
|
+
}
|
|
1305
|
+
],
|
|
1306
|
+
"docs": "Represents the permission state for reading calendar."
|
|
1307
|
+
},
|
|
1308
|
+
{
|
|
1309
|
+
"name": "WRITE_CALENDAR",
|
|
1310
|
+
"value": "'writeCalendar'",
|
|
1311
|
+
"tags": [
|
|
1312
|
+
{
|
|
1313
|
+
"text": "iOS, Android",
|
|
1314
|
+
"name": "platform"
|
|
1315
|
+
}
|
|
1316
|
+
],
|
|
1317
|
+
"docs": "Represents the permission state for writing calendar."
|
|
1318
|
+
},
|
|
1319
|
+
{
|
|
1320
|
+
"name": "READ_REMINDERS",
|
|
1321
|
+
"value": "'readReminders'",
|
|
1322
|
+
"tags": [
|
|
1323
|
+
{
|
|
1324
|
+
"text": "iOS",
|
|
1325
|
+
"name": "platform"
|
|
1326
|
+
}
|
|
1327
|
+
],
|
|
1328
|
+
"docs": "Represents the permission state for reading reminders."
|
|
1329
|
+
},
|
|
1330
|
+
{
|
|
1331
|
+
"name": "WRITE_REMINDERS",
|
|
1332
|
+
"value": "'writeReminders'",
|
|
1333
|
+
"tags": [
|
|
1334
|
+
{
|
|
1335
|
+
"text": "iOS",
|
|
1336
|
+
"name": "platform"
|
|
1337
|
+
}
|
|
1338
|
+
],
|
|
1339
|
+
"docs": "Represents the permission state for writing reminders."
|
|
1340
|
+
}
|
|
1341
|
+
]
|
|
1342
|
+
},
|
|
317
1343
|
{
|
|
318
1344
|
"name": "CalendarChooserDisplayStyle",
|
|
319
1345
|
"slug": "calendarchooserdisplaystyle",
|
|
@@ -345,6 +1371,32 @@
|
|
|
345
1371
|
"docs": "Allows multiple selections in the calendar chooser."
|
|
346
1372
|
}
|
|
347
1373
|
]
|
|
1374
|
+
},
|
|
1375
|
+
{
|
|
1376
|
+
"name": "ReminderRecurrenceFrequency",
|
|
1377
|
+
"slug": "reminderrecurrencefrequency",
|
|
1378
|
+
"members": [
|
|
1379
|
+
{
|
|
1380
|
+
"name": "DAILY",
|
|
1381
|
+
"tags": [],
|
|
1382
|
+
"docs": ""
|
|
1383
|
+
},
|
|
1384
|
+
{
|
|
1385
|
+
"name": "WEEKLY",
|
|
1386
|
+
"tags": [],
|
|
1387
|
+
"docs": ""
|
|
1388
|
+
},
|
|
1389
|
+
{
|
|
1390
|
+
"name": "MONTHLY",
|
|
1391
|
+
"tags": [],
|
|
1392
|
+
"docs": ""
|
|
1393
|
+
},
|
|
1394
|
+
{
|
|
1395
|
+
"name": "YEARLY",
|
|
1396
|
+
"tags": [],
|
|
1397
|
+
"docs": ""
|
|
1398
|
+
}
|
|
1399
|
+
]
|
|
348
1400
|
}
|
|
349
1401
|
],
|
|
350
1402
|
"typeAliases": [
|