TechnologiesFoundation, System & Concurrency

EventKit

iOSmacOStvOSwatchOSvisionOS

EventKit creates, accesses, and edits calendar events and reminders stored in the Calendar and Reminders databases, and delivers change notifications when that data is modified. You work through an EKEventStore to fetch and save EKEvent and EKReminder items, which inherit shared properties from EKCalendarItem, and organize them within an EKCalendar drawn from an EKSource. The framework models the details of scheduling, including EKAlarm reminders, recurrence through EKRecurrenceRule and EKRecurrenceEnd, attendees represented by EKParticipant, and authorization state via EKAuthorizationStatus and EKEntityType.

Essentials 2

The central store and base type for accessing and saving calendar and reminder data.

  • Cl
    EKEventStoremacOS 10.8+
    @class EKEventStore
  • Cl
    EKObjectmacOS 10.8+
    An abstract base class for EventKit model objects.

Calendar Items 3

The shared item type and its concrete event and reminder subclasses.

  • Cl
    EKCalendarItemmacOS 10.8+
    An abstract base class for events and reminders that defines their shared properties.
  • Cl
    EKEventmacOS 10.8+
    @class EKEvent
  • Cl
    EKRemindermacOS 10.8+
    @class EKReminder

Calendars and Sources 4

The calendars that contain items and the accounts that back them.

  • Cl
    EKCalendarmacOS 10.8+
    @class EKCalendar
  • Cl
    EKSourcemacOS 10.8+
    An object that represents an account, such as iCloud or Exchange, that provides calendars.
  • En
    EKCalendarType
    @enum EKCalendarType
  • En
    EKSourceType
    Constants that specify the type of a source, such as local, Exchange, or iCloud.

Alarms and Locations 4

Reminders triggered by time or location and the places they reference.

  • Cl
    EKAlarmmacOS 10.8+
    @class EKAlarm
  • Cl
    EKStructuredLocationmacOS 10.8+
    An object that represents a geographic location associated with an event or alarm.
  • En
    EKAlarmProximity
    @enum EKAlarmProximity
  • En
    EKAlarmType
    @enum EKAlarmType

Recurrence 4

Rules and components that describe how events and reminders repeat over time.

  • Cl
    EKRecurrenceRulemacOS 10.8+
    @class EKRecurrenceRule
  • Cl
    EKRecurrenceEndmacOS 10.8+
    @class EKRecurrenceEnd
  • Cl
    EKRecurrenceDayOfWeekmacOS 10.8+
    @class EKRecurrenceDayOfWeek
  • En
    EKRecurrenceFrequency
    @enum EKRecurrenceFrequency

Participants 5

The people invited to an event and their roles, types, and response status.

  • Cl
    EKParticipantmacOS 10.8+
    @class EKParticipant
  • En
    EKParticipantType
    @enum EKParticipantType
  • En
    EKParticipantRole
    @enum EKParticipantRole
  • En
    EKParticipantStatus
    @enum EKParticipantStatus
  • En
    EKParticipantScheduleStatus
    @enum EKParticipantScheduleStatus

Virtual Conferences 4

Descriptors and providers that attach video-conferencing details to events.

  • Cl
    EKVirtualConferenceProvidermacOS 12.0+
    @class EKVirtualConferenceProvider
  • Cl
    EKVirtualConferenceDescriptormacOS 12.0+
    @class EKVirtualConferenceDescriptor
  • Cl
    EKVirtualConferenceURLDescriptormacOS 12.0+
    @class EKVirtualConferenceURLDescriptor
  • Cl
    EKVirtualConferenceRoomTypeDescriptormacOS 12.0+
    @class EKVirtualConferenceRoomTypeDescriptor

Authorization and Entity Types 3

Values that describe access permission and the kinds of data EventKit manages.

  • En
    EKAuthorizationStatusmacOS 10.9+
    @enum EKAuthorizationStatus
  • En
    EKEntityType
    @enum EKEntityType
  • St
    EKEntityMask
    @enum EKEntityMask

Event Properties and Status 5

Values that describe an event's availability, status, and edit span.

  • En
    EKEventAvailability
    Constants that specify the availability of an event, such as busy or free.
  • En
    EKEventStatus
    Constants that specify the status of an event, such as confirmed or canceled.
  • En
    EKSpan
    @enum EKSpan
  • St
    EKCalendarEventAvailabilityMask
    An option set that specifies the availability values a calendar supports for events.
  • En
    EKReminderPriority
    @enum EKReminderPriority

Errors 1

The error type reported by EventKit operations.

  • St
    EKError
    An error that EventKit reports when an operation fails.

Enumerations 1

  • En
    EKWeekday

Type Aliases 3

  • Ty
    EKEventSearchCallback
  • Ty
    EKEventStoreRequestAccessCompletionHandler
  • Ty
    EKVirtualConferenceRoomTypeIdentifier

Extends 2

NSNotificationNotificationCenter
← Foundation, System & Concurrency