VoiceCommandActivatedEventArgs class
TOC
Collapse the table of content
Expand the table of content

VoiceCommandActivatedEventArgs class

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

Syntax


/* For information about creating or accessing this object, see Remarks. */

Members

The VoiceCommandActivatedEventArgs class has these types of members:

Properties

The VoiceCommandActivatedEventArgs class has these properties.

PropertyAccess typeDescription

Kind

Read-only

Gets the activation type.

PreviousExecutionState

Read-only

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

Result

Read-only

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

SplashScreen

Read-only

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

User

Read-only

Gets the user that the app was activated for.

 

Remarks

Access this object by overriding either the WinJS onactivated event or the XAML OnActivated method, when the value of IActivatedEventArgs.Kind is VoiceCommand.

Requirements (Windows 10 device family)

Device family

Universal, introduced version 10.0.10240.0

API contract

Windows.Foundation.UniversalApiContract, introduced version 1.0

Namespace

Windows.ApplicationModel.Activation
Windows::ApplicationModel::Activation [C++]

Metadata

Windows.Foundation.UniversalApiContract.winmd

Requirements (Windows 8.x and Windows Phone 8.x)

Minimum supported client

None supported

Minimum supported server

None supported

Minimum supported phone

Windows Phone 8.1 [Windows Runtime apps only]

Namespace

Windows.ApplicationModel.Activation
Windows::ApplicationModel::Activation [C++]

Metadata

Windows.winmd

Attributes

[MarshalingBehavior(Agile)]
[Version]

See also

Object
IVoiceCommandActivatedEventArgs
IActivatedEventArgs

 

 

Show:
© 2017 Microsoft