ToastNotification.Activated ToastNotification.Activated ToastNotification.Activated ToastNotification.Activated ToastNotification.Activated Event

Definition

Occurs when user activates a toast notification through a click or touch. Apps that are running subscribe to this event.

public : event TypedEventHandler<ToastNotification, object> Activated
// Register
event_token Activated(TypedEventHandler<ToastNotification, object> const& handler) const;

// Revoke with event_token
void Activated(event_token const& cookie) const;

// Revoke with event_revoker
Activated_revoker Activated(auto_revoke_t, TypedEventHandler<ToastNotification, object> const& handler) const;
public event TypedEventHandler<ToastNotification, object> Activated
Public Event Activated As TypedEventHandler (Of ToastNotification, object)
function onActivated(eventArgs){/* Your code */}


toastNotification.addEventListener("activated", onActivated);
toastNotification.removeEventListener("activated", onActivated);

Remarks

In the case of toast raised by a desktop app, that app must subscribe to at least the Activated event so that it can handle the expected activation of the app from the toast when the user selects it.

See also