Questions tagged [eventkit]

EventKit is a framework on iOS and OS X which provides classes for accessing and modifying calendar event information.

From the documentation:

The Event Kit and Event Kit UI frameworks together allow applications to access event information from a user’s Calendar database. You can fetch events based on a date range or a unique identifier, receive notifications when event records change, and allow users to create and edit events for any of their calendars. Changes made to events in a user’s Calendar database with Event Kit are automatically synced with the appropriate calendar (CalDAV, Exchange, and so on)

The EventKit framework provides classes for accessing and manipulating calendar events and reminders.

Event Kit not only allows your app to retrieve users’ existing calendar and reminder data, but it also lets your app create new events and reminders for any of their calendars. In addition, Event Kit lets users edit and delete their events and reminders (collectively known as “calendar items”). More advanced tasks, such as adding alarms or specifying recurring events, can be achieved with Event Kit as well. If a change to the Calendar database occurs from outside of your app, Event Kit is able to detect the change by notification so your app can act appropriately. Changes made to calendar items with Event Kit are automatically synced to the associated calendar (CalDAV, Exchange, and so on).

Event Kit provides limited access to a user’s Calendar database; it does not include everything that would be desired for implementing a full-featured calendar or reminder app, such as adding attendees or accounts.

Reference:

1.EventKit Constants Reference

2.EventKit Framework Reference

3.Introduction to Calendars and Reminders

4.EventKit UI Framework Reference

Sample Code:

SimpleEKDemo

567 questions
4
votes
3 answers

How to access an EKCalendar's `account` property

Take a look at the documentation for EKCalendar. It's pretty simple, it has five properties, only one of which is a string called title. Now if you have multiple calendars on your iPhone and you open iCal's Calendar settings, you can see that all…
epologee
  • 11,229
  • 11
  • 68
  • 104
4
votes
0 answers

How to get access to Calendar events for a macOS command line tool in Swift 5 / Xcode 11

I want to write a command line tool in Swift 5 for macOS that adds events to the calendar. How do I give the app permission to access the calendar(s)? All the docs I've found are for GUI apps with access to an info.plist and a string to display to…
MACE
  • 237
  • 3
  • 11
4
votes
2 answers

Retrieving account information for an EKCalendar

I am using EventKit in my app and would like to find out what account a calendar belongs to. The iPhone Calendar app shows all calendars grouped by account, with the account name for instance 'myname@me.com', or 'Gmail myname'. Where can I get those…
Thomas Müller
  • 15,565
  • 6
  • 41
  • 47
4
votes
1 answer

EKEventEditViewController is presented with a disabled Add button

The problem I'm presenting a EKEventEditViewController view with some predefined information. If the user doesn't want to change this information, he should be able to tap Add to add the event to the calendar. The problem is, the Add button is…
Marcos Tanaka
  • 3,112
  • 3
  • 25
  • 41
4
votes
2 answers

Snooze method in EventKit Framework?

I am able to access all functionality of EKEventStore like save any event or remove any event from Calendar. But how can create snooze for that event lets say 15 min snooze i needed for all saveEvent ? I didn't find out as such method Anyone know…
Tariq
  • 9,861
  • 12
  • 62
  • 103
4
votes
2 answers

Is there any way to add identifier or tag custom event added in iCal?

I am setting a reminder in my app. I have added a custom event using EKEvent to iCal. Now when I retrieve events from iCal I get all the events present on that day. Is there any way to get/retrieve events added through my app only, I tried…
krusty
  • 41
  • 5
4
votes
1 answer

How can I display the details of a EKEvent invitation within my app using EKEventViewController?

BRIEF SUMMARY I want the users of my app to be able to accept/decline an event invitation of their calendar. For this I am trying to bring up the event using EventKitUI components and allow the user to update the event without leaving my app. The…
PMT
  • 1,082
  • 8
  • 18
4
votes
5 answers

iPhone: How to detect if an EKEvent instance can be modified?

While working with the EventKit on iPhone I noticed that some events can exist which cannot be modified. Examples I encountered so far are birthdays and events synced with CalDAV. When you view the event's details in the standard built-in calendar…
Tom van Zummeren
  • 9,130
  • 12
  • 52
  • 63
4
votes
1 answer

Do calendar app notes support HTML such as iOS, Android, Google?

My app integrates with iOS and Android calendar API's and I include links in the notes. Currently I just use long URL's and the iOS app for example links them. However, they are unsightly to the user. It would be better to have linked text i.e.…
Neal
  • 9,487
  • 15
  • 58
  • 101
4
votes
1 answer

How to handle masks (enums) in Swift 2.0?

For example in EventKit there is a property on EKCalendar called supportedEventAvailabilities which is of type EKCalendarEventAvailabilityMask. It is a mask of all the supported event availabilities. I know you could theoretically set them like this…
Tom van Zummeren
  • 9,130
  • 12
  • 52
  • 63
4
votes
0 answers

iPhone calendar app's Time Zone Override setting. Can I read it?

I am making a calendar app and want to support Time Zone Override. I know how to do it manually, but I'm wondering if there's any way I can get the setting user has chosen for iOS calendar app's Time Zone Override because I simply want to use the…
tsuyoski
  • 614
  • 5
  • 22
4
votes
0 answers

EKReminder: Reminder with alarm not appearing in NotificationCenter

I tried to add an alarm (EKAlarm) to a reminder (EKReminder). Almost everything works fine: The reminder is added in the "Reminders.app" and gets fired at the right time. But somehow (in contrast to a manually created reminder) the firing date/time…
Luca
  • 163
  • 1
  • 5
4
votes
2 answers

Getting a rsvp response from a created .ics file

I’m working on an OSX app where I want to create calendar events, add some attendees, add the event to the user Calendar, and send an invitation to the attendees. First I thought I could use the Eventkit framework, but for some reason you can’t add…
Steffen Andersen
  • 203
  • 4
  • 10
4
votes
1 answer

How to use requestAccessToEntityType method in Swift iOS 8

I'm trying to get a list of events by using EKEventStore using Swift in iOS8, and the documentation is not updated yet as far as I can tell. This is what I'm trying to do: let eventStore = …
shila
  • 95
  • 2
  • 9
4
votes
1 answer

How to identify if an EKEvent has an EKParticipationStatus of pending (Not yet accepted)?

I have already tried the if ([event participationStatus] == EKParticipantStatusPending) and it is working. But the participationStatus of the EKEvent is not exposed and I'm afraid to use it as maybe it will result in a rejection because of a…
Raymond Brion
  • 332
  • 1
  • 10