Share via


ToastNotificationActivatedEventArgs Class

Definition

Provides information about an event that occurs when the app is activated because a user tapped on the body of a toast notification or performed an action inside a toast notification.

[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class ToastNotificationActivatedEventArgs : IToastNotificationActivatedEventArgs
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class ToastNotificationActivatedEventArgs : IActivatedEventArgsWithUser, IToastNotificationActivatedEventArgs
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class ToastNotificationActivatedEventArgs : IActivatedEventArgsWithUser, IApplicationViewActivatedEventArgs, IToastNotificationActivatedEventArgs
Inheritance
Object ToastNotificationActivatedEventArgs
Attributes
Implements

Windows requirements

Device family
Windows 10 (introduced in 10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v1.0)

Remarks

ToastNotificationActivatedEventArgs is passed to the event handler that you implement for the activation event that occurs when the app is activated because a user tapped on the body of a toast notification or performed an action inside a toast notification.

Version history

Windows version SDK version Value added
1607 14393 User

Properties

Argument

Gets the arguments that the app can retrieve after it is activated through an interactive toast notification.

CurrentlyShownApplicationViewId

Gets the identifier for the currently shown app view.

Kind

Gets the reason for the activation of the app for this event.

PreviousExecutionState

Gets the execution state of the app before the app was activated because a user tapped on the body of a toast notification or performed an action inside a toast notification.

SplashScreen

Gets the splash screen object that provides information about the transition from the splash screen to the activated app.

User

Gets the user the app was activated for.

UserInput

Gets a set of values that you can use to obtain the user input from an interactive toast notification.

Applies to

Product Versions
WinRT Build 10240, Build 10586, Build 14383, Build 15063, Build 16299, Build 17134, Build 17763, Build 18362, Build 19041, Build 20348, Build 22000, Build 22621, Build 26100

See also