Share via


ToastNotificationManagerForUser.NotificationModeChanged Event

Definition

Occurs when the value of ToastNotificationManagerForUser.NotificationMode property changes.

// Register
event_token NotificationModeChanged(TypedEventHandler<ToastNotificationManagerForUser, IInspectable const&> const& handler) const;

// Revoke with event_token
void NotificationModeChanged(event_token const* cookie) const;

// Revoke with event_revoker
ToastNotificationManagerForUser::NotificationModeChanged_revoker NotificationModeChanged(auto_revoke_t, TypedEventHandler<ToastNotificationManagerForUser, IInspectable const&> const& handler) const;
public event TypedEventHandler<ToastNotificationManagerForUser,object> NotificationModeChanged;
function onNotificationModeChanged(eventArgs) { /* Your code */ }
toastNotificationManagerForUser.addEventListener("notificationmodechanged", onNotificationModeChanged);
toastNotificationManagerForUser.removeEventListener("notificationmodechanged", onNotificationModeChanged);
- or -
toastNotificationManagerForUser.onnotificationmodechanged = onNotificationModeChanged;
Public Custom Event NotificationModeChanged As TypedEventHandler(Of ToastNotificationManagerForUser, Object) 

Event Type

Windows requirements

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

Applies to