Warning: insert_event_async is deprecated since 0.17.2.
Inserts event by uploading it to the online calendar service.
Use insert_calendar_event_async instead to be able to specify the calendar to add the event to; otherwise the default calendar will be used.
this and event are both reffed when this function is called, so can safely be unreffed
after this function returns.
callback should call insert_entry_async.end to obtain a
CalendarEvent representing the inserted event and to check for possible errors.
For more details, see insert_event, which is the synchronous version of this function, and insert_entry_async, which is the base asynchronous insertion function.
| this | |
| event |
the CalendarEvent to insert |
| cancellable |
optional Cancellable object, or null |
| callback |
a TaskReadyCallback to call when insertion is finished |
| user_data |
data to pass to the |