Type Method

authorizationStatus(for:)

Returns the authorization status for the given entity type.

Declaration

class func authorizationStatus(for entityType: EKEntityType) -> EKAuthorizationStatus

Parameters

entityType

The event or reminder entity type.

Return Value

The app’s authorization status of the given type.

See Also

Accessing the Event Store

enum EKAuthorizationStatus

The current authorization status for a specific entity type.

typealias EKEventStoreRequestAccessCompletionHandler

The signature for a block object used for operating on events with the requestAccess(to:completion:) method.

typealias EKEventSearchCallback

The signature for a block object used for operating on events with the enumerateEvents(matching:using:) method.

func requestAccess(to: EKEntityType, completion: EKEventStoreRequestAccessCompletionHandler)

Prompts the user to grant or deny access to event or reminder data.

var eventStoreIdentifier: String

The unique identifier for the event store.