/// <summary> /// Save new event though EventKit. /// </summary> /// <param name="title">Title of the event.</param> /// <param name="startDate">Start date of this event.</param> /// <param name="endDate">End date of this event.</param> /// <param name="callback"> /// This is callback that will be called from EventKit when user will give acccess or not to iOS calendar functionality. /// It shouldn't be null.</param> public void SaveEvent(string title, DateTime startDate, DateTime endDate, Action <ISN_EventKitSaveResult> callback) { Assert.IsNotNull(callback); ISN_EventKitDataRequest request = new ISN_EventKitDataRequest(title, startDate, endDate); ISN_EventKitLib.API.SaveEvent(callback, request, null, null); }
/// <summary> /// Save new event with alarm and recurrencerule though EventKit. /// </summary> /// <param name="title"> Title of the event.</param> /// <param name="startDate"> Start date of this event.</param> /// <param name="endDate"> End date of this event.></param> /// <param name="alarm"> Alarm that should be added to this event. </param> /// <param name="recurrenceRule"> The recurrence rule that should be added to this event.</param> /// <param name="callback"> /// This is callback that will be called from EventKit when user will give acccess or not to iOS calendar functionality. /// It shouldn't be null.</param> public void SaveEvent(string title, DateTime startDate, DateTime endDate, ISN_AlarmDataRequest alarm, ISN_RecurrenceRuleRequest recurrenceRule, Action <ISN_EventKitSaveResult> callback) { Assert.IsNotNull(callback); ISN_EventKitDataRequest request = new ISN_EventKitDataRequest(title, startDate, endDate); ISN_EventKitLib.API.SaveEvent(callback, request, alarm, recurrenceRule); }
/// <summary> /// Save new reminder though EventKit. /// </summary> /// <param name="title"> Title of the reminder.</param> /// <param name="callback"> /// This is callback that will be called from EventKit when user will give acccess or not to iOS calendar functionality. /// It shouldn't be null.</param> public void SaveReminder(string title, Action <ISN_EventKitSaveResult> callback) { Assert.IsNotNull(callback); ISN_EventKitDataRequest request = new ISN_EventKitDataRequest(title); ISN_EventKitLib.API.SaveReminder(callback, request, null, null); }