ToastDismissalReason enumeration

Applies to Windows and Windows Phone

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

Syntax


var value = Windows.UI.Notifications.ToastDismissalReason.userCanceled;

Attributes

[Version(0x06020000)]

Members

The ToastDismissalReason enumeration has these members.

MemberValueDescription
UserCanceled | userCanceled0

The user dismissed the toast notification.

ApplicationHidden | applicationHidden1

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

TimedOut | timedOut2

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.

Requirements

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

Windows Phone 8.1 [Windows Phone Silverlight 8.1 and Windows Runtime apps]

Namespace

Windows.UI.Notifications
Windows::UI::Notifications [C++]

Metadata

Windows.winmd

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

 

 

Show:
© 2014 Microsoft