UNNotificationPresentationOptions Enum
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Enumerates flags that control the presentation of notifications in foreground apps.
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 UNNotificationPresentationOptions
type UNNotificationPresentationOptions =
- Inheritance
-
UNNotificationPresentationOptions
- Attributes
Fields
Name | Value | Description |
---|---|---|
None | 0 | No options are set. |
Badge | 1 | Display the notification badge value in the application's badge. |
Sound | 2 | Play the notification sound. |
Alert | 4 | Display the notification as an alert, using the notification text. |