Share via


ToastNotification.Activated Event

Definition

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

// Register
event_token Activated(TypedEventHandler<ToastNotification, IInspectable const&> const& handler) const;

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

// Revoke with event_revoker
ToastNotification::Activated_revoker Activated(auto_revoke_t, TypedEventHandler<ToastNotification, IInspectable const&> const& handler) const;
public event TypedEventHandler<ToastNotification,object> Activated;
function onActivated(eventArgs) { /* Your code */ }
toastNotification.addEventListener("activated", onActivated);
toastNotification.removeEventListener("activated", onActivated);
- or -
toastNotification.onactivated = onActivated;
Public Custom Event Activated As TypedEventHandler(Of ToastNotification, Object) 

Event Type

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.

Applies to

See also