UNAuthorizationOptions Enum

Definition

Enumerates user interaction authorization requests.

This enumeration supports a bitwise combination of its member values.

[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)]
[System.Flags]
public enum UNAuthorizationOptions
type UNAuthorizationOptions = 
Inheritance
UNAuthorizationOptions
Attributes

Fields

Alert 4

Indicates authorization to display alerts.

Badge 1

Indicates authorization to update the app's badge.

CarPlay 8

Indicates authorization to display notifications in CarPlay.

CriticalAlert 16

Indicates authorization to display critical alerts.

None 0

Indicates that no request type is specified.

ProvidesAppNotificationSettings 32

Indicates that the app should provide a button for notification settings.

Provisional 64

Indicates authorization to make provisional noncritical notifications.

Sound 2

Indicates authorization to play sound.

Applies to