Class

EKSource

An abstract superclass that represents the account a calendar belongs to.

Declaration

class EKSource : EKObject

Overview

You do not create instances of this class; instead, you retrieve EKSource objects from an EKEventStore object. Use the sources property to get all the EKSource objects for an event store, and use the methods in this class to access properties of the source object.

Topics

Accessing Source Properties

enum EKSourceType

The type of source object.

var sourceIdentifier: String

A unique identifier for the source object.

var sourceType: EKSourceType

The type of this source object.

var title: String

The name of this source object.

Accessing Calendars

func calendars(for: EKEntityType) -> Set<EKCalendar>

Returns the calendars that belong to this source object that support a particular entity type.

var calendars: Set<EKCalendar>

The calendars that belong to this source object.

Deprecated

Entity Type

enum EKEntityType

The type of entities allowed for a source.

Relationships

Inherits From

Conforms To

See Also

Common Objects

class EKCalendarItem

An abstract superclass for calendar events and reminders.

class EKObject

An abstract superclass for all Event Kit classes that have instances that are persistent.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software