Share via


ToastNotificationMode Enum

Definition

Specifies the notification mode, which determines the set of notifications that are shown to the user.

public enum class ToastNotificationMode
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 983040)]
enum class ToastNotificationMode
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 983040)]
public enum ToastNotificationMode
var value = Windows.UI.Notifications.ToastNotificationMode.unrestricted
Public Enum ToastNotificationMode
Inheritance
ToastNotificationMode
Attributes

Windows requirements

Device family
Windows 11 Insider Preview (introduced in 10.0.23504.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v15.0)

Fields

Name Value Description
Unrestricted 0

All notifications are allowed, including push notifications and other types of system notifications.

PriorityOnly 1

Allows only notifications marked as “priority” to be displayed, which is similar to the Do Not Disturb mode in Windows 11, where only certain priority notifications are allowed to be displayed (e.g. notifications from important contacts or apps).

AlarmsOnly 2

Allows only alert-like notifications to be shown, meaning that any non-alarm notifications are suppressed.

Remarks

This enumeration is used by the ToastNotificationManagerForUser.NotificationMode property.

Applies to