@ebarooni/capacitor-calendar 7.0.0 → 7.2.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.
Files changed (254) hide show
  1. package/README.md +863 -315
  2. package/android/src/main/java/dev/barooni/capacitor/calendar/CapacitorCalendarPlugin.kt +283 -316
  3. package/android/src/main/java/dev/barooni/capacitor/calendar/PluginError.kt +49 -0
  4. package/android/src/main/java/dev/barooni/capacitor/calendar/implementation/CapacitorCalendar.kt +363 -0
  5. package/android/src/main/java/dev/barooni/capacitor/calendar/models/data/CalendarEvent.kt +25 -0
  6. package/android/src/main/java/dev/barooni/capacitor/calendar/models/data/CalendarInfo.kt +14 -0
  7. package/android/src/main/java/dev/barooni/capacitor/calendar/models/data/EventGuest.kt +9 -0
  8. package/android/src/main/java/dev/barooni/capacitor/calendar/models/enums/CalendarPermissionScope.kt +15 -0
  9. package/android/src/main/java/dev/barooni/capacitor/calendar/models/inputs/CheckPermissionInput.kt +20 -0
  10. package/android/src/main/java/dev/barooni/capacitor/calendar/models/inputs/CreateCalendarInput.kt +18 -0
  11. package/android/src/main/java/dev/barooni/capacitor/calendar/models/inputs/CreateEventInput.kt +27 -0
  12. package/android/src/main/java/dev/barooni/capacitor/calendar/models/inputs/CreateEventWithPromptInput.kt +36 -0
  13. package/android/src/main/java/dev/barooni/capacitor/calendar/models/inputs/DeleteCalendarInput.kt +10 -0
  14. package/android/src/main/java/dev/barooni/capacitor/calendar/models/inputs/DeleteEventInput.kt +10 -0
  15. package/android/src/main/java/dev/barooni/capacitor/calendar/models/inputs/DeleteEventWithPromptInput.kt +14 -0
  16. package/android/src/main/java/dev/barooni/capacitor/calendar/models/inputs/DeleteEventsByIdInput.kt +11 -0
  17. package/android/src/main/java/dev/barooni/capacitor/calendar/models/inputs/ListEventsInRangeInput.kt +14 -0
  18. package/android/src/main/java/dev/barooni/capacitor/calendar/models/inputs/ModifyCalendarInput.kt +13 -0
  19. package/android/src/main/java/dev/barooni/capacitor/calendar/models/inputs/ModifyEvent.kt +25 -0
  20. package/android/src/main/java/dev/barooni/capacitor/calendar/models/inputs/ModifyEventWithPromptInput.kt +37 -0
  21. package/android/src/main/java/dev/barooni/capacitor/calendar/models/inputs/OpenCalendarInput.kt +10 -0
  22. package/android/src/main/java/dev/barooni/capacitor/calendar/models/inputs/RequestAllPermissionsInput.kt +9 -0
  23. package/android/src/main/java/dev/barooni/capacitor/calendar/models/inputs/RequestPermissionInput.kt +40 -0
  24. package/android/src/main/java/dev/barooni/capacitor/calendar/models/results/CheckAllPermissionsResult.kt +17 -0
  25. package/android/src/main/java/dev/barooni/capacitor/calendar/models/results/CheckPermissionResult.kt +15 -0
  26. package/android/src/main/java/dev/barooni/capacitor/calendar/models/results/CreateCalendarResult.kt +21 -0
  27. package/android/src/main/java/dev/barooni/capacitor/calendar/models/results/CreateEventResult.kt +21 -0
  28. package/android/src/main/java/dev/barooni/capacitor/calendar/models/results/CreateEventWithPromptResult.kt +12 -0
  29. package/android/src/main/java/dev/barooni/capacitor/calendar/models/results/DeleteEventWithPromptResult.kt +14 -0
  30. package/android/src/main/java/dev/barooni/capacitor/calendar/models/results/DeleteEventsByIdResult.kt +27 -0
  31. package/android/src/main/java/dev/barooni/capacitor/calendar/models/results/GetDefaultCalendarResult.kt +34 -0
  32. package/android/src/main/java/dev/barooni/capacitor/calendar/models/results/ListCalendarsResult.kt +39 -0
  33. package/android/src/main/java/dev/barooni/capacitor/calendar/models/results/ListEventsInRangeResult.kt +58 -0
  34. package/android/src/main/java/dev/barooni/capacitor/calendar/models/results/ModifyEventWithPromptResult.kt +12 -0
  35. package/android/src/main/java/dev/barooni/capacitor/calendar/models/results/RequestAllPermissionsResult.kt +30 -0
  36. package/android/src/main/java/dev/barooni/capacitor/calendar/models/results/RequestPermissionResult.kt +42 -0
  37. package/android/src/main/java/dev/barooni/capacitor/calendar/models/templates/JSResult.kt +7 -0
  38. package/android/src/main/java/dev/barooni/capacitor/calendar/utils/ImplementationHelper.kt +387 -0
  39. package/dist/docs.json +3966 -1107
  40. package/dist/esm/definitions.d.ts +6 -759
  41. package/dist/esm/definitions.js.map +1 -1
  42. package/dist/esm/index.d.ts +42 -12
  43. package/dist/esm/index.js +11 -6
  44. package/dist/esm/index.js.map +1 -1
  45. package/dist/esm/schemas/enums/attendee-role.d.ts +50 -0
  46. package/dist/esm/schemas/enums/attendee-role.js +52 -0
  47. package/dist/esm/schemas/enums/attendee-role.js.map +1 -0
  48. package/dist/esm/schemas/enums/attendee-status.d.ts +55 -0
  49. package/dist/esm/schemas/enums/attendee-status.js +57 -0
  50. package/dist/esm/schemas/enums/attendee-status.js.map +1 -0
  51. package/dist/esm/schemas/enums/attendee-type.d.ts +45 -0
  52. package/dist/esm/schemas/enums/attendee-type.js +47 -0
  53. package/dist/esm/schemas/enums/attendee-type.js.map +1 -0
  54. package/dist/esm/schemas/enums/calendar-chooser-display-style.d.ts +3 -6
  55. package/dist/esm/schemas/enums/calendar-chooser-display-style.js +3 -6
  56. package/dist/esm/schemas/enums/calendar-chooser-display-style.js.map +1 -1
  57. package/dist/esm/schemas/enums/calendar-permission-scope.d.ts +60 -0
  58. package/dist/esm/schemas/enums/calendar-permission-scope.js +62 -0
  59. package/dist/esm/schemas/enums/calendar-permission-scope.js.map +1 -0
  60. package/dist/esm/schemas/enums/calendar-source-type.d.ts +7 -16
  61. package/dist/esm/schemas/enums/calendar-source-type.js +7 -16
  62. package/dist/esm/schemas/enums/calendar-source-type.js.map +1 -1
  63. package/dist/esm/schemas/enums/calendar-type.d.ts +6 -9
  64. package/dist/esm/schemas/enums/calendar-type.js +6 -9
  65. package/dist/esm/schemas/enums/calendar-type.js.map +1 -1
  66. package/dist/esm/schemas/enums/event-availability.d.ts +30 -0
  67. package/dist/esm/schemas/enums/event-availability.js +32 -0
  68. package/dist/esm/schemas/enums/event-availability.js.map +1 -0
  69. package/dist/esm/schemas/enums/event-span.d.ts +3 -6
  70. package/dist/esm/schemas/enums/event-span.js +3 -6
  71. package/dist/esm/schemas/enums/event-span.js.map +1 -1
  72. package/dist/esm/schemas/enums/event-status.d.ts +26 -0
  73. package/dist/esm/schemas/enums/event-status.js +28 -0
  74. package/dist/esm/schemas/enums/event-status.js.map +1 -0
  75. package/dist/esm/schemas/enums/recurrence-frequency.d.ts +21 -0
  76. package/dist/esm/schemas/enums/recurrence-frequency.js +23 -0
  77. package/dist/esm/schemas/enums/recurrence-frequency.js.map +1 -0
  78. package/dist/esm/schemas/enums/reminder-recurrence-frequency.d.ts +5 -8
  79. package/dist/esm/schemas/enums/reminder-recurrence-frequency.js +5 -8
  80. package/dist/esm/schemas/enums/reminder-recurrence-frequency.js.map +1 -1
  81. package/dist/esm/schemas/interfaces/calendar-event.d.ts +116 -48
  82. package/dist/esm/schemas/interfaces/calendar-event.js.map +1 -1
  83. package/dist/esm/schemas/interfaces/calendar-source.d.ts +10 -7
  84. package/dist/esm/schemas/interfaces/calendar-source.js.map +1 -1
  85. package/dist/esm/schemas/interfaces/calendar.d.ts +59 -25
  86. package/dist/esm/schemas/interfaces/calendar.js.map +1 -1
  87. package/dist/esm/schemas/interfaces/create-calendar-options.d.ts +38 -0
  88. package/dist/esm/schemas/interfaces/create-calendar-options.js +2 -0
  89. package/dist/esm/schemas/interfaces/create-calendar-options.js.map +1 -0
  90. package/dist/esm/schemas/interfaces/create-event-options.d.ts +96 -0
  91. package/dist/esm/schemas/interfaces/create-event-options.js +2 -0
  92. package/dist/esm/schemas/interfaces/create-event-options.js.map +1 -0
  93. package/dist/esm/schemas/interfaces/create-event-with-prompt-options.d.ts +70 -0
  94. package/dist/esm/schemas/interfaces/create-event-with-prompt-options.js +2 -0
  95. package/dist/esm/schemas/interfaces/create-event-with-prompt-options.js.map +1 -0
  96. package/dist/esm/schemas/interfaces/create-reminder-options.d.ts +54 -0
  97. package/dist/esm/schemas/interfaces/create-reminder-options.js +2 -0
  98. package/dist/esm/schemas/interfaces/create-reminder-options.js.map +1 -0
  99. package/dist/esm/schemas/interfaces/delete-calendar-options.d.ts +9 -0
  100. package/dist/esm/schemas/interfaces/delete-calendar-options.js +2 -0
  101. package/dist/esm/schemas/interfaces/delete-calendar-options.js.map +1 -0
  102. package/dist/esm/schemas/interfaces/delete-event-options.d.ts +18 -0
  103. package/dist/esm/schemas/interfaces/delete-event-options.js +2 -0
  104. package/dist/esm/schemas/interfaces/delete-event-options.js.map +1 -0
  105. package/dist/esm/schemas/interfaces/delete-event-with-prompt-options.d.ts +48 -0
  106. package/dist/esm/schemas/interfaces/delete-event-with-prompt-options.js +2 -0
  107. package/dist/esm/schemas/interfaces/delete-event-with-prompt-options.js.map +1 -0
  108. package/dist/esm/schemas/interfaces/delete-events-by-id-options.d.ts +18 -0
  109. package/dist/esm/schemas/interfaces/delete-events-by-id-options.js +2 -0
  110. package/dist/esm/schemas/interfaces/delete-events-by-id-options.js.map +1 -0
  111. package/dist/esm/schemas/interfaces/delete-reminder-options.d.ts +9 -0
  112. package/dist/esm/schemas/interfaces/delete-reminder-options.js +2 -0
  113. package/dist/esm/schemas/interfaces/delete-reminder-options.js.map +1 -0
  114. package/dist/esm/schemas/interfaces/delete-reminder-with-prompt-options.d.ts +35 -0
  115. package/dist/esm/schemas/interfaces/delete-reminder-with-prompt-options.js +2 -0
  116. package/dist/esm/schemas/interfaces/delete-reminder-with-prompt-options.js.map +1 -0
  117. package/dist/esm/schemas/interfaces/delete-reminders-by-id-options.d.ts +9 -0
  118. package/dist/esm/schemas/interfaces/delete-reminders-by-id-options.js +2 -0
  119. package/dist/esm/schemas/interfaces/delete-reminders-by-id-options.js.map +1 -0
  120. package/dist/esm/schemas/interfaces/event-guest.d.ts +13 -0
  121. package/dist/esm/schemas/interfaces/event-guest.js +2 -0
  122. package/dist/esm/schemas/interfaces/event-guest.js.map +1 -0
  123. package/dist/esm/schemas/interfaces/get-reminder-by-id-options.d.ts +6 -0
  124. package/dist/esm/schemas/interfaces/get-reminder-by-id-options.js +2 -0
  125. package/dist/esm/schemas/interfaces/get-reminder-by-id-options.js.map +1 -0
  126. package/dist/esm/schemas/interfaces/get-reminders-from-lists-options.d.ts +9 -0
  127. package/dist/esm/schemas/interfaces/get-reminders-from-lists-options.js +2 -0
  128. package/dist/esm/schemas/interfaces/get-reminders-from-lists-options.js.map +1 -0
  129. package/dist/esm/schemas/interfaces/list-events-in-range-options.d.ts +17 -0
  130. package/dist/esm/schemas/interfaces/list-events-in-range-options.js +2 -0
  131. package/dist/esm/schemas/interfaces/list-events-in-range-options.js.map +1 -0
  132. package/dist/esm/schemas/interfaces/modify-calendar-options.d.ts +21 -0
  133. package/dist/esm/schemas/interfaces/modify-calendar-options.js +2 -0
  134. package/dist/esm/schemas/interfaces/modify-calendar-options.js.map +1 -0
  135. package/dist/esm/schemas/interfaces/modify-event-options.d.ts +103 -0
  136. package/dist/esm/schemas/interfaces/modify-event-options.js +2 -0
  137. package/dist/esm/schemas/interfaces/modify-event-options.js.map +1 -0
  138. package/dist/esm/schemas/interfaces/modify-event-with-prompt-options.d.ts +13 -0
  139. package/dist/esm/schemas/interfaces/modify-event-with-prompt-options.js +2 -0
  140. package/dist/esm/schemas/interfaces/modify-event-with-prompt-options.js.map +1 -0
  141. package/dist/esm/schemas/interfaces/modify-reminder-options.d.ts +58 -0
  142. package/dist/esm/schemas/interfaces/modify-reminder-options.js +2 -0
  143. package/dist/esm/schemas/interfaces/modify-reminder-options.js.map +1 -0
  144. package/dist/esm/schemas/interfaces/open-calendar-options.d.ts +10 -0
  145. package/dist/esm/schemas/interfaces/open-calendar-options.js +2 -0
  146. package/dist/esm/schemas/interfaces/open-calendar-options.js.map +1 -0
  147. package/dist/esm/schemas/interfaces/recurrence-rule.d.ts +22 -0
  148. package/dist/esm/schemas/interfaces/recurrence-rule.js +2 -0
  149. package/dist/esm/schemas/interfaces/recurrence-rule.js.map +1 -0
  150. package/dist/esm/schemas/interfaces/reminder-recurrence-rule.d.ts +6 -24
  151. package/dist/esm/schemas/interfaces/reminder-recurrence-rule.js.map +1 -1
  152. package/dist/esm/schemas/interfaces/reminder.d.ts +29 -38
  153. package/dist/esm/schemas/interfaces/reminder.js.map +1 -1
  154. package/dist/esm/schemas/interfaces/reminders-list.d.ts +3 -0
  155. package/dist/esm/schemas/interfaces/reminders-list.js.map +1 -1
  156. package/dist/esm/schemas/interfaces/select-calendars-with-prompt-options.d.ts +18 -0
  157. package/dist/esm/schemas/interfaces/select-calendars-with-prompt-options.js +2 -0
  158. package/dist/esm/schemas/interfaces/select-calendars-with-prompt-options.js.map +1 -0
  159. package/dist/esm/schemas/types/event-edit-action.d.ts +4 -0
  160. package/dist/esm/schemas/types/event-edit-action.js +2 -0
  161. package/dist/esm/schemas/types/event-edit-action.js.map +1 -0
  162. package/dist/esm/sub-definitions/calendar-access.d.ts +114 -0
  163. package/dist/esm/sub-definitions/calendar-access.js +2 -0
  164. package/dist/esm/sub-definitions/calendar-access.js.map +1 -0
  165. package/dist/esm/sub-definitions/calendar-operations.d.ts +85 -0
  166. package/dist/esm/sub-definitions/calendar-operations.js +2 -0
  167. package/dist/esm/sub-definitions/calendar-operations.js.map +1 -0
  168. package/dist/esm/sub-definitions/event-operations.d.ts +111 -0
  169. package/dist/esm/sub-definitions/event-operations.js +2 -0
  170. package/dist/esm/sub-definitions/event-operations.js.map +1 -0
  171. package/dist/esm/sub-definitions/reminders-access.d.ts +22 -0
  172. package/dist/esm/sub-definitions/reminders-access.js +2 -0
  173. package/dist/esm/sub-definitions/reminders-access.js.map +1 -0
  174. package/dist/esm/sub-definitions/reminders-operations.d.ts +120 -0
  175. package/dist/esm/sub-definitions/reminders-operations.js +2 -0
  176. package/dist/esm/sub-definitions/reminders-operations.js.map +1 -0
  177. package/dist/esm/web.d.ts +91 -150
  178. package/dist/esm/web.js +73 -49
  179. package/dist/esm/web.js.map +1 -1
  180. package/dist/plugin.cjs.js +398 -172
  181. package/dist/plugin.cjs.js.map +1 -1
  182. package/dist/plugin.js +398 -172
  183. package/dist/plugin.js.map +1 -1
  184. package/ios/Sources/CapacitorCalendarPlugin/CapacitorCalendarPlugin.swift +225 -528
  185. package/ios/Sources/CapacitorCalendarPlugin/Implementation/CapacitorCalendar.swift +596 -0
  186. package/ios/Sources/CapacitorCalendarPlugin/{PermissionState.swift → Models/Enums/CAPPermissionState.swift} +1 -3
  187. package/ios/Sources/CapacitorCalendarPlugin/Models/Enums/CalendarPermissionScope.swift +6 -0
  188. package/ios/Sources/CapacitorCalendarPlugin/Models/Enums/EventEditAction.swift +20 -0
  189. package/ios/Sources/CapacitorCalendarPlugin/Models/Inputs/CheckPermissionInput.swift +19 -0
  190. package/ios/Sources/CapacitorCalendarPlugin/Models/Inputs/CreateCalendarInput.swift +32 -0
  191. package/ios/Sources/CapacitorCalendarPlugin/Models/Inputs/CreateEventInput.swift +61 -0
  192. package/ios/Sources/CapacitorCalendarPlugin/Models/Inputs/CreateEventWithPromptInput.swift +89 -0
  193. package/ios/Sources/CapacitorCalendarPlugin/Models/Inputs/CreateReminderInput.swift +116 -0
  194. package/ios/Sources/CapacitorCalendarPlugin/Models/Inputs/DeleteCalendarInput.swift +16 -0
  195. package/ios/Sources/CapacitorCalendarPlugin/Models/Inputs/DeleteEventInput.swift +27 -0
  196. package/ios/Sources/CapacitorCalendarPlugin/Models/Inputs/DeleteEventWithPromptInput.swift +57 -0
  197. package/ios/Sources/CapacitorCalendarPlugin/Models/Inputs/DeleteEventsByIdInput.swift +27 -0
  198. package/ios/Sources/CapacitorCalendarPlugin/Models/Inputs/DeleteReminderInput.swift +16 -0
  199. package/ios/Sources/CapacitorCalendarPlugin/Models/Inputs/DeleteReminderWithPromptInput.swift +46 -0
  200. package/ios/Sources/CapacitorCalendarPlugin/Models/Inputs/DeleteRemindersByIdInput.swift +16 -0
  201. package/ios/Sources/CapacitorCalendarPlugin/Models/Inputs/GetReminderByIdInput.swift +16 -0
  202. package/ios/Sources/CapacitorCalendarPlugin/Models/Inputs/GetRemindersFromListsInput.swift +24 -0
  203. package/ios/Sources/CapacitorCalendarPlugin/Models/Inputs/ListEventsInRangeInput.swift +25 -0
  204. package/ios/Sources/CapacitorCalendarPlugin/Models/Inputs/ModifyCalendarInput.swift +32 -0
  205. package/ios/Sources/CapacitorCalendarPlugin/Models/Inputs/ModifyEventInput.swift +117 -0
  206. package/ios/Sources/CapacitorCalendarPlugin/Models/Inputs/ModifyEventWithPromptInput.swift +83 -0
  207. package/ios/Sources/CapacitorCalendarPlugin/Models/Inputs/ModifyReminderInput.swift +118 -0
  208. package/ios/Sources/CapacitorCalendarPlugin/Models/Inputs/OpenCalendarInput.swift +17 -0
  209. package/ios/Sources/CapacitorCalendarPlugin/Models/Inputs/RequestPermissionInput.swift +19 -0
  210. package/ios/Sources/CapacitorCalendarPlugin/Models/Inputs/SelectCalendarsWithPromptInput.swift +32 -0
  211. package/ios/Sources/CapacitorCalendarPlugin/Models/Results/CheckAllPermissionsResult.swift +15 -0
  212. package/ios/Sources/CapacitorCalendarPlugin/Models/Results/CheckPermissionResult.swift +16 -0
  213. package/ios/Sources/CapacitorCalendarPlugin/Models/Results/CreateCalendarResult.swift +18 -0
  214. package/ios/Sources/CapacitorCalendarPlugin/Models/Results/CreateEventResult.swift +18 -0
  215. package/ios/Sources/CapacitorCalendarPlugin/Models/Results/CreateEventWithPromptResult.swift +15 -0
  216. package/ios/Sources/CapacitorCalendarPlugin/Models/Results/CreateReminderResult.swift +16 -0
  217. package/ios/Sources/CapacitorCalendarPlugin/Models/Results/DeleteEventWithPromptResult.swift +15 -0
  218. package/ios/Sources/CapacitorCalendarPlugin/Models/Results/DeleteEventsByIdResult.swift +23 -0
  219. package/ios/Sources/CapacitorCalendarPlugin/Models/Results/DeleteRemindersByIdResult.swift +23 -0
  220. package/ios/Sources/CapacitorCalendarPlugin/Models/Results/FetchAllCalendarSourcesResult.swift +16 -0
  221. package/ios/Sources/CapacitorCalendarPlugin/Models/Results/GetDefaultCalendarResult.swift +16 -0
  222. package/ios/Sources/CapacitorCalendarPlugin/Models/Results/GetReminderByIdResult.swift +20 -0
  223. package/ios/Sources/CapacitorCalendarPlugin/Models/Results/GetRemindersFromListsResult.swift +16 -0
  224. package/ios/Sources/CapacitorCalendarPlugin/Models/Results/ListCalendarsResult.swift +16 -0
  225. package/ios/Sources/CapacitorCalendarPlugin/Models/Results/ListEventsInRangeResult.swift +16 -0
  226. package/ios/Sources/CapacitorCalendarPlugin/Models/Results/ModifyEventWithPromptResult.swift +16 -0
  227. package/ios/Sources/CapacitorCalendarPlugin/Models/Results/RequestAllPermissionsResult.swift +20 -0
  228. package/ios/Sources/CapacitorCalendarPlugin/Models/Results/RequestPermissionResult.swift +15 -0
  229. package/ios/Sources/CapacitorCalendarPlugin/Models/Results/SelectCalendarsWithPromptResult.swift +16 -0
  230. package/ios/Sources/CapacitorCalendarPlugin/Models/Templates/JSResult.swift +5 -0
  231. package/ios/Sources/CapacitorCalendarPlugin/PluginConfig.swift +44 -0
  232. package/ios/Sources/CapacitorCalendarPlugin/PluginError.swift +87 -0
  233. package/ios/Sources/CapacitorCalendarPlugin/Utils/ImplementationHelper.swift +361 -0
  234. package/ios/Sources/CapacitorCalendarPlugin/Utils/UIColorFromHexExtension.swift +32 -0
  235. package/package.json +58 -59
  236. package/android/src/main/java/dev/barooni/capacitor/calendar/CapacitorCalendar.kt +0 -358
  237. package/dist/esm/schemas/enums/calendar-chooser-selection-style.d.ts +0 -16
  238. package/dist/esm/schemas/enums/calendar-chooser-selection-style.js +0 -18
  239. package/dist/esm/schemas/enums/calendar-chooser-selection-style.js.map +0 -1
  240. package/dist/esm/schemas/enums/plugin-permission.d.ts +0 -58
  241. package/dist/esm/schemas/enums/plugin-permission.js +0 -60
  242. package/dist/esm/schemas/enums/plugin-permission.js.map +0 -1
  243. package/dist/esm/schemas/interfaces/plugin-permissions-map.d.ts +0 -2
  244. package/dist/esm/schemas/interfaces/plugin-permissions-map.js +0 -2
  245. package/dist/esm/schemas/interfaces/plugin-permissions-map.js.map +0 -1
  246. package/ios/Sources/CapacitorCalendarPlugin/CapacitorCalendar.swift +0 -635
  247. package/ios/Sources/CapacitorCalendarPlugin/CapacitorCalendarPluginError.swift +0 -14
  248. package/ios/Sources/CapacitorCalendarPlugin/CapacitorReminders.swift +0 -448
  249. package/ios/Sources/CapacitorCalendarPlugin/EventCreationParameters.swift +0 -14
  250. package/ios/Sources/CapacitorCalendarPlugin/EventDeleteResults.swift +0 -6
  251. package/ios/Sources/CapacitorCalendarPlugin/RecurrenceParameters.swift +0 -7
  252. package/ios/Sources/CapacitorCalendarPlugin/ReminderCreationParameters.swift +0 -15
  253. package/ios/Sources/CapacitorCalendarPlugin/UIColorExtensions.swift +0 -20
  254. /package/{LICENSE.txt → LICENSE} +0 -0
