ToastNotification.Activated | activated event
Occurs when user activates a toast notification through a click or touch. Apps that are running subscribe to this event.
Syntax
function onActivated(eventArgs) { /* Your code */ } // addEventListener syntax toastNotification.addEventListener("activated", onActivated); toastNotification.removeEventListener("activated", onActivated); - or - toastNotification.onactivated = onActivated;
Event information
| Delegate | TypedEventHandler(ToastNotification, Object) |
|---|
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.
Requirements
|
Minimum supported client | Windows 8 |
|---|---|
|
Minimum supported server | Windows Server 2012 |
|
Namespace |
|
|
Metadata |
|
See also
- ToastNotification
- Toast notifications sample
- Sending toast notifications from desktop apps sample
- Toast XML schema
- Toast notification overview
- Quickstart: Sending a toast notification
- Quickstart: Sending a toast push notification
- Quickstart: Sending a toast notification from the desktop
- Guidelines and checklist for toast notifications
- How to handle activation from a toast notification
- How to opt in for toast notifications
- How to schedule a toast notification
- How to enable desktop toast notifications through an AppUserModelID
- The toast template catalog
- Toast audio options
Build date: 12/4/2012
