Platforms to show: All Mac Windows Linux Cross-Platform

EKCalendarMBS 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
An instance of the EKCalendar class represents a calendar in Event Kit.
Example
// list all calendars for events with their colors
// The app needs calendar access, see EKEventStoreMBS.requestAccessToEntityType.
Var store As New EKEventStoreMBS
Var lines() As String

For Each cal As EKCalendarMBS In store.calendarsForEntityType(EKEventStoreMBS.kEntityTypeEvent)
Var line As String = cal.title
If Not cal.allowsContentModifications Then line = line + " (read only)"
lines.Add line
Next

MessageBox String.FromArray(lines, EndOfLine)

Use the properties in this class to get attributes about a calendar, such as its title and type. Use the calendarForEntityType method to create a calendar object.
Subclass of the EKObjectMBS class.

Entity Mask

Constant Value Description
kEntityMaskEvent 1 Event
kEntityMaskReminder 2 Reminder

Types

Constant Value Description
kEntityTypeEvent 0 Entity Event
kEntityTypeReminder 1 Entity Reminder

Event Availabilities

Constant Value Description
kEventAvailabilityBusy 1 Busy
kEventAvailabilityFree 2 Free
kEventAvailabilityNone 0 Not available
kEventAvailabilityTentative 4 Tentative
kEventAvailabilityUnavailable 8 Unavailable

Calendar Types

Constant Value Description
kTypeBirthday 4 A birthday calendar.
kTypeCalDAV 1 A CalDAV or iCloud calendar.
kTypeExchange 2 An Exchange calendar.
kTypeLocal 0 A local calendar.
kTypeSubscription 3 A locally subscribed calendar.

Superclass EKObjectMBS

This class has no subclasses.

Blog Entries

Release notes

  • Version 19.5
    • Fixed Constructor for EKCalendarMBS class to not complain about missing EKReminder class.

Some methods using this class:

Some properties using this class:

Some examples using this class:

Some related classes:


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


EKCalendarItemMBS   -   EKEventMBS


The biggest plugin in space...