Edit

Share via


UNAuthorizationStatus Enum

Definition

Enumerates ways in which the user can respond to a request for permission to post notifications.

[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 10, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.TvOS, 10, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.WatchOS, 3, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.MacOSX, 10, 14, ObjCRuntime.PlatformArchitecture.Arch64, null)]
public enum UNAuthorizationStatus
type UNAuthorizationStatus = 
Inheritance
UNAuthorizationStatus
Attributes

Fields

Name Value Description
NotDetermined 0

The user has not yet allowed or denied the app permission to post notifications.

Denied 1

The user has denied the app permission to post notifications.

Authorized 2

The user has allowed the app to post notifications.

Provisional 3

The user has allowed provisional noncritical notifications.

Applies to