Share via


ToastDismissalReason Enum

Definition

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

public enum class ToastDismissalReason
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
enum class ToastDismissalReason
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
public enum ToastDismissalReason
var value = Windows.UI.Notifications.ToastDismissalReason.userCanceled
Public Enum ToastDismissalReason
Inheritance
ToastDismissalReason
Attributes

Windows requirements

Device family
Windows 10 (introduced in 10.0.10240.0 - for Xbox, see UWP features that aren't yet supported on Xbox)
API contract
Windows.Foundation.UniversalApiContract (introduced in v1.0)

Fields

ApplicationHidden 1

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

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.

UserCanceled 0

The user dismissed the toast notification.

Applies to

See also