Edit

Share via


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

Name Value Description
None 0

Indicates that no request type is specified.

Badge 1

Indicates authorization to update the app's badge.

Sound 2

Indicates authorization to play sound.

Alert 4

Indicates authorization to display alerts.

CarPlay 8

Indicates authorization to display notifications in CarPlay.

CriticalAlert 16

Indicates authorization to display critical alerts.

ProvidesAppNotificationSettings 32

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

Provisional 64

Indicates authorization to make provisional noncritical notifications.

Applies to