ToastNotificationActivatedEventArgs
ToastNotificationActivatedEventArgs
ToastNotificationActivatedEventArgs
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 : sealed class ToastNotificationActivatedEventArgs : IActivatedEventArgs, IActivatedEventArgsWithUser, IApplicationViewActivatedEventArgs, IToastNotificationActivatedEventArgspublic sealed class ToastNotificationActivatedEventArgs : IActivatedEventArgs, IActivatedEventArgsWithUser, IApplicationViewActivatedEventArgs, IToastNotificationActivatedEventArgsPublic NotInheritable Class ToastNotificationActivatedEventArgs Implements IActivatedEventArgs, IActivatedEventArgsWithUser, IApplicationViewActivatedEventArgs, IToastNotificationActivatedEventArgs// You can use this class in JavaScript.
- Attributes
| Device family |
Windows 10 (introduced v10.0.10240.0)
|
| API contract |
Windows.Foundation.UniversalApiContract (introduced v1)
|
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.
Properties
Argument Argument Argument Argument
Gets the arguments that the app can retrieve after it is activated through an interactive toast notification.
public : PlatForm::String Argument { get; }public string Argument { get; }Public ReadOnly Property Argument As string// You can use this property in JavaScript.
- Value
- PlatForm::String string string string
The arguments that the app can retrieve after it is activated through an interactive toast notification. The value of this property is defined previously in the XML that describes the data to deliver for the toast notification. The following elements and attributes of that XML define the value:
- The arguments attribute of the element, if the user performs an action inside the interactive toast notification.
- The launch attribute of the element, if the user simply clicks the body of the toast notification.
CurrentlyShownApplicationViewId CurrentlyShownApplicationViewId CurrentlyShownApplicationViewId CurrentlyShownApplicationViewId
Gets the identifier for the currently shown app view.
public : int CurrentlyShownApplicationViewId { get; }public int CurrentlyShownApplicationViewId { get; }Public ReadOnly Property CurrentlyShownApplicationViewId As int// You can use this property in JavaScript.
- Value
- int int int int
The identifier for the currently shown app view.
| Device family |
Windows 10 Creators Update (introduced v10.0.15063.0)
|
| API contract |
Windows.Foundation.UniversalApiContract (introduced v4)
|
Kind Kind Kind Kind
Gets the reason for the activation of the app for this event.
public : ActivationKind Kind { get; }public ActivationKind Kind { get; }Public ReadOnly Property Kind As ActivationKind// You can use this property in JavaScript.
The reason for the activation of the app for this event. For the 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, this value is ActivationKind.ToastNotification.
- See Also
PreviousExecutionState PreviousExecutionState PreviousExecutionState 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.
public : ApplicationExecutionState PreviousExecutionState { get; }public ApplicationExecutionState PreviousExecutionState { get; }Public ReadOnly Property PreviousExecutionState As ApplicationExecutionState// You can use this property in JavaScript.
- Value
- ApplicationExecutionState ApplicationExecutionState ApplicationExecutionState ApplicationExecutionState
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.
- See Also
SplashScreen SplashScreen SplashScreen SplashScreen
Gets the splash screen object that provides information about the transition from the splash screen to the activated app.
public : SplashScreen SplashScreen { get; }public SplashScreen SplashScreen { get; }Public ReadOnly Property SplashScreen As SplashScreen// You can use this property in JavaScript.
The splash screen object that provides information about the transition from the splash screen to the activated app.
- See Also
User User User User
Gets the user the app was activated for.
public : User User { get; }public User User { get; }Public ReadOnly Property User As User// You can use this property in JavaScript.
| Device family |
Windows 10 Anniversary Edition (introduced v10.0.14393.0)
|
| API contract |
Windows.Foundation.UniversalApiContract (introduced v3)
|
UserInput UserInput UserInput UserInput
Gets a set of values that you can use to obtain the user input from an interactive toast notification.
public : ValueSet UserInput { get; }public ValueSet UserInput { get; }Public ReadOnly Property UserInput As ValueSet// You can use this property in JavaScript.
A set of values that you can use to obtain the user input from an interactive toast notification.
This information consists of pairs of keys and values, in which the keys are the identifiers for the elements for which the user provided input and the values represent the input from the user. For elements that specify that the type of the input is text, the value is the string that the user specified. For elements that specify that the type of the input is an item that the user selects from a predefined list, the value is the identifier for the item that the user selected.
- See Also