---
title: EKEventStoreRequestAccessCompletionHandler
framework: eventkit
role: symbol
role_heading: Type Alias
path: eventkit/ekeventstorerequestaccesscompletionhandler
---

# EKEventStoreRequestAccessCompletionHandler

The signature for a closure that EventKit calls when requesting access to event and reminder data.

## Declaration

```swift
typealias EKEventStoreRequestAccessCompletionHandler = (Bool, (any Error)?) -> Void
```

## Parameters

- `granted`: doc://com.apple.documentation/documentation/Swift/true if the user allows the app to access data in the event store; otherwise, doc://com.apple.documentation/documentation/Swift/false.
- `error`: The error that occurred, if any; otherwise, nil.

## See Also

### Requesting access to events and reminders

- [requestWriteOnlyAccessToEvents(completion:)](eventkit/ekeventstore/requestwriteonlyaccesstoevents(completion:).md)
- [requestFullAccessToEvents(completion:)](eventkit/ekeventstore/requestfullaccesstoevents(completion:).md)
- [requestFullAccessToReminders(completion:)](eventkit/ekeventstore/requestfullaccesstoreminders(completion:).md)
- [authorizationStatus(for:)](eventkit/ekeventstore/authorizationstatus(for:).md)
- [EKAuthorizationStatus](eventkit/ekauthorizationstatus.md)
- [NSCalendarsFullAccessUsageDescription](bundleresources/information-property-list/nscalendarsfullaccessusagedescription.md)
- [NSCalendarsWriteOnlyAccessUsageDescription](bundleresources/information-property-list/nscalendarswriteonlyaccessusagedescription.md)
- [NSRemindersFullAccessUsageDescription](bundleresources/information-property-list/nsremindersfullaccessusagedescription.md)
