편집

다음을 통해 공유


UNNotificationPresentationOptions Enum

Definition

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.

Applies to