Events.Initialize
-----------------

Initializes EventKit and opens event store.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [Events](component_Events.md) | [6.2](newinversion62.md) | ✅ Yes | ❌ No | ❌ No | ❌ No | ✅ Yes |

MBS( "Events.Initialize"; Types ) 

**MBS**( **"Events.Initialize";** /\* Initializes EventKit and opens event store. \*/  
**$Types**) /\* What entitiy types to use.  
Can be "Events", "Reminder" or both.e.g. "Events, Reminders" \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| Types | What entitiy types to use.   Can be "Events", "Reminder" or both. | "Events, Reminders" |

### Result

Returns OK or error.

### Description

Initializes EventKit and opens event store.  
This is done internally automatically for reminders and events.  
You can here initialize it for only reminder or events.  
  
Users are able to grant or deny access to event and reminder data on a per-app basis. To request access to event and/or reminder data, instantiate an event store using this method. This call will not block the program while the user is being asked to grant or deny access. Until access has been granted for an entity type, this event store will not contain any calendars for that entity type, and any attempt to save entities of that entity type will fail. If access is later granted or declined, the event store will broadcast an notification. You can check the current access status for an entity type using [Events.AuthorizationStatusForEntityType](EventsAuthorizationStatusForEntityType.md). The user will only be prompted the first time access is requested; any subsequent instantiations of event store will use the existing permissions.  
### See also

- [EIDSDK.Initialize](EIDSDKInitialize.md)
- [Events.AuthorizationStatusForEntityType](EventsAuthorizationStatusForEntityType.md)

This function checks for a license.

Created 10th March 2016 , last changed 13th March 2016

  
[Events.IncompleteReminders](EventsIncompleteReminders.md) - [Events.Item.AddAlarm](EventsItemAddAlarm.md)

[HTML Version](EventsInitialize.shtml)