@ebarooni/capacitor-calendar
Advanced tools
Comparing version 6.4.0 to 6.4.1
@@ -290,5 +290,5 @@ { | ||
"name": "getDefaultCalendar", | ||
"signature": "() => Promise<{ result: Calendar; }>", | ||
"signature": "() => Promise<{ result: Calendar | null; }>", | ||
"parameters": [], | ||
"returns": "Promise<{ result: Calendar; }>", | ||
"returns": "Promise<{ result: Calendar | null; }>", | ||
"tags": [ | ||
@@ -300,2 +300,6 @@ { | ||
{ | ||
"name": "since", | ||
"text": "0.3.0" | ||
}, | ||
{ | ||
"name": "platform", | ||
@@ -305,4 +309,8 @@ "text": "iOS, Android" | ||
{ | ||
"name": "permissions", | ||
"text": "<h3>Runtime Permissions:</h3>\n<ul>\n <li><strong>iOS:</strong> readCalendar</li>\n <li><strong>Android:</strong> readCalendar</li>\n</ul>" | ||
}, | ||
{ | ||
"name": "returns", | ||
"text": "A promise that resolves with the default calendar set on the device.\nThe returned calendar object contains an ID and a title." | ||
"text": "A promise that resolves with the default calendar set on the device.\nThe returned calendar object contains an ID and a title. Returns null if there is no default calendar found." | ||
}, | ||
@@ -309,0 +317,0 @@ { |
@@ -162,5 +162,12 @@ import { CalendarChooserDisplayStyle } from './schemas/enums/calendar-chooser-display-style'; | ||
* @method getDefaultCalendar | ||
* @since 0.3.0 | ||
* @platform iOS, Android | ||
* @returns {Promise<{ result: Calendar }>} A promise that resolves with the default calendar set on the device. | ||
* The returned calendar object contains an ID and a title. | ||
* @permissions | ||
* <h3>Runtime Permissions:</h3> | ||
* <ul> | ||
* <li><strong>iOS:</strong> readCalendar</li> | ||
* <li><strong>Android:</strong> readCalendar</li> | ||
* </ul> | ||
* @returns {Promise<{ result: Calendar | null }>} A promise that resolves with the default calendar set on the device. | ||
* The returned calendar object contains an ID and a title. Returns null if there is no default calendar found. | ||
* @example | ||
@@ -171,3 +178,3 @@ * const { result } = await getDefaultCalendar(); | ||
getDefaultCalendar(): Promise<{ | ||
result: Calendar; | ||
result: Calendar | null; | ||
}>; | ||
@@ -174,0 +181,0 @@ /** |
@@ -41,3 +41,3 @@ import { PermissionState, WebPlugin } from '@capacitor/core'; | ||
getDefaultCalendar(): Promise<{ | ||
result: Calendar; | ||
result: Calendar | null; | ||
}>; | ||
@@ -44,0 +44,0 @@ createEvent(_options: { |
{ | ||
"name": "@ebarooni/capacitor-calendar", | ||
"version": "6.4.0", | ||
"version": "6.4.1", | ||
"description": "The Capacitor Calendar Plugin enables full calendar functionality on iOS and Android, with added reminder support for iOS devices.", | ||
@@ -5,0 +5,0 @@ "main": "dist/plugin.cjs.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
279189
3255