Enumeration

CNAuthorizationStatus

An authorization status the user can grant for an app to access the specified entity type.

Declaration

enum CNAuthorizationStatus : Int

Topics

Constants

case notDetermined

The user has not yet made a choice regarding whether the application may access contact data.

case restricted

The application is not authorized to access contact data. The user cannot change this application’s status, possibly due to active restrictions such as parental controls being in place.

case denied

The user explicitly denied access to contact data for the application.

case authorized

The application is authorized to access contact data.

See Also

Requesting Access to the User's Contacts

class func authorizationStatus(for: CNEntityType) -> CNAuthorizationStatus

Returns the current authorization status to access the contact data.

enum CNEntityType

The entities the user can grant access to.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software