package/README.md CHANGED
@@ -1,18 +1,21 @@
1
1
  <p align="center">
2
2
  <img src="assets/images/text-logo.png" alt="capacitor-calendar-logo" height="136"/>
3
-
4
3
  <br>
5
- <em>
6
- A capacitor plugin for managing calendar events on iOS and Android, with reminder support on iOS.
7
- </em>
4
+ <em>A capacitor plugin for managing calendar events on iOS and Android, with reminders support on iOS.</em>
8
5
  </p>
9
6
 
10
7
  <p align="center">
11
- <img src="https://img.shields.io/maintenance/yes/2024?style=flat-square" />
12
- <a href="https://www.npmjs.com/package/@ebarooni/capacitor-calendar"><img src="https://img.shields.io/npm/l/@ebarooni/capacitor-calendar?style=flat-square" /></a>
13
- <br>
14
- <a href="https://www.npmjs.com/package/@ebarooni/capacitor-calendar"><img src="https://img.shields.io/npm/dw/@ebarooni/capacitor-calendar?style=flat-square" /></a>
15
- <a href="https://www.npmjs.com/package/@ebarooni/capacitor-calendar"><img src="https://img.shields.io/npm/v/@ebarooni/capacitor-calendar?style=flat-square" /></a>
8
+ <img src="https://img.shields.io/maintenance/yes/2025?style=flat-square" />
9
+ <a href="https://www.npmjs.com/package/@ebarooni/capacitor-calendar">
10
+ <img src="https://img.shields.io/npm/l/@ebarooni/capacitor-calendar?style=flat-square" />
11
+ </a>
12
+ <br>
13
+ <a href="https://www.npmjs.com/package/@ebarooni/capacitor-calendar">
14
+ <img src="https://img.shields.io/npm/dw/@ebarooni/capacitor-calendar?style=flat-square" />
15
+ </a>
16
+ <a href="https://www.npmjs.com/package/@ebarooni/capacitor-calendar">
17
+ <img src="https://img.shields.io/npm/v/@ebarooni/capacitor-calendar?style=flat-square" />
18
+ </a>
16
19
  </p>
17
20
 
18
21
  ## Table of Contents
