Edit

Share via


CNAuthorizationStatus Enum

Definition

Enumerates the application's current authorization to access the CNContactStore.

[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 9, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.MacOSX, 10, 11, ObjCRuntime.PlatformArchitecture.All, null)]
public enum CNAuthorizationStatus
type CNAuthorizationStatus = 
Inheritance
CNAuthorizationStatus
Attributes

Fields

Name Value Description
NotDetermined 0

The user has not yet chosen whether the app may access the Contacts database.

Restricted 1

The app may not access the Contacts database, although the reason may not be the user's choice, but rather something such as parental controls.

Denied 2

The app has been denied access to the Contacts database.

Authorized 3

The app is authorized to access the Contacts database.

Applies to