共用方式為


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.Native]
[System.Flags]
public enum UNNotificationPresentationOptions
[<ObjCRuntime.Native>]
[<System.Flags>]
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.

List 8
Banner 16

Applies to