Edytuj

Udostępnij za pośrednictwem


UNNotificationActionOptions Enum

Definition

Enumerates behavior options for notification actions.

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.WatchOS, 3, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.MacOSX, 10, 14, ObjCRuntime.PlatformArchitecture.Arch64, null)]
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All, null)]
[System.Flags]
public enum UNNotificationActionOptions
type UNNotificationActionOptions = 
Inheritance
UNNotificationActionOptions
Attributes

Fields

Name Value Description
None 0

No options are specified.

AuthenticationRequired 1

Prompt the user to unlock the device to respond to the action.

Destructive 2

Indicates that the notification action will perform an irrevocable change. (Special highlighting is applied to the action.)

Foreground 4

The app will be launched in the foreground when responding to the action, prompting the user to unlock the device if it is locked.

Applies to