Delen 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.

public ref class ToastNotificationActivatedEventArgs sealed : IToastNotificationActivatedEventArgs
public ref class ToastNotificationActivatedEventArgs sealed : IActivatedEventArgsWithUser, IToastNotificationActivatedEventArgs
public ref class ToastNotificationActivatedEventArgs sealed : IActivatedEventArgsWithUser, IApplicationViewActivatedEventArgs, IToastNotificationActivatedEventArgs
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class ToastNotificationActivatedEventArgs final : IToastNotificationActivatedEventArgs
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class ToastNotificationActivatedEventArgs final : IActivatedEventArgsWithUser, IToastNotificationActivatedEventArgs
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class ToastNotificationActivatedEventArgs final : IActivatedEventArgsWithUser, IApplicationViewActivatedEventArgs, IToastNotificationActivatedEventArgs
[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
Public NotInheritable Class ToastNotificationActivatedEventArgs
Implements IToastNotificationActivatedEventArgs
Public NotInheritable Class ToastNotificationActivatedEventArgs
Implements IActivatedEventArgsWithUser, IToastNotificationActivatedEventArgs
Public NotInheritable Class ToastNotificationActivatedEventArgs
Implements IActivatedEventArgsWithUser, IApplicationViewActivatedEventArgs, IToastNotificationActivatedEventArgs
Inheritance
Object Platform::Object IInspectable 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

See also