@@ -20,9 +23,9 @@
20
23
  - [Installation](#installation)
21
24
  - [Demo](#demo)
22
25
  - [Setup](#setup)
23
- - [Documentation](#-documentation)
24
- - [API](#-api)
26
+ - [Documentation](#documentation)
25
27
  - [Changelog](#changelog)
28
+ - [API](#api)
26
29
  - [Contributing](#contributing)
27
30
  - [License](#license)
28
31
 
@@ -35,23 +38,32 @@ npx cap sync
35
38
 
36
39
  ## Demo
37
40
 
38
- | iOS 17 | Android 14 |
41
+ | iOS 18 | Android 15 |
39
42
  | :-----------------------------: | :---------------------------------: |
40
43
  | ![](./assets/demo/ios-demo.gif) | ![](./assets/demo/android-demo.gif) |
41
44
 
42
45
  ## Setup
43
46
 
44
- - [iOS](./docs/ios.md)
45
- - [Android](./docs/android.md)
47
+ This plugin requires additional platform-specific configuration. Follow the official guides:
48
+
49
+ - **iOS:** [Migrating to the Latest Calendar Access Levels](https://developer.apple.com/documentation/technotes/tn3152-migrating-to-the-latest-calendar-access-levels)
50
+ - **Android:** [Calendar Provider User Permissions](https://developer.android.com/identity/providers/calendar-provider#manifest)
46
51
 
47
- ## 📚 Documentation
52
+ ## Documentation
48
53
 
49
- For comprehensive explanations, usage examples, and additional information, please refer to the following resources:
54
+ For comprehensive usage examples, detailed explanations, and API references, check out:
55
+
56
+ - **[Online documentation](https://ebarooni.github.io/capacitor-calendar/)**
57
+ - **[Type definitions & examples](src/definitions.ts)**
58
+
59
+ ## Changelog
50
60
 
51
- - **[Online Documentation](https://ebarooni.github.io/capacitor-calendar/)**
52
- - **[Type Definitions and Examples](src/definitions.ts)**
61
+ See [CHANGELOG.md](CHANGELOG.md) for the latest updates and release history.
53
62
 
54
- ## 📋 API
63
+ > [!NOTE]
64
+ > Version 7.1.0 introduces breaking changes.
65
+
66
+ ## API
55
67
 
56
68
  <docgen-index>
57
69
 
@@ -59,31 +71,38 @@ For comprehensive explanations, usage examples, and additional information, plea
59
71
  * [`checkAllPermissions()`](#checkallpermissions)
60
72
  * [`requestPermission(...)`](#requestpermission)
61
73
  * [`requestAllPermissions()`](#requestallpermissions)
62
- * [`createEventWithPrompt(...)`](#createeventwithprompt)
63
- * [`selectCalendarsWithPrompt(...)`](#selectcalendarswithprompt)
64
- * [`listCalendars()`](#listcalendars)
65
- * [`getDefaultCalendar()`](#getdefaultcalendar)
66
- * [`createEvent(...)`](#createevent)
67
- * [`getDefaultRemindersList()`](#getdefaultreminderslist)
68
- * [`getRemindersLists()`](#getreminderslists)
69
- * [`createReminder(...)`](#createreminder)
70
- * [`openCalendar(...)`](#opencalendar)
71
- * [`openReminders()`](#openreminders)
72
- * [`listEventsInRange(...)`](#listeventsinrange)
73
- * [`deleteEventsById(...)`](#deleteeventsbyid)
74
- * [`createCalendar(...)`](#createcalendar)
75
- * [`deleteCalendar(...)`](#deletecalendar)
76
- * [`getRemindersFromLists(...)`](#getremindersfromlists)
77
- * [`deleteRemindersById(...)`](#deleteremindersbyid)
78
74
  * [`requestWriteOnlyCalendarAccess()`](#requestwriteonlycalendaraccess)
79
75
  * [`requestReadOnlyCalendarAccess()`](#requestreadonlycalendaraccess)
80
76
  * [`requestFullCalendarAccess()`](#requestfullcalendaraccess)
81
77
  * [`requestFullRemindersAccess()`](#requestfullremindersaccess)
78
+ * [`createEventWithPrompt(...)`](#createeventwithprompt)
82
79
  * [`modifyEventWithPrompt(...)`](#modifyeventwithprompt)
80
+ * [`createEvent(...)`](#createevent)
83
81
  * [`modifyEvent(...)`](#modifyevent)
82
+ * [`deleteEventsById(...)`](#deleteeventsbyid)
83
+ * [`deleteEvent(...)`](#deleteevent)
84
+ * [`deleteEventWithPrompt(...)`](#deleteeventwithprompt)
85
+ * [`listEventsInRange(...)`](#listeventsinrange)
86
+ * [`commit()`](#commit)
87
+ * [`selectCalendarsWithPrompt(...)`](#selectcalendarswithprompt)
84
88
  * [`fetchAllCalendarSources()`](#fetchallcalendarsources)
89
+ * [`listCalendars()`](#listcalendars)
90
+ * [`getDefaultCalendar()`](#getdefaultcalendar)
91
+ * [`openCalendar(...)`](#opencalendar)
92
+ * [`createCalendar(...)`](#createcalendar)
93
+ * [`deleteCalendar(...)`](#deletecalendar)
94
+ * [`modifyCalendar(...)`](#modifycalendar)
85
95
  * [`fetchAllRemindersSources()`](#fetchallreminderssources)
96
+ * [`openReminders()`](#openreminders)
97
+ * [`getDefaultRemindersList()`](#getdefaultreminderslist)
98
+ * [`getRemindersLists()`](#getreminderslists)
99
+ * [`createReminder(...)`](#createreminder)
100
+ * [`deleteRemindersById(...)`](#deleteremindersbyid)
101
+ * [`deleteReminder(...)`](#deletereminder)
86
102
  * [`modifyReminder(...)`](#modifyreminder)
103
+ * [`getReminderById(...)`](#getreminderbyid)
104
+ * [`getRemindersFromLists(...)`](#getremindersfromlists)
105
+ * [`deleteReminderWithPrompt(...)`](#deletereminderwithprompt)
87
106
  * [Interfaces](#interfaces)
88
107
  * [Type Aliases](#type-aliases)
89
108
  * [Enums](#enums)
@@ -96,226 +115,289 @@ For comprehensive explanations, usage examples, and additional information, plea
96
115
  ### checkPermission(...)
97
116
 
98
117
  ```typescript
99
- checkPermission(options: { alias: PluginPermission; }) => Promise<{ result: PermissionState; }>
118
+ checkPermission(options: { scope: CalendarPermissionScope; }) => Promise<{ result: PermissionState; }>
100
119
  ```
101
120
 
102
- Checks the current authorization status of a specific permission.
121
+ Retrieves the current permission state for a given scope.
103
122
 
104
- | Param | Type | Description |
105
- | ------------- | ------------------------------------------------------------------------- | ----------------------------------------- |
106
- | **`options`** | <code>{ alias: <a href="#pluginpermission">PluginPermission</a>; }</code> | An object with the name of the permission |
123
+ | Param | Type |
124
+ | ------------- | --------------------------------------------------------------------------------------- |
125
+ | **`options`** | <code>{ scope: <a href="#calendarpermissionscope">CalendarPermissionScope</a>; }</code> |
107
126
 
108
127
  **Returns:** <code>Promise&lt;{ result: <a href="#permissionstate">PermissionState</a>; }&gt;</code>
109
128
 
110
129
  **Since:** 0.1.0
111
130
 
131
+ **Platform:** Android, iOS
132
+
112
133
  --------------------
113
134
 
114
135
 
115
136
  ### checkAllPermissions()
116
137
 
117
138
  ```typescript
118
- checkAllPermissions() => Promise<PluginPermissionsMap>
139
+ checkAllPermissions() => Promise<{ result: CheckAllPermissionsResult; }>
119
140
  ```
120
141
 
121
- Checks the current authorization status of all the required permissions for the plugin.
142
+ Retrieves the current state of all permissions.
122
143
 
123
- **Returns:** <code>Promise&lt;<a href="#pluginpermissionsmap">PluginPermissionsMap</a>&gt;</code>
144
+ **Returns:** <code>Promise&lt;{ result: <a href="#checkallpermissionsresult">CheckAllPermissionsResult</a>; }&gt;</code>
124
145
 
125
146
  **Since:** 0.1.0
126
147
 
148
+ **Platform:** Android, iOS
149
+
127
150
  --------------------
128
151
 
129
152
 
130
153
  ### requestPermission(...)
131
154
 
132
155
  ```typescript
133
- requestPermission(options: { alias: PluginPermission; }) => Promise<{ result: PermissionState; }>
156
+ requestPermission(options: { scope: CalendarPermissionScope; }) => Promise<{ result: PermissionState; }>
134
157
  ```
135
158
 
136
- Requests authorization to a specific permission, if not already granted.
137
- If the permission is already granted, it will directly return the status.
159
+ Requests permission for a given scope.
138
160
 
139
- | Param | Type | Description |
140
- | ------------- | ------------------------------------------------------------------------- | ----------------------------------------- |
141
- | **`options`** | <code>{ alias: <a href="#pluginpermission">PluginPermission</a>; }</code> | An object with the name of the permission |
161
+ | Param | Type |
162
+ | ------------- | --------------------------------------------------------------------------------------- |
163
+ | **`options`** | <code>{ scope: <a href="#calendarpermissionscope">CalendarPermissionScope</a>; }</code> |
142
164
 
143
165
  **Returns:** <code>Promise&lt;{ result: <a href="#permissionstate">PermissionState</a>; }&gt;</code>
144
166
 
145
167
  **Since:** 0.1.0
146
168
 
169
+ **Platform:** Android, iOS
170
+
147
171
  --------------------
148
172
 
149
173
 
150
174
  ### requestAllPermissions()
151
175
 
152
176
  ```typescript
153
- requestAllPermissions() => Promise<PluginPermissionsMap>
177
+ requestAllPermissions() => Promise<{ result: RequestAllPermissionsResult; }>
154
178
  ```
155
179
 
156
- Requests authorization to all the required permissions for the plugin, if they have not already been granted.
180
+ Requests permission for all calendar and reminder permissions.
157
181
 
158
- **Returns:** <code>Promise&lt;<a href="#pluginpermissionsmap">PluginPermissionsMap</a>&gt;</code>
182
+ **Returns:** <code>Promise&lt;{ result: <a href="#checkallpermissionsresult">CheckAllPermissionsResult</a>; }&gt;</code>
159
183
 
160
184
  **Since:** 0.1.0
161
185
 
186
+ **Platform:** Android, iOS
187
+
162
188
  --------------------
163
189
 
164
190
 
165
- ### createEventWithPrompt(...)
191
+ ### requestWriteOnlyCalendarAccess()
166
192
 
167
193
  ```typescript
168
- createEventWithPrompt(options: { title: string; calendarId?: string; location?: string; startDate?: number; endDate?: number; isAllDay?: boolean; alertOffsetInMinutes?: number | number[]; url?: string; notes?: string; eventIdOptional?: boolean; }) => Promise<{ result: string[]; }>
194
+ requestWriteOnlyCalendarAccess() => Promise<{ result: PermissionState; }>
169
195
  ```
170
196
 
171
- Creates an event in the calendar by using the native calendar.
172
- On iOS opens a native sheet and on Android opens an intent.
197
+ Requests write access to the calendar.
173
198
 
174
- | Param | Type | Description |
175
- | ------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------- |
176
- | **`options`** | <code>{ title: string; calendarId?: string; location?: string; startDate?: number; endDate?: number; isAllDay?: boolean; alertOffsetInMinutes?: number \| number[]; url?: string; notes?: string; eventIdOptional?: boolean; }</code> | Options for creating the event. |
199
+ **Returns:** <code>Promise&lt;{ result: <a href="#permissionstate">PermissionState</a>; }&gt;</code>
177
200
 
178
- **Returns:** <code>Promise&lt;{ result: string[]; }&gt;</code>
201
+ **Since:** 5.4.0
179
202
 
180
- **Since:** 0.1.0
203
+ **Platform:** Android, iOS
181
204
 
182
205
  --------------------
183
206
 
184
207
 
185
- ### selectCalendarsWithPrompt(...)
208
+ ### requestReadOnlyCalendarAccess()
186
209
 
187
210
  ```typescript
188
- selectCalendarsWithPrompt(options: { displayStyle: CalendarChooserDisplayStyle; selectionStyle: CalendarChooserSelectionStyle; }) => Promise<{ result: Calendar[]; }>
211
+ requestReadOnlyCalendarAccess() => Promise<{ result: PermissionState; }>
189
212
  ```
190
213
 
191
- Presents a prompt to the user to select calendars. This method is available only on iOS.
214
+ Requests read access to the calendar.
192
215
 
193
- | Param | Type | Description |
194
- | ------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- |
195
- | **`options`** | <code>{ displayStyle: <a href="#calendarchooserdisplaystyle">CalendarChooserDisplayStyle</a>; selectionStyle: <a href="#calendarchooserselectionstyle">CalendarChooserSelectionStyle</a>; }</code> | - Options for customizing the display and selection styles of the calendar chooser. |
216
+ **Returns:** <code>Promise&lt;{ result: <a href="#permissionstate">PermissionState</a>; }&gt;</code>
196
217
 
197
- **Returns:** <code>Promise&lt;{ result: Calendar[]; }&gt;</code>
218
+ **Since:** 5.4.0
198
219
 
199
- **Since:** 0.2.0
220
+ **Platform:** Android
200
221
 
201
222
  --------------------
202
223
 
203
224
 
204
- ### listCalendars()
225
+ ### requestFullCalendarAccess()
205
226
 
206
227
  ```typescript
207
- listCalendars() => Promise<{ result: Calendar[]; }>
228
+ requestFullCalendarAccess() => Promise<{ result: PermissionState; }>
208
229
  ```
209
230
 
210
- Retrieves a list of calendars available on the device.
231
+ Requests read and write access to the calendar.
211
232
 
212
- **Returns:** <code>Promise&lt;{ result: Calendar[]; }&gt;</code>
233
+ **Returns:** <code>Promise&lt;{ result: <a href="#permissionstate">PermissionState</a>; }&gt;</code>
234
+
235
+ **Since:** 5.4.0
236
+
237
+ **Platform:** Android, iOS
213
238
 
214
239
  --------------------
215
240
 
216
241
 
217
- ### getDefaultCalendar()
242
+ ### requestFullRemindersAccess()
218
243
 
219
244
  ```typescript
220
- getDefaultCalendar() => Promise<{ result: Calendar | null; }>
245
+ requestFullRemindersAccess() => Promise<{ result: PermissionState; }>
221
246
  ```
222
247
 
223
- Retrieves the default calendar set on the device.
248
+ Requests read and write access to the reminders.
224
249
 
225
- **Returns:** <code>Promise&lt;{ result: <a href="#calendar">Calendar</a> | null; }&gt;</code>
250
+ **Returns:** <code>Promise&lt;{ result: <a href="#permissionstate">PermissionState</a>; }&gt;</code>
226
251
 
227
- **Since:** 0.3.0
252
+ **Since:** 5.4.0
253
+
254
+ **Platform:** iOS
228
255
 
229
256
  --------------------
230
257
 
231
258
 
232
- ### createEvent(...)
259
+ ### createEventWithPrompt(...)
233
260
 
234
261
  ```typescript
235
- createEvent(options: { title: string; calendarId?: string; location?: string; startDate?: number; endDate?: number; isAllDay?: boolean; alertOffsetInMinutes?: number | number[]; url?: string; notes?: string; }) => Promise<{ result: string; }>
262
+ createEventWithPrompt(options?: CreateEventWithPromptOptions | undefined) => Promise<{ id: string | null; }>
236
263
  ```
237
264
 
238
- Creates an event with the provided options.
265
+ Opens the system calendar interface to create a new event.
266
+ On Android always returns `null`.
267
+ Fetch the events to find the ID of the newly created event.
239
268
 
240
- | Param | Type | Description |
241
- | ------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------- |
242
- | **`options`** | <code>{ title: string; calendarId?: string; location?: string; startDate?: number; endDate?: number; isAllDay?: boolean; alertOffsetInMinutes?: number \| number[]; url?: string; notes?: string; }</code> | Options for creating the event. |
269
+ | Param | Type |
270
+ | ------------- | ------------------------------------------------------------------------------------- |
271
+ | **`options`** | <code><a href="#createeventwithpromptoptions">CreateEventWithPromptOptions</a></code> |
243
272
 
244
- **Returns:** <code>Promise&lt;{ result: string; }&gt;</code>
273
+ **Returns:** <code>Promise&lt;{ id: string | null; }&gt;</code>
245
274
 
246
- **Since:** 0.4.0
275
+ **Since:** 0.1.0
276
+
277
+ **Platform:** Android, iOS
247
278
 
248
279
  --------------------
249
280
 
250
281
 
251
- ### getDefaultRemindersList()
282
+ ### modifyEventWithPrompt(...)
252
283
 
253
284
  ```typescript
254
- getDefaultRemindersList() => Promise<{ result: RemindersList; }>
285
+ modifyEventWithPrompt(options: ModifyEventWithPromptOptions) => Promise<{ result: EventEditAction | null; }>
255
286
  ```
256
287
 
257
- Retrieves the default reminders list set on the device.
288
+ Opens a system calendar interface to modify an event.
289
+ On Android always returns `null`.
290
+
291
+ | Param | Type |
292
+ | ------------- | ------------------------------------------------------------------------------------- |
293
+ | **`options`** | <code><a href="#modifyeventwithpromptoptions">ModifyEventWithPromptOptions</a></code> |
258
294
 
259
- **Returns:** <code>Promise&lt;{ result: <a href="#calendar">Calendar</a>; }&gt;</code>
295
+ **Returns:** <code>Promise&lt;{ result: <a href="#eventeditaction">EventEditAction</a> | null; }&gt;</code>
296
+
297
+ **Since:** 6.6.0
298
+
299
+ **Platform:** Android, iOS
260
300
 
261
301
  --------------------
262
302
 
263
303
 
264
- ### getRemindersLists()
304
+ ### createEvent(...)
265
305
 
266
306
  ```typescript
267
- getRemindersLists() => Promise<{ result: RemindersList[]; }>
307
+ createEvent(options: CreateEventOptions) => Promise<{ id: string; }>
268
308
  ```
269
309
 
270
- Retrieves all available reminders lists on the device.
310
+ Creates an event in the calendar.
271
311
 
272
- **Returns:** <code>Promise&lt;{ result: Calendar[]; }&gt;</code>
312
+ | Param | Type |
313
+ | ------------- | ----------------------------------------------------------------- |
314
+ | **`options`** | <code><a href="#createeventoptions">CreateEventOptions</a></code> |
315
+
316
+ **Returns:** <code>Promise&lt;{ id: string; }&gt;</code>
317
+
318
+ **Since:** 0.4.0
319
+
320
+ **Platform:** iOS, Android
273
321
 
274
322
  --------------------
275
323
 
276
324
 
277
- ### createReminder(...)
325
+ ### modifyEvent(...)
278
326
 
279
327
  ```typescript
280
- createReminder(options: { title: string; listId?: string; priority?: number; isCompleted?: boolean; startDate?: number; dueDate?: number; completionDate?: number; notes?: string; url?: string; location?: string; recurrence?: ReminderRecurrenceRule; }) => Promise<{ result: string; }>
328
+ modifyEvent(options: ModifyEventOptions) => Promise<void>
281
329
  ```
282
330
 
283
- Creates a reminder with the provided options.
331
+ Modifies an event.
284
332
 
285
- | Param | Type | Description |
286
- | ------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------ |
287
- | **`options`** | <code>{ title: string; listId?: string; priority?: number; isCompleted?: boolean; startDate?: number; dueDate?: number; completionDate?: number; notes?: string; url?: string; location?: string; recurrence?: <a href="#reminderrecurrencerule">ReminderRecurrenceRule</a>; }</code> | - Options for creating the reminder. |
333
+ | Param | Type |
334
+ | ------------- | ----------------------------------------------------------------- |
335
+ | **`options`** | <code><a href="#modifyeventoptions">ModifyEventOptions</a></code> |
288
336
 
289
- **Returns:** <code>Promise&lt;{ result: string; }&gt;</code>
337
+ **Since:** 6.6.0
290
338
 
291
- **Since:** 0.5.0
339
+ **Platform:** Android, iOS
292
340
 
293
341
  --------------------
294
342
 
295
343
 
296
- ### openCalendar(...)
344
+ ### deleteEventsById(...)
297
345
 
298
346
  ```typescript
299
- openCalendar(options: { date?: number; }) => Promise<void>
347
+ deleteEventsById(options: DeleteEventsByIdOptions) => Promise<{ result: DeleteEventsByIdResult; }>
300
348
  ```
301
349
 
302
- Opens the calendar app. Since the user leaves your app, use this method with caution.
303
- It will open the calendar on today's date if no date is provided.
350
+ Deletes multiple events.
351
+
352
+ | Param | Type |
353
+ | ------------- | --------------------------------------------------------------------------- |
354
+ | **`options`** | <code><a href="#deleteeventsbyidoptions">DeleteEventsByIdOptions</a></code> |
355
+
356
+ **Returns:** <code>Promise&lt;{ result: <a href="#deleteeventsbyidresult">DeleteEventsByIdResult</a>; }&gt;</code>
304
357
 
305
- | Param | Type | Description |
306
- | ------------- | ------------------------------- | ----------------------------------- |
307
- | **`options`** | <code>{ date?: number; }</code> | - Options for opening the calendar. |
358
+ **Since:** 0.11.0
359
+
360
+ **Platform:** Android, iOS
308
361
 
309
362
  --------------------
310
363
 
311
364
 
312
- ### openReminders()
365
+ ### deleteEvent(...)
313
366
 
314
367
  ```typescript
315
- openReminders() => Promise<void>
368
+ deleteEvent(options: DeleteEventOptions) => Promise<void>
316
369
  ```
317
370
 
318
- Opens the reminders app. Since the user leaves your app, use this method with caution.
371
+ Deletes an event.
372
+
373
+ | Param | Type |
374
+ | ------------- | ----------------------------------------------------------------- |
375
+ | **`options`** | <code><a href="#deleteeventoptions">DeleteEventOptions</a></code> |
376
+
377
+ **Since:** 7.1.0
378
+
379
+ **Platform:** Android, iOS
380
+
381
+ --------------------
382
+
383
+
384
+ ### deleteEventWithPrompt(...)
385
+
386
+ ```typescript
387
+ deleteEventWithPrompt(options: DeleteEventWithPromptOptions) => Promise<{ deleted: boolean; }>
388
+ ```
389
+
390
+ Opens a dialog to delete an event.
391
+
392
+ | Param | Type |
393
+ | ------------- | ------------------------------------------------------------------------------------- |
394
+ | **`options`** | <code><a href="#deleteeventwithpromptoptions">DeleteEventWithPromptOptions</a></code> |
395
+
396
+ **Returns:** <code>Promise&lt;{ deleted: boolean; }&gt;</code>
397
+
398
+ **Since:** 7.1.0
399
+
400
+ **Platform:** Android, iOS
319
401
 
320
402
  --------------------
321
403
 
@@ -323,37 +405,126 @@ Opens the reminders app. Since the user leaves your app, use this method with ca
323
405
  ### listEventsInRange(...)
324
406
 
325
407
  ```typescript
326
- listEventsInRange(options: { startDate: number; endDate: number; }) => Promise<{ result: CalendarEvent[]; }>
408
+ listEventsInRange(options: ListEventsInRangeOptions) => Promise<{ result: CalendarEvent[]; }>
327
409
  ```
328
410
 
329
- Retrieves the list of calendar events present in the given date range.
411
+ Retrieves the events within a date range.
330
412
 
331
- | Param | Type | Description |
332
- | ------------- | ---------------------------------------------------- | ------------------------------------ |
333
- | **`options`** | <code>{ startDate: number; endDate: number; }</code> | Options for defining the date range. |
413
+ | Param | Type |
414
+ | ------------- | ----------------------------------------------------------------------------- |
415
+ | **`options`** | <code><a href="#listeventsinrangeoptions">ListEventsInRangeOptions</a></code> |
334
416
 
335
417
  **Returns:** <code>Promise&lt;{ result: CalendarEvent[]; }&gt;</code>
336
418
 
337
419
  **Since:** 0.10.0
338
420
 
421
+ **Platform:** Android, iOS
422
+
339
423
  --------------------
340
424
 
341
425
 
342
- ### deleteEventsById(...)
426
+ ### commit()
343
427
 
344
428
  ```typescript
345
- deleteEventsById(options: { ids: string[]; }) => Promise<{ result: { deleted: string[]; failed: string[]; }; }>
429
+ commit() => Promise<void>
346
430
  ```
347
431
 
348
- Deletes events from the calendar given their IDs.
432
+ Save the changes to the calendar.
349
433
 
350
- | Param | Type | Description |
351
- | ------------- | ------------------------------- | ------------------------------- |
352
- | **`options`** | <code>{ ids: string[]; }</code> | Options for defining event IDs. |
434
+ **Since:** 7.1.0
353
435
 
354
- **Returns:** <code>Promise&lt;{ result: { deleted: string[]; failed: string[]; }; }&gt;</code>
436
+ **Platform:** iOS
355
437
 
356
- **Since:** 0.11.0
438
+ --------------------
439
+
440
+
441
+ ### selectCalendarsWithPrompt(...)
442
+
443
+ ```typescript
444
+ selectCalendarsWithPrompt(options?: SelectCalendarsWithPromptOptions | undefined) => Promise<{ result: Calendar[]; }>
445
+ ```
446
+
447
+ Opens a system interface to choose one or multiple calendars.
448
+
449
+ | Param | Type |
450
+ | ------------- | --------------------------------------------------------------------------------------------- |
451
+ | **`options`** | <code><a href="#selectcalendarswithpromptoptions">SelectCalendarsWithPromptOptions</a></code> |
452
+
453
+ **Returns:** <code>Promise&lt;{ result: Calendar[]; }&gt;</code>
454
+
455
+ **Since:** 0.2.0
456
+
457
+ **Platform:** iOS
458
+
459
+ --------------------
460
+
461
+
462
+ ### fetchAllCalendarSources()
463
+
464
+ ```typescript
465
+ fetchAllCalendarSources() => Promise<{ result: CalendarSource[]; }>
466
+ ```
467
+
468
+ Retrieves a list of calendar sources.
469
+
470
+ **Returns:** <code>Promise&lt;{ result: CalendarSource[]; }&gt;</code>
471
+
472
+ **Since:** 6.6.0
473
+
474
+ **Platform:** iOS
475
+
476
+ --------------------
477
+
478
+
479
+ ### listCalendars()
480
+
481
+ ```typescript
482
+ listCalendars() => Promise<{ result: Calendar[]; }>
483
+ ```
484
+
485
+ Retrieves a list of all available calendars.
486
+
487
+ **Returns:** <code>Promise&lt;{ result: Calendar[]; }&gt;</code>
488
+
489
+ **Since:** 7.1.0
490
+
491
+ **Platform:** Android, iOS
492
+
493
+ --------------------
494
+
495
+
496
+ ### getDefaultCalendar()
497
+
498
+ ```typescript
499
+ getDefaultCalendar() => Promise<{ result: Calendar | null; }>
500
+ ```
501
+
502
+ Retrieves the default calendar.
503
+
504
+ **Returns:** <code>Promise&lt;{ result: <a href="#calendar">Calendar</a> | null; }&gt;</code>
505
+
506
+ **Since:** 0.3.0
507
+
508
+ **Platform:** Android, iOS
509
+
510
+ --------------------
511
+
512
+
513
+ ### openCalendar(...)
514
+
515
+ ```typescript
516
+ openCalendar(options?: OpenCalendarOptions | undefined) => Promise<void>
517
+ ```
518
+
519
+ Opens the calendar app.
520
+
521
+ | Param | Type |
522
+ | ------------- | ------------------------------------------------------------------- |
523
+ | **`options`** | <code><a href="#opencalendaroptions">OpenCalendarOptions</a></code> |
524
+
525
+ **Since:** 7.1.0
526
+
527
+ **Platform:** Android, iOS
357
528
 
358
529
  --------------------
359
530
 
@@ -361,216 +532,267 @@ Deletes events from the calendar given their IDs.
361
532
  ### createCalendar(...)
362
533
 
363
534
  ```typescript
364
- createCalendar(options: { title: string; color?: string; sourceId?: string; }) => Promise<{ result: string; }>
535
+ createCalendar(options: CreateCalendarOptions) => Promise<{ id: string; }>
365
536
  ```
366
537
 
367
- Creates a calendar
538
+ Creates a calendar.
368
539
 
369
- | Param | Type | Description |
370
- | ------------- | ------------------------------------------------------------------ | -------------------------------- |
371
- | **`options`** | <code>{ title: string; color?: string; sourceId?: string; }</code> | Options for creating a calendar. |
540
+ | Param | Type |
541
+ | ------------- | ----------------------------------------------------------------------- |
542
+ | **`options`** | <code><a href="#createcalendaroptions">CreateCalendarOptions</a></code> |
372
543
 
373
- **Returns:** <code>Promise&lt;{ result: string; }&gt;</code>
544
+ **Returns:** <code>Promise&lt;{ id: string; }&gt;</code>
374
545
 
375
546
  **Since:** 5.2.0
376
547
 
548
+ **Platform:** Android, iOS
549
+
377
550
  --------------------
378
551
 
379
552
 
380
553
  ### deleteCalendar(...)
381
554
 
382
555
  ```typescript
383
- deleteCalendar(options: { id: string; }) => Promise<void>
556
+ deleteCalendar(options: DeleteCalendarOptions) => Promise<void>
384
557
  ```
385
558
 
386
- Deletes a calendar by id
559
+ Deletes a calendar by id.
387
560
 
388
- | Param | Type | Description |
389
- | ------------- | ---------------------------- | -------------------------------- |
390
- | **`options`** | <code>{ id: string; }</code> | Options for deleting a calendar. |
561
+ | Param | Type |
562
+ | ------------- | ----------------------------------------------------------------------- |
563
+ | **`options`** | <code><a href="#deletecalendaroptions">DeleteCalendarOptions</a></code> |
391
564
 
392
565
  **Since:** 5.2.0
393
566
 
567
+ **Platform:** Android, iOS
568
+
394
569
  --------------------
395
570
 
396
571
 
397
- ### getRemindersFromLists(...)
572
+ ### modifyCalendar(...)
398
573
 
399
574
  ```typescript
400
- getRemindersFromLists(options?: { listIds: string[]; } | undefined) => Promise<{ result: Reminder[]; }>
575
+ modifyCalendar(options: ModifyCalendarOptions) => Promise<void>
401
576
  ```
402
577
 
403
- Retrieves the list of reminders present in the given date range.
578
+ Modifies a calendar with options.
404
579
 
405
- | Param | Type | Description |
406
- | ------------- | ----------------------------------- | --------------------------------------------------------------------------------------------------------------------- |
407
- | **`options`** | <code>{ listIds: string[]; }</code> | Options for defining the date range. It Will fetch all reminders from all available lists if not provided. (Optional) |
580
+ | Param | Type |
581
+ | ------------- | ----------------------------------------------------------------------- |
582
+ | **`options`** | <code><a href="#modifycalendaroptions">ModifyCalendarOptions</a></code> |
408
583
 
409
- **Returns:** <code>Promise&lt;{ result: Reminder[]; }&gt;</code>
584
+ **Since:** 7.2.0
410
585
 
411
- **Since:** 5.3.0
586
+ **Platform:** Android, iOS
412
587
 
413
588
  --------------------
414
589
 
415
590
 
416
- ### deleteRemindersById(...)
591
+ ### fetchAllRemindersSources()
417
592
 
418
593
  ```typescript
419
- deleteRemindersById(options: { ids: string[]; }) => Promise<{ result: { deleted: string[]; failed: string[]; }; }>
594
+ fetchAllRemindersSources() => Promise<{ result: CalendarSource[]; }>
420
595
  ```
421
596
 
422
- Deletes reminders given their IDs.
597
+ Retrieves a list of calendar sources.
423
598
 
424
- | Param | Type | Description |
425
- | ------------- | ------------------------------- | ---------------------------------- |
426
- | **`options`** | <code>{ ids: string[]; }</code> | Options for defining reminder IDs. |
599
+ **Returns:** <code>Promise&lt;{ result: CalendarSource[]; }&gt;</code>
427
600
 
428
- **Returns:** <code>Promise&lt;{ result: { deleted: string[]; failed: string[]; }; }&gt;</code>
601
+ **Since:** 6.6.0
429
602
 
430
- **Since:** 5.3.0
603
+ **Platform:** iOS
431
604
 
432
605
  --------------------
433
606
 
434
607
 
435
- ### requestWriteOnlyCalendarAccess()
608
+ ### openReminders()
436
609
 
437
610
  ```typescript
438
- requestWriteOnlyCalendarAccess() => Promise<{ result: PermissionState; }>
611
+ openReminders() => Promise<void>
439
612
  ```
440
613
 
441
- Requests write access for the calendar. If its already granted, it will directly return the state.
614
+ Opens the reminders app.
442
615
 
443
- **Returns:** <code>Promise&lt;{ result: <a href="#permissionstate">PermissionState</a>; }&gt;</code>
616
+ **Since:** 7.1.0
444
617
 
445
- **Since:** 5.4.0
618
+ **Platform:** iOS
446
619
 
447
620
  --------------------
448
621
 
449
622
 
450
- ### requestReadOnlyCalendarAccess()
623
+ ### getDefaultRemindersList()
451
624
 
452
625
  ```typescript
453
- requestReadOnlyCalendarAccess() => Promise<{ result: PermissionState; }>
626
+ getDefaultRemindersList() => Promise<{ result: RemindersList | null; }>
454
627
  ```
455
628
 
456
- Requests read access for the calendar. If its already granted, it will directly return the state.
629
+ Retrieves the default reminders list.
457
630
 
458
- **Returns:** <code>Promise&lt;{ result: <a href="#permissionstate">PermissionState</a>; }&gt;</code>
631
+ **Returns:** <code>Promise&lt;{ result: <a href="#calendar">Calendar</a> | null; }&gt;</code>
459
632
 
460
- **Since:** 5.4.0
633
+ **Since:** 7.1.0
634
+
635
+ **Platform:** iOS
461
636
 
462
637
  --------------------
463
638
 
464
639
 
465
- ### requestFullCalendarAccess()
640
+ ### getRemindersLists()
466
641
 
467
642
  ```typescript
468
- requestFullCalendarAccess() => Promise<{ result: PermissionState; }>
643
+ getRemindersLists() => Promise<{ result: RemindersList[]; }>
469
644
  ```
470
645
 
471
- Requests read and write access for the calendar. If its already granted, it will directly return the state.
646
+ Retrieves all available reminders lists.
472
647
 
473
- **Returns:** <code>Promise&lt;{ result: <a href="#permissionstate">PermissionState</a>; }&gt;</code>
648
+ **Returns:** <code>Promise&lt;{ result: Calendar[]; }&gt;</code>
474
649
 
475
- **Since:** 5.4.0
650
+ **Since:** 7.1.0
651
+
652
+ **Platform:** iOS
476
653
 
477
654
  --------------------
478
655
 
479
656
 
480
- ### requestFullRemindersAccess()
657
+ ### createReminder(...)
481
658
 
482
659
  ```typescript
483
- requestFullRemindersAccess() => Promise<{ result: PermissionState; }>
660
+ createReminder(options: CreateReminderOptions) => Promise<{ id: string; }>
484
661
  ```
485
662
 
486
- Requests read and write access for the reminders. If its already granted, it will directly return the state.
663
+ Creates a reminder.
487
664
 
488
- **Returns:** <code>Promise&lt;{ result: <a href="#permissionstate">PermissionState</a>; }&gt;</code>
665
+ | Param | Type |
666
+ | ------------- | ----------------------------------------------------------------------- |
667
+ | **`options`** | <code><a href="#createreminderoptions">CreateReminderOptions</a></code> |
489
668
 
490
- **Since:** 5.4.0
669
+ **Returns:** <code>Promise&lt;{ id: string; }&gt;</code>
670
+
671
+ **Since:** 0.5.0
672
+
673
+ **Platform:** iOS
491
674
 
492
675
  --------------------
493
676
 
494
677
 
495
- ### modifyEventWithPrompt(...)
678
+ ### deleteRemindersById(...)
496
679
 
497
680
  ```typescript
498
- modifyEventWithPrompt(options: { id: string; update?: { title?: string; calendarId?: string; location?: string; startDate?: number; endDate?: number; isAllDay?: boolean; alertOffsetInMinutes?: number | number[]; url?: string; notes?: string; }; }) => Promise<{ result: string[]; }>
681
+ deleteRemindersById(options: DeleteRemindersByIdOptions) => Promise<{ result: DeleteRemindersByIdResult; }>
499
682
  ```
500
683
 
501
- Opens a native prompt to modify an event given its id.
684
+ Deletes multiple reminders.
502
685
 
503
- | Param | Type | Description |
504
- | ------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------- |
505
- | **`options`** | <code>{ id: string; update?: { title?: string; calendarId?: string; location?: string; startDate?: number; endDate?: number; isAllDay?: boolean; alertOffsetInMinutes?: number \| number[]; url?: string; notes?: string; }; }</code> | The options for modifying an event. |
686
+ | Param | Type |
687
+ | ------------- | --------------------------------------------------------------------------------- |
688
+ | **`options`** | <code><a href="#deleteremindersbyidoptions">DeleteRemindersByIdOptions</a></code> |
506
689
 
507
- **Returns:** <code>Promise&lt;{ result: string[]; }&gt;</code>
690
+ **Returns:** <code>Promise&lt;{ result: <a href="#deleteremindersbyidresult">DeleteRemindersByIdResult</a>; }&gt;</code>
508
691
 
509
- **Since:** 6.6.0
692
+ **Since:** 5.3.0
693
+
694
+ **Platform:** iOS
510
695
 
511
696
  --------------------
512
697
 
513
698
 
514
- ### modifyEvent(...)
699
+ ### deleteReminder(...)
515
700
 
516
701
  ```typescript
517
- modifyEvent(options: { id: string; span?: EventSpan; update: { title?: string; calendarId?: string; location?: string; startDate?: number; endDate?: number; isAllDay?: boolean; alertOffsetInMinutes?: number | number[]; url?: string; notes?: string; }; }) => Promise<void>
702
+ deleteReminder(options: DeleteReminderOptions) => Promise<void>
518
703
  ```
519
704
 
520
- Modifies an event given its id and update details.
705
+ Deletes a reminder.
521
706
 
522
- | Param | Type | Description |
523
- | ------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------- |
524
- | **`options`** | <code>{ id: string; span?: <a href="#eventspan">EventSpan</a>; update: { title?: string; calendarId?: string; location?: string; startDate?: number; endDate?: number; isAllDay?: boolean; alertOffsetInMinutes?: number \| number[]; url?: string; notes?: string; }; }</code> | The options for updating an event. |
707
+ | Param | Type |
708
+ | ------------- | ----------------------------------------------------------------------- |
709
+ | **`options`** | <code><a href="#deletereminderoptions">DeleteReminderOptions</a></code> |
525
710
 
526
- **Since:** 6.6.0
711
+ **Since:** 7.1.0
712
+
713
+ **Platform:** iOS
527
714
 
528
715
  --------------------
529
716
 
530
717
 
531
- ### fetchAllCalendarSources()
718
+ ### modifyReminder(...)
532
719
 
533
720
  ```typescript
534
- fetchAllCalendarSources() => Promise<{ result: CalendarSource[]; }>
721
+ modifyReminder(options: ModifyReminderOptions) => Promise<void>
535
722
  ```
536
723
 
537
- Retrieves a list of calendar sources.
724
+ Modifies a reminder.
538
725
 
539
- **Returns:** <code>Promise&lt;{ result: CalendarSource[]; }&gt;</code>
726
+ | Param | Type |
727
+ | ------------- | ----------------------------------------------------------------------- |
728
+ | **`options`** | <code><a href="#modifyreminderoptions">ModifyReminderOptions</a></code> |
540
729
 
541
- **Since:** 6.6.0
730
+ **Since:** 6.7.0
731
+
732
+ **Platform:** iOS
542
733
 
543
734
  --------------------
544
735
 
545
736
 
546
- ### fetchAllRemindersSources()
737
+ ### getReminderById(...)
547
738
 
548
739
  ```typescript
549
- fetchAllRemindersSources() => Promise<{ result: CalendarSource[]; }>
740
+ getReminderById(options: GetReminderByIdOptions) => Promise<{ result: Reminder | null; }>
550
741
  ```
551
742
 
552
- Retrieves a list of reminders sources.
743
+ Retrieve a reminder by ID.
553
744
 
554
- **Returns:** <code>Promise&lt;{ result: CalendarSource[]; }&gt;</code>
745
+ | Param | Type |
746
+ | ------------- | ------------------------------------------------------------------------- |
747
+ | **`options`** | <code><a href="#getreminderbyidoptions">GetReminderByIdOptions</a></code> |
555
748
 
556
- **Since:** 6.6.0
749
+ **Returns:** <code>Promise&lt;{ result: <a href="#reminder">Reminder</a> | null; }&gt;</code>
750
+
751
+ **Since:** 7.1.0
752
+
753
+ **Platform:** iOS
557
754
 
558
755
  --------------------
559
756
 
560
757
 
561
- ### modifyReminder(...)
758
+ ### getRemindersFromLists(...)
562
759
 
563
760
  ```typescript
564
- modifyReminder(options: { id: string; update: { title?: string; listId?: string; priority?: number; isCompleted?: boolean; startDate?: number; dueDate?: number; completionDate?: number; notes?: string; url?: string; location?: string; recurrence?: ReminderRecurrenceRule; }; }) => Promise<void>
761
+ getRemindersFromLists(options: GetRemindersFromListsOptions) => Promise<{ result: Reminder[]; }>
565
762
  ```
566
763
 
567
- Modifies a reminder given its id and update details.
764
+ Retrieves reminders from multiple lists.
568
765
 
569
- | Param | Type | Description |
570
- | ------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------ |
571
- | **`options`** | <code>{ id: string; update: { title?: string; listId?: string; priority?: number; isCompleted?: boolean; startDate?: number; dueDate?: number; completionDate?: number; notes?: string; url?: string; location?: string; recurrence?: <a href="#reminderrecurrencerule">ReminderRecurrenceRule</a>; }; }</code> | The options for updating a reminder. |
766
+ | Param | Type |
767
+ | ------------- | ------------------------------------------------------------------------------------- |
768
+ | **`options`** | <code><a href="#getremindersfromlistsoptions">GetRemindersFromListsOptions</a></code> |
572
769
 
573
- **Since:** 6.7.0
770
+ **Returns:** <code>Promise&lt;{ result: Reminder[]; }&gt;</code>
771
+
772
+ **Since:** 5.3.0
773
+
774
+ **Platform:** iOS
775
+
776
+ --------------------
777
+
778
+
779
+ ### deleteReminderWithPrompt(...)
780
+
781
+ ```typescript
782
+ deleteReminderWithPrompt(options: DeleteReminderWithPromptOptions) => Promise<{ deleted: boolean; }>
783
+ ```
784
+
785
+ Opens a dialog to delete a reminder.
786
+
787
+ | Param | Type |
788
+ | ------------- | ------------------------------------------------------------------------------------------- |
789
+ | **`options`** | <code><a href="#deletereminderwithpromptoptions">DeleteReminderWithPromptOptions</a></code> |
790
+
791
+ **Returns:** <code>Promise&lt;{ deleted: boolean; }&gt;</code>
792
+
793
+ **Since:** 7.2.0
794
+
795
+ **Platform:** iOS
574
796
 
575
797
  --------------------
576
798
 
@@ -578,82 +800,344 @@ Modifies a reminder given its id and update details.
578
800
  ### Interfaces
579
801
 
580
802
 
581
- #### Calendar
803
+ #### CreateEventWithPromptOptions
804
+
805
+ | Prop | Type | Description | Since | Platform |
806
+ | ------------------ | --------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | ----- | ------------ |
807
+ | **`title`** | <code>string</code> | | 0.1.0 | Android, iOS |
808
+ | **`calendarId`** | <code>string</code> | | 0.1.0 | iOS |
809
+ | **`location`** | <code>string</code> | | 0.1.0 | Android, iOS |
810
+ | **`startDate`** | <code>number</code> | | 0.1.0 | Android, iOS |
811
+ | **`endDate`** | <code>number</code> | | 0.1.0 | Android, iOS |
812
+ | **`isAllDay`** | <code>boolean</code> | | 0.1.0 | Android, iOS |
813
+ | **`alerts`** | <code>number[]</code> | Sets alerts before or after the start of the event in minutes. On iOS only 2 alerts are supported. | 7.1.0 | iOS |
814
+ | **`url`** | <code>string</code> | | 0.1.0 | iOS |
815
+ | **`description`** | <code>string</code> | | 7.1.0 | Android, iOS |
816
+ | **`availability`** | <code><a href="#eventavailability">EventAvailability</a></code> | | 7.1.0 | Android, iOS |
817
+ | **`invitees`** | <code>string[]</code> | An array of emails to invite. | 7.1.0 | Android |
818
+
819
+
820
+ #### ModifyEventWithPromptOptions
821
+
822
+ | Prop | Type | Description | Since | Platform |
823
+ | ------------------ | --------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | ----- | ------------ |
824
+ | **`title`** | <code>string</code> | | 0.1.0 | Android, iOS |
825
+ | **`calendarId`** | <code>string</code> | | 0.1.0 | iOS |
826
+ | **`location`** | <code>string</code> | | 0.1.0 | Android, iOS |
827
+ | **`startDate`** | <code>number</code> | | 0.1.0 | Android, iOS |
828
+ | **`endDate`** | <code>number</code> | | 0.1.0 | Android, iOS |
829
+ | **`isAllDay`** | <code>boolean</code> | | 0.1.0 | Android, iOS |
830
+ | **`alerts`** | <code>number[]</code> | Sets alerts before or after the start of the event in minutes. On iOS only 2 alerts are supported. | 7.1.0 | iOS |
831
+ | **`url`** | <code>string</code> | | 0.1.0 | iOS |
832
+ | **`description`** | <code>string</code> | | 7.1.0 | Android, iOS |
833
+ | **`availability`** | <code><a href="#eventavailability">EventAvailability</a></code> | | 7.1.0 | Android, iOS |
834
+ | **`invitees`** | <code>string[]</code> | An array of emails to invite. | 7.1.0 | Android |
835
+ | **`id`** | <code>string</code> | The ID of the event to be modified. | 7.1.0 | Android, iOS |
836
+
837
+
838
+ #### CreateEventOptions
839
+
840
+ | Prop | Type | Description | Default | Since | Platform |
841
+ | ------------------ | --------------------------------------------------------------- | -------------------------------------------------------------------------- | ----------------- | ----- | ------------ |
842
+ | **`title`** | <code>string</code> | | | 0.4.0 | Android, iOS |
843
+ | **`calendarId`** | <code>string</code> | | | 0.1.0 | Android, iOS |
844
+ | **`location`** | <code>string</code> | | | 0.1.0 | Android, iOS |
845
+ | **`startDate`** | <code>number</code> | | | 0.1.0 | Android, iOS |
846
+ | **`endDate`** | <code>number</code> | | | 0.1.0 | Android, iOS |
847
+ | **`isAllDay`** | <code>boolean</code> | | | 0.1.0 | Android, iOS |
848
+ | **`alerts`** | <code>number[]</code> | | | 7.1.0 | Android, iOS |
849
+ | **`url`** | <code>string</code> | | | 0.1.0 | iOS |
850
+ | **`description`** | <code>string</code> | | | 7.1.0 | Android, iOS |
851
+ | **`availability`** | <code><a href="#eventavailability">EventAvailability</a></code> | | | 7.1.0 | Android, iOS |
852
+ | **`organizer`** | <code>string</code> | Email of the event organizer. | | 7.1.0 | Android |
853
+ | **`color`** | <code>string</code> | | | 7.1.0 | Android |
854
+ | **`duration`** | <code>string</code> | Duration of the event in RFC2445 format. | | 7.1.0 | Android |
855
+ | **`commit`** | <code>boolean</code> | Whether to save immediately (`true`) or batch changes for later (`false`). | <code>true</code> | 7.1.0 | iOS |
856
+ | **`attendees`** | <code>EventGuest[]</code> | The event guests. | | 7.1.0 | Android |
857
+
858
+
859
+ #### EventGuest
860
+
861
+ | Prop | Type | Since |
862
+ | ----------- | ------------------- | ----- |
863
+ | **`name`** | <code>string</code> | 7.1.0 |
864
+ | **`email`** | <code>string</code> | 7.1.0 |
865
+
866
+
867
+ #### ModifyEventOptions
868
+
869
+ | Prop | Type | Description | Default | Since | Platform |
870
+ | ------------------ | --------------------------------------------------------------- | ---------------------------------------- | --------------------------------- | ----- | ------------ |
871
+ | **`id`** | <code>string</code> | The ID of the event to be modified. | | 7.1.0 | Android, iOS |
872
+ | **`title`** | <code>string</code> | | | 0.4.0 | Android, iOS |
873
+ | **`calendarId`** | <code>string</code> | | | 0.1.0 | Android, iOS |
874
+ | **`location`** | <code>string</code> | | | 0.1.0 | Android, iOS |
875
+ | **`startDate`** | <code>number</code> | | | 0.1.0 | Android, iOS |
876
+ | **`endDate`** | <code>number</code> | | | 0.1.0 | Android, iOS |
877
+ | **`isAllDay`** | <code>boolean</code> | | | 0.1.0 | Android, iOS |
878
+ | **`alerts`** | <code>number[]</code> | | | 7.1.0 | Android, iOS |
879
+ | **`url`** | <code>string</code> | | | 0.1.0 | iOS |
880
+ | **`description`** | <code>string</code> | | | 7.1.0 | Android, iOS |
881
+ | **`availability`** | <code><a href="#eventavailability">EventAvailability</a></code> | | | 7.1.0 | Android, iOS |
882
+ | **`organizer`** | <code>string</code> | Email of the event organizer. | | 7.1.0 | Android |
883
+ | **`color`** | <code>string</code> | | | 7.1.0 | Android |
884
+ | **`duration`** | <code>string</code> | Duration of the event in RFC2445 format. | | 7.1.0 | Android |
885
+ | **`attendees`** | <code>EventGuest[]</code> | The event guests. | | 7.1.0 | Android |
886
+ | **`span`** | <code><a href="#eventspan">EventSpan</a></code> | The span of modifications. | <code>EventSpan.THIS_EVENT</code> | | iOS |
887
+
888
+
889
+ #### DeleteEventsByIdResult
890
+
891
+ | Prop | Type | Since |
892
+ | ------------- | --------------------- | ----- |
893
+ | **`deleted`** | <code>string[]</code> | 7.1.0 |
894
+ | **`failed`** | <code>string[]</code> | 7.1.0 |
895
+
896
+
897
+ #### DeleteEventsByIdOptions
898
+
899
+ | Prop | Type | Description | Default | Since | Platform |
900
+ | ---------- | ----------------------------------------------- | --------------------- | --------------------------------- | ----- | -------- |
901
+ | **`ids`** | <code>string[]</code> | | | 7.1.0 | |
902
+ | **`span`** | <code><a href="#eventspan">EventSpan</a></code> | The span of deletion. | <code>EventSpan.THIS_EVENT</code> | | iOS |
903
+
904
+
905
+ #### DeleteEventOptions
906
+
907
+ | Prop | Type | Description | Default | Since | Platform |
908
+ | ---------- | ----------------------------------------------- | --------------------- | --------------------------------- | ----- | -------- |
909
+ | **`id`** | <code>string</code> | | | 7.1.0 | |
910
+ | **`span`** | <code><a href="#eventspan">EventSpan</a></code> | The span of deletion. | <code>EventSpan.THIS_EVENT</code> | | iOS |
911
+
912
+
913
+ #### DeleteEventWithPromptOptions
914
+
915
+ | Prop | Type | Description | Default | Since | Platform |
916
+ | ----------------------- | ----------------------------------------------- | ----------------------------------- | --------------------------------- | ----- | ------------ |
917
+ | **`id`** | <code>string</code> | | | 7.1.0 | |
918
+ | **`span`** | <code><a href="#eventspan">EventSpan</a></code> | The span of deletion. | <code>EventSpan.THIS_EVENT</code> | | iOS |
919
+ | **`title`** | <code>string</code> | Title of the dialog. | | 7.1.0 | Android, iOS |
920
+ | **`message`** | <code>string</code> | Message of the dialog. | | 7.1.0 | Android, iOS |
921
+ | **`confirmButtonText`** | <code>string</code> | Text to show on the confirm button. | <code>'Delete'</code> | 7.1.0 | Android, iOS |
922
+ | **`cancelButtonText`** | <code>string</code> | Text to show on the cancel button. | <code>'Cancel'</code> | 7.1.0 | Android, iOS |
923
+
582
924
 
583
- Represents a calendar object.
925
+ #### CalendarEvent
584
926
 
585
- | Prop | Type |
586
- | -------------------------------- | --------------------------------------------------------- |
587
- | **`id`** | <code>string</code> |
588
- | **`title`** | <code>string</code> |
589
- | **`color`** | <code>string</code> |
590
- | **`isImmutable`** | <code>boolean</code> |
591
- | **`allowsContentModifications`** | <code>boolean</code> |
592
- | **`type`** | <code><a href="#calendartype">CalendarType</a></code> |
593
- | **`isSubscribed`** | <code>boolean</code> |
594
- | **`source`** | <code><a href="#calendarsource">CalendarSource</a></code> |
927
+ | Prop | Type | Since | Platform |
928
+ | ------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----- | ------------ |
929
+ | **`id`** | <code>string</code> | 7.1.0 | Android, iOS |
930
+ | **`title`** | <code>string</code> | 7.1.0 | Android, iOS |
931
+ | **`calendarId`** | <code>string \| null</code> | 7.1.0 | Android, iOS |
932
+ | **`location`** | <code>string \| null</code> | 7.1.0 | Android, iOS |
933
+ | **`startDate`** | <code>number</code> | 7.1.0 | Android, iOS |
934
+ | **`endDate`** | <code>number</code> | 7.1.0 | Android, iOS |
935
+ | **`isAllDay`** | <code>boolean</code> | 7.1.0 | Android, iOS |
936
+ | **`alerts`** | <code>number[]</code> | 7.1.0 | Android, iOS |
937
+ | **`url`** | <code>string \| null</code> | 7.1.0 | iOS |
938
+ | **`description`** | <code>string \| null</code> | 7.1.0 | Android, iOS |
939
+ | **`availability`** | <code><a href="#eventavailability">EventAvailability</a> \| null</code> | 7.1.0 | Android, iOS |
940
+ | **`organizer`** | <code>string \| null</code> | 7.1.0 | Android, iOS |
941
+ | **`color`** | <code>string \| null</code> | 7.1.0 | Android, iOS |
942
+ | **`duration`** | <code>string \| null</code> | 7.1.0 | Android |
943
+ | **`isDetached`** | <code>boolean \| null</code> | 7.1.0 | iOS |
944
+ | **`birthdayContactIdentifier`** | <code>string \| null</code> | 7.1.0 | iOS |
945
+ | **`status`** | <code><a href="#eventstatus">EventStatus</a> \| null</code> | 7.1.0 | Android, iOS |
946
+ | **`creationDate`** | <code>number \| null</code> | 7.1.0 | iOS |
947
+ | **`lastModifiedDate`** | <code>number \| null</code> | 7.1.0 | iOS |
948
+ | **`attendees`** | <code>{ email: string \| null; name: string \| null; role: <a href="#attendeerole">AttendeeRole</a> \| null; status: <a href="#attendeestatus">AttendeeStatus</a> \| null; type: <a href="#attendeetype">AttendeeType</a> \| null; }[]</code> | 7.1.0 | Android, iOS |
949
+ | **`timezone`** | <code>string \| null</code> | 7.1.0 | Android, iOS |
950
+
951
+
952
+ #### ListEventsInRangeOptions
953
+
954
+ | Prop | Type | Description | Since |
955
+ | ---------- | ------------------- | ------------------------------ | ----- |
956
+ | **`from`** | <code>number</code> | The timestamp in milliseconds. | 7.1.0 |
957
+ | **`to`** | <code>number</code> | The timestamp in milliseconds. | 7.1.0 |
958
+
959
+
960
+ #### Calendar
961
+
962
+ | Prop | Type | Description | Since | Platform |
963
+ | -------------------------------- | ----------------------------------------------------------------- | ------------------------------------------------------------------ | ----- | ------------ |
964
+ | **`id`** | <code>string</code> | | 7.1.0 | Android, iOS |
965
+ | **`title`** | <code>string</code> | | 7.1.0 | Android, iOS |
966
+ | **`internalTitle`** | <code>string \| null</code> | Internal name of the calendar (`CalendarContract.Calendars.NAME`). | 7.1.0 | Android |
967
+ | **`color`** | <code>string</code> | | 7.1.0 | Android, iOS |
968
+ | **`isImmutable`** | <code>boolean \| null</code> | | 7.1.0 | iOS |
969
+ | **`allowsContentModifications`** | <code>boolean \| null</code> | | 7.1.0 | iOS |
970
+ | **`type`** | <code><a href="#calendartype">CalendarType</a> \| null</code> | | 7.1.0 | iOS |
971
+ | **`isSubscribed`** | <code>boolean \| null</code> | | 7.1.0 | iOS |
972
+ | **`source`** | <code><a href="#calendarsource">CalendarSource</a> \| null</code> | | 7.1.0 | iOS |
973
+ | **`visible`** | <code>boolean \| null</code> | Indicates if the events from this calendar should be shown. | 7.1.0 | Android |
974
+ | **`accountName`** | <code>string \| null</code> | The account under which the calendar is registered. | 7.1.0 | Android |
975
+ | **`ownerAccount`** | <code>string \| null</code> | The owner of the calendar. | 7.1.0 | Android |
976
+ | **`maxReminders`** | <code>number \| null</code> | Maximum number of reminders allowed per event. | 7.1.0 | Android |
977
+ | **`location`** | <code>string \| null</code> | | 7.1.0 | Android |
595
978
 
596
979
 
597
980
  #### CalendarSource
598
981
 
599
- Represents the account a calendar belongs to
982
+ | Prop | Type | Since |
983
+ | ----------- | ----------------------------------------------------------------- | ----- |
984
+ | **`type`** | <code><a href="#calendarsourcetype">CalendarSourceType</a></code> | 7.1.0 |
985
+ | **`id`** | <code>string</code> | 7.1.0 |
986
+ | **`title`** | <code>string</code> | 7.1.0 |
600
987
 
601
- | Prop | Type |
602
- | ----------- | ----------------------------------------------------------------- |
603
- | **`type`** | <code><a href="#calendarsourcetype">CalendarSourceType</a></code> |
604
- | **`id`** | <code>string</code> |
605
- | **`title`** | <code>string</code> |
606
988
 
989
+ #### SelectCalendarsWithPromptOptions
607
990
 
608
- #### ReminderRecurrenceRule
991
+ | Prop | Type | Description | Default | Since |
992
+ | ------------------ | ----------------------------------------------------------------------------------- | -------------------------- | ------------------------------------------------------ | ----- |
993
+ | **`displayStyle`** | <code><a href="#calendarchooserdisplaystyle">CalendarChooserDisplayStyle</a></code> | | <code>CalendarChooserDisplayStyle.ALL_CALENDARS</code> | 7.1.0 |
994
+ | **`multiple`** | <code>boolean</code> | Allow multiple selections. | <code>false</code> | 7.1.0 |
609
995
 
610
- | Prop | Type | Description |
611
- | --------------- | ----------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- |
612
- | **`frequency`** | <code><a href="#reminderrecurrencefrequency">ReminderRecurrenceFrequency</a></code> | How frequent should the reminder repeat. |
613
- | **`interval`** | <code>number</code> | The interval should be a number greater than 0. For values lower than 1 the method will throw an error. |
614
- | **`end`** | <code>number</code> | When provided, the reminder will stop repeating at the given time. |
615
996
 
997
+ #### OpenCalendarOptions
616
998
 
617
- #### CalendarEvent
999
+ | Prop | Type | Default | Since |
1000
+ | ---------- | ------------------- | ----------------------- | ----- |
1001
+ | **`date`** | <code>number</code> | <code>Date.now()</code> | 7.1.0 |
1002
+
1003
+
1004
+ #### CreateCalendarOptions
1005
+
1006
+ | Prop | Type | Description | Since | Platform |
1007
+ | ------------------ | ------------------- | ---------------------------------------------------------- | ----- | ------------ |
1008
+ | **`title`** | <code>string</code> | | 5.2.0 | Android, iOS |
1009
+ | **`color`** | <code>string</code> | The color of the calendar. Should be provided on Android. | 5.2.0 | Android, iOS |
1010
+ | **`sourceId`** | <code>string</code> | | 5.2.0 | iOS |
1011
+ | **`accountName`** | <code>string</code> | Only needed on Android. Typically set to an email address. | 7.1.0 | Android |
1012
+ | **`ownerAccount`** | <code>string</code> | Only needed on Android. Typically set to an email address. | 7.1.0 | Android |
1013
+
1014
+
1015
+ #### DeleteCalendarOptions
1016
+
1017
+ | Prop | Type | Since |
1018
+ | -------- | ------------------- | ----- |
1019
+ | **`id`** | <code>string</code> | 7.1.0 |
1020
+
1021
+
1022
+ #### ModifyCalendarOptions
1023
+
1024
+ | Prop | Type | Since | Platform |
1025
+ | ----------- | ------------------- | ----- | ------------ |
1026
+ | **`id`** | <code>string</code> | 7.2.0 | Android, iOS |
1027
+ | **`title`** | <code>string</code> | 7.2.0 | Android, iOS |
1028
+ | **`color`** | <code>string</code> | 7.2.0 | Android, iOS |
1029
+
1030
+
1031
+ #### CreateReminderOptions
1032
+
1033
+ | Prop | Type | Since |
1034
+ | -------------------- | --------------------------------------------------------- | ----- |
1035
+ | **`title`** | <code>string</code> | 7.1.0 |
1036
+ | **`listId`** | <code>string</code> | 7.1.0 |
1037
+ | **`priority`** | <code>number</code> | 7.1.0 |
1038
+ | **`isCompleted`** | <code>boolean</code> | 7.1.0 |
1039
+ | **`startDate`** | <code>number</code> | 7.1.0 |
1040
+ | **`dueDate`** | <code>number</code> | 7.1.0 |
1041
+ | **`completionDate`** | <code>number</code> | 7.1.0 |
1042
+ | **`notes`** | <code>string</code> | 7.1.0 |
1043
+ | **`url`** | <code>string</code> | 7.1.0 |
1044
+ | **`location`** | <code>string</code> | 7.1.0 |
1045
+ | **`recurrence`** | <code><a href="#recurrencerule">RecurrenceRule</a></code> | 7.1.0 |
1046
+ | **`alerts`** | <code>number[]</code> | 7.1.0 |
1047
+
1048
+
1049
+ #### RecurrenceRule
1050
+
1051
+ | Prop | Type | Description | Since |
1052
+ | --------------- | ------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ----- |
1053
+ | **`frequency`** | <code><a href="#recurrencefrequency">RecurrenceFrequency</a></code> | | 7.1.0 |
1054
+ | **`interval`** | <code>number</code> | How often it repeats (e.g. 1 for every occurrence, 2 for every second occurrence). | 7.1.0 |
1055
+ | **`end`** | <code>number</code> | Timestamp of when the recurrence ends. | 7.1.0 |
1056
+
1057
+
1058
+ #### DeleteRemindersByIdResult
1059
+
1060
+ | Prop | Type | Since |
1061
+ | ------------- | --------------------- | ----- |
1062
+ | **`deleted`** | <code>string[]</code> | 7.1.0 |
1063
+ | **`failed`** | <code>string[]</code> | 7.1.0 |
618
1064
 
619
- Represents an event in the calendar.
620
-
621
- | Prop | Type |
622
- | ---------------------- | ------------------------------------------------------ |
623
- | **`id`** | <code>string</code> |
624
- | **`title`** | <code>string</code> |
625
- | **`location`** | <code>string</code> |
626
- | **`eventColor`** | <code>string</code> |
627
- | **`organizer`** | <code>string</code> |
628
- | **`description`** | <code>string</code> |
629
- | **`startDate`** | <code>number</code> |
630
- | **`endDate`** | <code>number</code> |
631
- | **`eventTimezone`** | <code>{ region: string; abbreviation: string; }</code> |
632
- | **`eventEndTimezone`** | <code>{ region: string; abbreviation: string; }</code> |
633
- | **`duration`** | <code>string</code> |
634
- | **`isAllDay`** | <code>boolean</code> |
635
- | **`calendarId`** | <code>string</code> |
636
- | **`url`** | <code>string</code> |
1065
+
1066
+ #### DeleteRemindersByIdOptions
1067
+
1068
+ | Prop | Type | Since |
1069
+ | --------- | --------------------- | ----- |
1070
+ | **`ids`** | <code>string[]</code> | 7.1.0 |
1071
+
1072
+
1073
+ #### DeleteReminderOptions
1074
+
1075
+ | Prop | Type | Since |
1076
+ | -------- | ------------------- | ----- |
1077
+ | **`id`** | <code>string</code> | 7.1.0 |
1078
+
1079
+
1080
+ #### ModifyReminderOptions
1081
+
1082
+ | Prop | Type | Since |
1083
+ | -------------------- | --------------------------------------------------------- | ----- |
1084
+ | **`id`** | <code>string</code> | 7.1.0 |
1085
+ | **`title`** | <code>string</code> | 7.1.0 |
1086
+ | **`listId`** | <code>string</code> | 7.1.0 |
1087
+ | **`priority`** | <code>number</code> | 7.1.0 |
1088
+ | **`isCompleted`** | <code>boolean</code> | 7.1.0 |
1089
+ | **`startDate`** | <code>number</code> | 7.1.0 |
1090
+ | **`dueDate`** | <code>number</code> | 7.1.0 |
1091
+ | **`completionDate`** | <code>number</code> | 7.1.0 |
1092
+ | **`notes`** | <code>string</code> | 7.1.0 |
1093
+ | **`url`** | <code>string</code> | 7.1.0 |
1094
+ | **`location`** | <code>string</code> | 7.1.0 |
1095
+ | **`recurrence`** | <code><a href="#recurrencerule">RecurrenceRule</a></code> | 7.1.0 |
1096
+ | **`alerts`** | <code>number[]</code> | 7.1.0 |
637
1097
 
638
1098
 
639
1099
  #### Reminder
640
1100
 
641
- Represents a reminder in a reminders list.
1101
+ | Prop | Type | Since |
1102
+ | -------------------- | ----------------------------- | ----- |
1103
+ | **`id`** | <code>string</code> | 7.1.0 |
1104
+ | **`title`** | <code>string \| null</code> | 7.1.0 |
1105
+ | **`listId`** | <code>string \| null</code> | 7.1.0 |
1106
+ | **`isCompleted`** | <code>boolean</code> | 7.1.0 |
1107
+ | **`priority`** | <code>number \| null</code> | 7.1.0 |
1108
+ | **`notes`** | <code>string \| null</code> | 7.1.0 |
1109
+ | **`location`** | <code>string \| null</code> | 7.1.0 |
1110
+ | **`url`** | <code>string \| null</code> | 7.1.0 |
1111
+ | **`startDate`** | <code>number \| null</code> | 7.1.0 |
1112
+ | **`dueDate`** | <code>number \| null</code> | 7.1.0 |
1113
+ | **`completionDate`** | <code>number \| null</code> | 7.1.0 |
1114
+ | **`recurrence`** | <code>RecurrenceRule[]</code> | 7.1.0 |
1115
+ | **`alerts`** | <code>number[]</code> | 7.1.0 |
1116
+
1117
+
1118
+ #### GetReminderByIdOptions
1119
+
1120
+ | Prop | Type | Since |
1121
+ | -------- | ------------------- | ----- |
1122
+ | **`id`** | <code>string</code> | 7.1.0 |
642
1123
 
643
- | Prop | Type |
644
- | -------------------- | ------------------------------------- |
645
- | **`id`** | <code>string</code> |
646
- | **`title`** | <code>string</code> |
647
- | **`listId`** | <code>string</code> |
648
- | **`isCompleted`** | <code>boolean</code> |
649
- | **`priority`** | <code>number</code> |
650
- | **`notes`** | <code>string</code> |
651
- | **`location`** | <code>string</code> |
652
- | **`url`** | <code>string</code> |
653
- | **`startDate`** | <code>number</code> |
654
- | **`dueDate`** | <code>number</code> |
655
- | **`completionDate`** | <code>number</code> |
656
- | **`recurrence`** | <code>ReminderRecurrenceRule[]</code> |
1124
+
1125
+ #### GetRemindersFromListsOptions
1126
+
1127
+ | Prop | Type | Since |
1128
+ | ------------- | --------------------- | ----- |
1129
+ | **`listIds`** | <code>string[]</code> | 7.1.0 |
1130
+
1131
+
1132
+ #### DeleteReminderWithPromptOptions
1133
+
1134
+ | Prop | Type | Description | Default | Since |
1135
+ | ----------------------- | ------------------- | ----------------------------------- | --------------------- | ----- |
1136
+ | **`id`** | <code>string</code> | | | 7.2.0 |
1137
+ | **`title`** | <code>string</code> | Title of the dialog. | | 7.2.0 |
1138
+ | **`message`** | <code>string</code> | Message of the dialog. | | 7.2.0 |
1139
+ | **`confirmButtonText`** | <code>string</code> | Text to show on the confirm button. | <code>'Delete'</code> | 7.2.0 |
1140
+ | **`cancelButtonText`** | <code>string</code> | Text to show on the cancel button. | <code>'Cancel'</code> | 7.2.0 |
657
1141
 
658
1142
 
659
1143
  ### Type Aliases
@@ -664,9 +1148,9 @@ Represents a reminder in a reminders list.
664
1148
  <code>'prompt' | 'prompt-with-rationale' | 'granted' | 'denied'</code>
665
1149
 
666
1150
 
667
- #### PluginPermissionsMap
1151
+ #### CheckAllPermissionsResult
668
1152
 
669
- <code><a href="#record">Record</a>&lt;string, <a href="#permissionstate">PermissionState</a>&gt;</code>
1153
+ <code><a href="#record">Record</a>&lt; <a href="#calendarpermissionscope">CalendarPermissionScope</a>, <a href="#permissionstate">PermissionState</a> &gt;</code>
670
1154
 
671
1155
 
672
1156
  #### Record
@@ -676,6 +1160,16 @@ Construct a type with a set of properties K of type T
676
1160
  <code>{
677
1161
  [P in K]: T;
678
1162
  }</code>
679
1163
 
680
1164
 
1165
+ #### RequestAllPermissionsResult
1166
+
1167
+ <code><a href="#checkallpermissionsresult">CheckAllPermissionsResult</a></code>
1168
+
1169
+
1170
+ #### EventEditAction
1171
+
1172
+ <code>"canceled" | "saved" | "deleted"</code>
1173
+
1174
+
681
1175
  #### RemindersList
682
1176
 
683
1177
  <code><a href="#calendar">Calendar</a></code>
@@ -684,82 +1178,136 @@ Construct a type with a set of properties K of type T
684
1178
  ### Enums
685
1179
 
686
1180
 
687
- #### PluginPermission
1181
+ #### CalendarPermissionScope
688
1182
 
689
- | Members | Value | Description |
690
- | --------------------- | ----------------------------- | ------------------------------------------------------ |
691
- | **`READ_CALENDAR`** | <code>"readCalendar"</code> | Represents the permission state for reading calendar. |
692
- | **`WRITE_CALENDAR`** | <code>"writeCalendar"</code> | Represents the permission state for writing calendar. |
693
- | **`READ_REMINDERS`** | <code>"readReminders"</code> | Represents the permission state for reading reminders. |
694
- | **`WRITE_REMINDERS`** | <code>"writeReminders"</code> | Represents the permission state for writing reminders. |
1183
+ | Members | Value | Description | Since | Platform |
1184
+ | --------------------- | ----------------------------- | ------------------------------------------------------------ | ----- | ------------ |
1185
+ | **`READ_CALENDAR`** | <code>"readCalendar"</code> | Permission required for reading calendar events. | 7.1.0 | Android, iOS |
1186
+ | **`READ_REMINDERS`** | <code>"readReminders"</code> | Permission required for reading reminders. | 7.1.0 | iOS |
1187
+ | **`WRITE_CALENDAR`** | <code>"writeCalendar"</code> | Permission required for adding or modifying calendar events. | 7.1.0 | Android, iOS |
1188
+ | **`WRITE_REMINDERS`** | <code>"writeReminders"</code> | Permission required for adding or modifying reminders. | 7.1.0 | iOS |
695
1189
 
696
1190
 
697
- #### CalendarType
1191
+ #### EventAvailability
698
1192
 
699
- | Members | Description |
700
- | ------------------ | ---------------------------------------------------------- |
701
- | **`LOCAL`** | This calendar is sync'd from either Mobile Me or tethered. |
702
- | **`CAL_DAV`** | This calendar is from a CalDAV server. |
703
- | **`EXCHANGE`** | This calendar comes from an Exchange server. |
704
- | **`SUBSCRIPTION`** | This is a locally subscribed calendar. |
705
- | **`BIRTHDAY`** | This is the built-in birthday calendar. |
1193
+ | Members | Value | Since | Platform |
1194
+ | ------------------- | --------------- | ----- | ------------ |
1195
+ | **`NOT_SUPPORTED`** | <code>-1</code> | 7.1.0 | iOS |
1196
+ | **`BUSY`** | | 7.1.0 | Android, iOS |
1197
+ | **`FREE`** | | 7.1.0 | Android, iOS |
1198
+ | **`TENTATIVE`** | | 7.1.0 | Android, iOS |
1199
+ | **`UNAVAILABLE`** | | 7.1.0 | iOS |
706
1200
 
707
1201
 
708
- #### CalendarSourceType
1202
+ #### EventSpan
709
1203
 
710
- | Members | Description |
711
- | ---------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
712
- | **`LOCAL`** | Calendars that are stored locally on the device. These calendars are not synced with any external service. |
713
- | **`EXCHANGE`** | Calendars that are associated with an Exchange server. Exchange is a popular calendar and email service used by many enterprises. |
714
- | **`CAL_DAV`** | Calendars that use the CalDAV protocol for synchronization. This includes calendars from services like Google <a href="#calendar">Calendar</a> and Yahoo <a href="#calendar">Calendar</a>. |
715
- | **`MOBILE_ME`** | Calendars that were previously associated with MobileMe, Apple's cloud service before iCloud. This source type is largely obsolete now. |
716
- | **`SUBSCRIBED`** | Calendars that the user has subscribed to. These are read-only calendars that can be added by subscribing to a calendar URL. |
717
- | **`BIRTHDAYS`** | The built-in Birthdays calendar, which shows birthdays of contacts from the user's address book. This calendar is typically read-only and is managed by the system. |
1204
+ | Members | Since |
1205
+ | ---------------------------- | ----- |
1206
+ | **`THIS_EVENT`** | 7.1.0 |
1207
+ | **`THIS_AND_FUTURE_EVENTS`** | 7.1.0 |
718
1208
 
719
1209
 
720
- #### CalendarChooserDisplayStyle
1210
+ #### EventStatus
721
1211
 
722
- | Members | Description |
723
- | ----------------------------- | -------------------------------------------------------- |
724
- | **`ALL_CALENDARS`** | Display all calendars available for selection. |
725
- | **`WRITABLE_CALENDARS_ONLY`** | Display only writable calendars available for selection. |
1212
+ | Members | Value | Since | Platform |
1213
+ | --------------- | ------------------------ | ----- | ------------ |
1214
+ | **`NONE`** | <code>"none"</code> | 7.1.0 | iOS |
1215
+ | **`CONFIRMED`** | <code>"confirmed"</code> | 7.1.0 | Android, iOS |
1216
+ | **`TENTATIVE`** | <code>"tentative"</code> | 7.1.0 | Android, iOS |
1217
+ | **`CANCELED`** | <code>"canceled"</code> | 7.1.0 | Android, iOS |
726
1218
 
727
1219
 
728
- #### CalendarChooserSelectionStyle
1220
+ #### AttendeeRole
729
1221
 
730
- | Members | Description |
731
- | -------------- | ------------------------------------------------------- |
732
- | **`SINGLE`** | Allows only a single selection in the calendar chooser. |
733
- | **`MULTIPLE`** | Allows multiple selections in the calendar chooser. |
1222
+ | Members | Value | Since | Platform |
1223
+ | --------------------- | ----------------------------- | ----- | ------------ |
1224
+ | **`UNKNOWN`** | <code>"unknown"</code> | 7.1.0 | Android, iOS |
1225
+ | **`REQUIRED`** | <code>"required"</code> | 7.1.0 | iOS |
1226
+ | **`OPTIONAL`** | <code>"optional"</code> | 7.1.0 | iOS |
1227
+ | **`CHAIR`** | <code>"chair"</code> | 7.1.0 | iOS |
1228
+ | **`NON_PARTICIPANT`** | <code>"nonParticipant"</code> | 7.1.0 | Android, iOS |
1229
+ | **`ATTENDEE`** | <code>"attendee"</code> | 7.1.0 | Android |
1230
+ | **`ORGANIZER`** | <code>"organizer"</code> | 7.1.0 | Android |
1231
+ | **`PERFORMER`** | <code>"performer"</code> | 7.1.0 | Android |
1232
+ | **`SPEAKER`** | <code>"speaker"</code> | 7.1.0 | Android |
734
1233
 
735
1234
 
736
- #### ReminderRecurrenceFrequency
1235
+ #### AttendeeStatus
737
1236
 
738
- | Members | Description |
739
- | ------------- | --------------------------------------- |
740
- | **`DAILY`** | The reminder repeats on a daily basis |
741
- | **`WEEKLY`** | The reminder repeats on a weekly basis |
742
- | **`MONTHLY`** | The reminder repeats on a monthly basis |
743
- | **`YEARLY`** | The reminder repeats on a yearly basis |
1237
+ | Members | Value | Since | Platform |
1238
+ | ---------------- | ------------------------ | ----- | ------------ |
1239
+ | **`NONE`** | <code>"none"</code> | 7.1.0 | Android |
1240
+ | **`ACCEPTED`** | <code>"accepted"</code> | 7.1.0 | Android, iOS |
1241
+ | **`DECLINED`** | <code>"declined"</code> | 7.1.0 | Android, iOS |
1242
+ | **`INVITED`** | <code>"invited"</code> | 7.1.0 | Android |
1243
+ | **`UNKNOWN`** | <code>"unknown"</code> | 7.1.0 | iOS |
1244
+ | **`PENDING`** | <code>"pending"</code> | 7.1.0 | iOS |
1245
+ | **`TENTATIVE`** | <code>"tentative"</code> | 7.1.0 | Android, iOS |
1246
+ | **`DELEGATED`** | <code>"delegated"</code> | 7.1.0 | iOS |
1247
+ | **`COMPLETED`** | <code>"completed"</code> | 7.1.0 | iOS |
1248
+ | **`IN_PROCESS`** | <code>"inProcess"</code> | 7.1.0 | iOS |
744
1249
 
745
1250
 
746
- #### EventSpan
1251
+ #### AttendeeType
747
1252
 
748
- | Members | Description |
749
- | ---------------------------- | --------------------------------------------------------------------------------------------- |
750
- | **`THIS_EVENT`** | The modifications should only be applied to this event. |
751
- | **`THIS_AND_FUTURE_EVENTS`** | The modifications to this event should also be applied to the future instances of this event. |
1253
+ | Members | Value | Since | Platform |
1254
+ | -------------- | ----------------------- | ----- | ------------ |
1255
+ | **`UNKNOWN`** | <code>"unknown"</code> | 7.1.0 | Android, iOS |
1256
+ | **`PERSON`** | <code>"person"</code> | 7.1.0 | iOS |
1257
+ | **`ROOM`** | <code>"room"</code> | 7.1.0 | iOS |
1258
+ | **`RESOURCE`** | <code>"resource"</code> | 7.1.0 | Android, iOS |
1259
+ | **`GROUP`** | <code>"group"</code> | 7.1.0 | iOS |
1260
+ | **`REQUIRED`** | <code>"required"</code> | 7.1.0 | Android |
1261
+ | **`NONE`** | <code>"none"</code> | 7.1.0 | Android |
1262
+ | **`OPTIONAL`** | <code>"optional"</code> | 7.1.0 | Android |
752
1263
 
753
- </docgen-api>
754
1264
 
755
- ## Changelog
1265
+ #### CalendarType
1266
+
1267
+ | Members | Since |
1268
+ | ------------------ | ----- |
1269
+ | **`LOCAL`** | 7.1.0 |
1270
+ | **`CAL_DAV`** | 7.1.0 |
1271
+ | **`EXCHANGE`** | 7.1.0 |
1272
+ | **`SUBSCRIPTION`** | 7.1.0 |
1273
+ | **`BIRTHDAY`** | 7.1.0 |
756
1274
 
757
- See [CHANGELOG.md](CHANGELOG.md)
1275
+
1276
+ #### CalendarSourceType
1277
+
1278
+ | Members | Since |
1279
+ | ---------------- | ----- |
1280
+ | **`LOCAL`** | 7.1.0 |
1281
+ | **`EXCHANGE`** | 7.1.0 |
1282
+ | **`CAL_DAV`** | 7.1.0 |
1283
+ | **`MOBILE_ME`** | 7.1.0 |
1284
+ | **`SUBSCRIBED`** | 7.1.0 |
1285
+ | **`BIRTHDAYS`** | 7.1.0 |
1286
+
1287
+
1288
+ #### CalendarChooserDisplayStyle
1289
+
1290
+ | Members | Since |
1291
+ | ----------------------------- | ----- |
1292
+ | **`ALL_CALENDARS`** | 0.2.0 |
1293
+ | **`WRITABLE_CALENDARS_ONLY`** | 0.2.0 |
1294
+
1295
+
1296
+ #### RecurrenceFrequency
1297
+
1298
+ | Members | Since |
1299
+ | ------------- | ----- |
1300
+ | **`DAILY`** | 7.1.0 |
1301
+ | **`WEEKLY`** | 7.1.0 |
1302
+ | **`MONTHLY`** | 7.1.0 |
1303
+ | **`YEARLY`** | 7.1.0 |
1304
+
1305
+ </docgen-api>
758
1306
 
759
1307
  ## Contributing
760
1308
 
761
- See [CONTRIBUTING.md](CONTRIBUTING.md)
1309
+ See [CONTRIBUTING.md](CONTRIBUTING.md) for guidelines.
762
1310
 
763
1311
  ## License
764
1312
 
765
- See [LICENSE.txt](LICENSE.txt)
1313
+ This project is licensed under the **MIT License**. See [LICENSE](LICENSE) for details.