VoiceCommandActivatedEventArgs VoiceCommandActivatedEventArgs VoiceCommandActivatedEventArgs VoiceCommandActivatedEventArgs VoiceCommandActivatedEventArgs Class

Definition

Contains info for the app's activated event when the app is launched through a voice command.

public : sealed class VoiceCommandActivatedEventArgs : IActivatedEventArgs, IActivatedEventArgsWithUser, IVoiceCommandActivatedEventArgs
struct winrt::Windows::ApplicationModel::Activation::VoiceCommandActivatedEventArgs : IActivatedEventArgs, IActivatedEventArgsWithUser, IVoiceCommandActivatedEventArgs
public sealed class VoiceCommandActivatedEventArgs : IActivatedEventArgs, IActivatedEventArgsWithUser, IVoiceCommandActivatedEventArgs
Public NotInheritable Class VoiceCommandActivatedEventArgs Implements IActivatedEventArgs, IActivatedEventArgsWithUser, IVoiceCommandActivatedEventArgs
// This class does not provide a public constructor.
Attributes

Windows 10 requirements

Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Remarks

Access this object by overriding either the Windows Library for JavaScript (WinJS) onactivated event or the Extensible Application Markup Language (XAML) OnActivated method, when the value of IActivatedEventArgs.Kind is VoiceCommand.

Version history

Windows version SDK version Value added
1607 14393 User

Properties

Kind Kind Kind Kind Kind

Gets the activation type.

PreviousExecutionState PreviousExecutionState PreviousExecutionState PreviousExecutionState PreviousExecutionState

Gets the execution state of the app before it was activated.

Result Result Result Result Result

Gets the SpeechRecognitionResult object representing the voice command that activated the app.

SplashScreen SplashScreen SplashScreen SplashScreen SplashScreen

Gets info about the transition from the splash screen to the activated app.

User User User User User

Gets the user that the app was activated for.

See also