Modifier

Partager via


UNNotificationCategoryOptions Enum

Definition

Contains flags that control whether a custom dismiss action is used, and whether the category is allowed in CarPlay application.

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 UNNotificationCategoryOptions
type UNNotificationCategoryOptions = 
Inheritance
UNNotificationCategoryOptions
Attributes

Fields

Name Value Description
None 0

No options are specified.

CustomDismissAction 1

Send the dismiss action to the user notification center for handling.

AllowInCarPlay 2

Whether to allow the notification in CarPlay. (If this value is not specified, the notification is disallowed in CarPlay.)

HiddenPreviewsShowTitle 4

Display titles for notification previews, even when hidden.

HiddenPreviewsShowSubtitle 8

Display subtitles for notification previews, even when hidden.

Applies to