feat(calendar): add deleteEventById function (#3075)

* Update index.ts

Please add this function

* Update index.ts
This commit is contained in:
Wasenshi 2019-07-02 00:24:40 +07:00 committed by Daniel Sogl
parent 92d5764e01
commit 5857b9654c

View File

@ -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