Skip to content

Commit

Permalink
feat(calendar): add deleteEventById function (#3075)
Browse files Browse the repository at this point in the history
* Update index.ts

Please add this function

* Update index.ts
  • Loading branch information
Wasenshi123 authored and danielsogl committed Jul 1, 2019
1 parent 92d5764 commit 5857b96
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/@ionic-native/plugins/calendar/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<any> {
return;
}

/**
* Open the calendar at the specified date.
* @param {Date} date The date you want to open the calendar on
Expand Down

0 comments on commit 5857b96

Please sign in to comment.