Platforms to show: All Mac Windows Linux Cross-Platform

EKCalendarItemMBS class

Superclass: EKObjectMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
class Calendar MBS Mac64bit Plugin 15.3 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
The class for a calendar item.
Example
// add a 15 minute reminder alarm to the next event today and save it
// The app needs calendar access, see EKEventStoreMBS.requestAccessToEntityType.
// ev is an EKEventMBS (a subclass of EKCalendarItemMBS) from your EKEventStoreMBS
Var store As New EKEventStoreMBS
Var ev As EKEventMBS // your event
If ev = Nil Then Return

Var item As EKCalendarItemMBS = ev
item.addAlarm EKAlarmMBS.alarmWithRelativeOffset(-15 * 60) // seconds before start
item.notes = "Bring the slides."
System.DebugLog item.title + " at " + item.location + ", alarms: " + item.hasAlarms.ToString

Var error As NSErrorMBS
If Not store.saveEvent(ev, EKEventStoreMBS.kSpanThisEvent, error) Then MessageBox error.localizedDescription

The EKCalendarItem class is a an abstract superclass for calendar events and reminders. This class provides common properties and methods for accessing properties of calendar items such as the ability to set the calendar, title, and location as well as support for attaching notes, displaying attendees, setting multiple alarms, and specifying recurrence rules.
Subclass of the EKObjectMBS class.
This is a subclass of an abstract class. You can't create an instance, but you can get one from various plugin functions.

Superclass EKObjectMBS

Sub classes:

Some methods using this class:

Some related classes:


The items on this page are in the following plugins: MBS Mac64bit Plugin.


EKAlarmMBS   -   EKCalendarMBS


The biggest plugin in space...