addEvent(event, options)
Adds an event to the device’s calendar.
event—(Required) AnEventobject to be added to the device’s calendar.options—(Required) ACalendarServiceOptionsobject to configure the CalendarService request.
A Promise object that resolves as a coerced version of the Event parameter. If an error is encountered, an error message is returned.
Use this function to add an event to a device’s calendar.
For more information on when and why CalendarService coerces (changes) event data, see Implicit Data Coercion.
See Also