Skip to content

Latest commit

 

History

History
32 lines (22 loc) · 2.64 KB

toastdismissalreason.md

File metadata and controls

32 lines (22 loc) · 2.64 KB
-api-id -api-type -api-device-family-note
T:Windows.UI.Notifications.ToastDismissalReason
winrt enum
xbox

ToastDismissalReason

-description

Specifies the reason that a toast notification is no longer being shown. Used with ToastDismissedEventArgs.Reason.

-enum-fields

-field UserCanceled:0

The user dismissed the toast notification.

-field ApplicationHidden:1

The app explicitly hid the toast notification by calling the ToastNotifier.hide method.

-field TimedOut:2

The toast notification had been shown for the maximum allowed time and was faded out. The maximum time to show a toast notification is 7 seconds except in the case of long-duration toasts, in which case it is 25 seconds.

-remarks

-examples

-see-also

ToastDismissedEventArgs.Reason, 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