Skip to content

Accessing the Event Store

levching edited this page Apr 15, 2020 · 3 revisions

Your app must obtain permission from the user before accessing the calendar database: an app must never directly modify the calendar database on its own. ISN_EKSaveResult is the application’s point of contact for accessing calendar and reminder data.

using SA.iOS.EventKit;

To receive event data in iOS, you must request access to an entity type by using ISN_EKSaveResult

EKEventStore.Instance.RequestAccessToEvent((request) =>
{
    if(request.IsSucceeded)
    {
        Debug.Log("We Initialized EventKit with event!");
    }
    else
    {
        Debug.Log("We have error at initialized EventKit with event- " + request.Error.FullMessage);
    }
});

for Events and

EKEventStore.Instance.RequestAccessToReminder((request) =>
{
    if(request.IsSucceeded)
    {
        Debug.Log("We Initialized EventKit with reminder!");
    }
    else
    {
        Debug.Log("We have error at initialized EventKit with reminder - " + request.Error.FullMessage);
    }
});

for Reminders.

This will show dialog window for user where he can give or denied access to ISN_EKSaveResult functionality for Events and Reminders. Text thay user will see you can set here:

AccessingtheEventStore

After all this you can use ISN_EKSaveResult functionality.

About

Foundation

AV Foundation

App Tracking Transparency

Game Kit

Store Kit

UI Kit

Social

Replay Kit

Contacts

AVKit

Photos

App Delegate

User Notifications

MediaPlayer

Core Location

AdSupport

EventKit

CloudKit

Authentication Services

XCode

Knowledge Base

Clone this wiki locally