UserNotificationListener.NotificationChanged Event
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.
Occurs when a notification is added or removed.
// Register
event_token NotificationChanged(TypedEventHandler<UserNotificationListener, UserNotificationChangedEventArgs const&> const& handler) const;
// Revoke with event_token
void NotificationChanged(event_token const* cookie) const;
// Revoke with event_revoker
UserNotificationListener::NotificationChanged_revoker NotificationChanged(auto_revoke_t, TypedEventHandler<UserNotificationListener, UserNotificationChangedEventArgs const&> const& handler) const;
public event TypedEventHandler<UserNotificationListener,UserNotificationChangedEventArgs> NotificationChanged;
function onNotificationChanged(eventArgs) { /* Your code */ }
userNotificationListener.addEventListener("notificationchanged", onNotificationChanged);
userNotificationListener.removeEventListener("notificationchanged", onNotificationChanged);
- or -
userNotificationListener.onnotificationchanged = onNotificationChanged;
Public Custom Event NotificationChanged As TypedEventHandler(Of UserNotificationListener, UserNotificationChangedEventArgs)