addEvent(event, options)

Adds an event to the device’s calendar.

  • event—(Required) An Event object to be added to the device’s calendar.
  • options—(Required) A CalendarServiceOptions object 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