authorizationStatus(for:)
Returns the current authorization status to access the contact data.
Declaration
class func authorizationStatus(for entityType: CNEntityType) -> CNAuthorizationStatusParameters
- entityType:
Set to Cnentitytype.
Mentioned in
Return Value
The current authorization status to access the contact data.
Discussion
Based on the authorization status, your application might display or hide its UI elements that access any Contacts API. This method is thread-safe and will not block your application. To see different authorization status, see CNAuthorizationStatus.