Event Kit Constants Reference

Framework
/System/Library/Frameworks/EventKit.framework
Companion guide
Declared in
EKError.h

Overview

This document defines constants in the Event Kit framework that are not associated with a particular class.

Constants

Event Kit Error Domains

Values that are returned as the error domain property of an NSError object.

NSString *const EKErrorDomain;
Constants
EKErrorDomain

Event Kit errors.

Available in iOS 4.0 and later.

Declared in EKError.h.

Event Kit Error Codes

Values that are returned as the error code property of an NSError object.

typedef enum EKErrorCode {
   EKErrorEventNotMutable,
   EKErrorNoCalendar,
   EKErrorNoStartDate,
   EKErrorNoEndDate,
   EKErrorDatesInverted,
   EKErrorInternalFailure,
   EKErrorCalendarReadOnly,
   EKErrorDurationGreaterThanRecurrence,
   EKErrorAlarmGreaterThanRecurrence,
   EKErrorStartDateTooFarInFuture,
   EKErrorStartDateCollidesWithOtherOccurrence,
   EKErrorObjectBelongsToDifferentStore,
   EKErrorInvitesCannotBeMoved,
   EKErrorInvalidSpan,
   EKErrorCalendarHasNoSource,
   EKErrorCalendarSourceCannotBeModified,
   EKErrorCalendarIsImmutable,
   EKErrorSourceDoesNotAllowCalendarAddDelete,
   EKErrorRecurringReminderRequiresDueDate,
   EKErrorStructuredLocationsNotSupported,
   EKErrorReminderLocationsNotSupported,
   EKErrorAlarmProximityNotSupported,
   EKErrorCalendarDoesNotAllowEvents,
   EKErrorCalendarDoesNotAllowReminders,
   EKErrorSourceDoesNotAllowReminders,
};
Constants
EKErrorEventNotMutable

The event is not mutable and cannot be saved or deleted.

Available in iOS 4.0 and later.

Declared in EKError.h.

EKErrorNoCalendar

The event is not associated with a calendar.

Available in iOS 4.0 and later.

Declared in EKError.h.

EKErrorNoStartDate

The event has no start date set.

Available in iOS 4.0 and later.

Declared in EKError.h.

EKErrorNoEndDate

The event has no end date set.

Available in iOS 4.0 and later.

Declared in EKError.h.

EKErrorDatesInverted

The event’s end date occurs before its start date.

Available in iOS 4.0 and later.

Declared in EKError.h.

EKErrorInternalFailure

An internal error occurred.

Available in iOS 4.0 and later.

Declared in EKError.h.

EKErrorCalendarReadOnly

The calendar is read-only and cannot have events added to it.

Available in iOS 4.0 and later.

Declared in EKError.h.

EKErrorDurationGreaterThanRecurrence

The duration of an event is greater than its recurrence interval.

Available in iOS 4.0 and later.

Declared in EKError.h.

EKErrorAlarmGreaterThanRecurrence

The alarm interval is greater than the recurrence interval.

Available in iOS 4.0 and later.

Declared in EKError.h.

EKErrorStartDateTooFarInFuture

The start date is further into the future than the calendar can display.

Available in iOS 4.0 and later.

Declared in EKError.h.

EKErrorStartDateCollidesWithOtherOccurrence

The event’s start date collides with another occurrence of the event.

Available in iOS 4.0 and later.

Declared in EKError.h.

EKErrorObjectBelongsToDifferentStore

The object belongs to a different calendar store.

Available in iOS 4.0 and later.

Declared in EKError.h.

EKErrorInvitesCannotBeMoved

The event cannot be moved because it is an invite.

Available in iOS 4.0 and later.

Declared in EKError.h.

EKErrorInvalidSpan

An invalid span was passed when saving or deleting.

Available in iOS 4.2 and later.

Declared in EKError.h.

EKErrorCalendarHasNoSource

The calendar cannot be saved with no source set.

Available in iOS 5.0 and later.

Declared in EKError.h.

EKErrorCalendarSourceCannotBeModified

The calendar cannot be moved to another source.

Available in iOS 5.0 and later.

Declared in EKError.h.

EKErrorCalendarIsImmutable

The calendar is immutable and cannot be modified or deleted.

Available in iOS 5.0 and later.

Declared in EKError.h.

EKErrorSourceDoesNotAllowCalendarAddDelete

The source doesn’t allow calendars to be added or deleted.

Available in iOS 5.0 and later.

Declared in EKError.h.

EKErrorRecurringReminderRequiresDueDate

The recurring reminder requires a due date.

Available in iOS 6.0 and later.

Declared in EKError.h.

EKErrorStructuredLocationsNotSupported

The source to which this calendar belongs does not support structured locations.

Available in iOS 6.0 and later.

Declared in EKError.h.

EKErrorReminderLocationsNotSupported

The source doesn't support locations on reminders.

Available in iOS 6.0 and later.

Declared in EKError.h.

EKErrorAlarmProximityNotSupported

The source does not allow geofences on alarms.

Available in iOS 6.0 and later.

Declared in EKError.h.

EKErrorCalendarDoesNotAllowEvents

The calendar does not allow events to be added.

Available in iOS 6.0 and later.

Declared in EKError.h.

EKErrorCalendarDoesNotAllowReminders

The calendar does not allow reminders to be added.

Available in iOS 6.0 and later.

Declared in EKError.h.

EKErrorSourceDoesNotAllowReminders

The source does not allow calendars supporting reminder entity types.

Available in iOS 6.0 and later.

Declared in EKError.h.