From 5857b9654c4496e8fe02463bdc658e568bc9c581 Mon Sep 17 00:00:00 2001 From: Wasenshi Date: Tue, 2 Jul 2019 00:24:40 +0700 Subject: [PATCH] feat(calendar): add deleteEventById function (#3075) * Update index.ts Please add this function * Update index.ts --- src/@ionic-native/plugins/calendar/index.ts | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/src/@ionic-native/plugins/calendar/index.ts b/src/@ionic-native/plugins/calendar/index.ts index 7d055db3c..9186ab133 100644 --- a/src/@ionic-native/plugins/calendar/index.ts +++ b/src/@ionic-native/plugins/calendar/index.ts @@ -475,6 +475,21 @@ export class Calendar extends IonicNativePlugin { return; } + /** + * Delete an event by id. + * + * @param {string} [id] The event id + * @param {Date} [fromDate] The date where it start deleting from + * @return Returns a Promise + */ + @Cordova() + deleteEventById( + id: string, + fromDate?: Date + ): Promise { + return; + } + /** * Open the calendar at the specified date. * @param {Date} date The date you want to open the calendar on