VoiceCommandManager
VoiceCommandManager
VoiceCommandManager
VoiceCommandManager
Class
Definition
Some information relates to pre-released product which may be substantially modified before it’s commercially released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Prerelease APIs are identified by a Prerelease label.
[Contains prerelease APIs.]
> [!NOTE]
VoiceCommandManager may be altered or unavailable for releases after Windows Phone 8.1. Instead, use Windows.ApplicationModel.VoiceCommands.VoiceCommandDefinitionManager.
A static class that enables installing command sets from a Voice Command Definition (VCD) file, and accessing the installed command sets.
public : static class VoiceCommandManagerpublic static class VoiceCommandManagerPublic Static Class VoiceCommandManager// You can use this class in JavaScript.
- Attributes
| Device family |
Windows Mobile Extension SDK (introduced v10.0.10240.0)
|
| API contract |
Windows.Phone.PhoneContract (introduced v1)
|
Properties
InstalledCommandSets InstalledCommandSets InstalledCommandSets InstalledCommandSets
A dictionary that contains all installed command sets that have a Name attribute set in the file.
public : static IMapView<string, VoiceCommandSet> InstalledCommandSets { get; }public static IReadOnlyDictionary<string, VoiceCommandSet> InstalledCommandSets { get; }Public Static ReadOnly Property InstalledCommandSets As IReadOnlyDictionary<string, VoiceCommandSet>// You can use this property in JavaScript.
- Value
- IMapView<PlatForm::String, VoiceCommandSet> IReadOnlyDictionary<string, VoiceCommandSet> IReadOnlyDictionary<string, VoiceCommandSet> IReadOnlyDictionary<string, VoiceCommandSet>
The dictionary of installed command sets that have a Name attribute set in the Voice Command Definition (VCD) file.
Remarks
Avoid calling this property from the UI thread. Opening an app service connection can be resource intensive.
- See Also
Methods
InstallCommandSetsFromStorageFileAsync(StorageFile) InstallCommandSetsFromStorageFileAsync(StorageFile) InstallCommandSetsFromStorageFileAsync(StorageFile) InstallCommandSetsFromStorageFileAsync(StorageFile)
Prerelease. Installs the CommandSet elements in a file.
public : static IAsyncAction InstallCommandSetsFromStorageFileAsync(StorageFile file)public static IAsyncAction InstallCommandSetsFromStorageFileAsync(StorageFile file)Public Static Function InstallCommandSetsFromStorageFileAsync(file As StorageFile) As IAsyncAction// You can use this method in JavaScript.
An object representing a Voice Command Definition (VCD) file.
An asynchronous action.
Remarks
Awaiting this call on the UI thread can delay loading of your app.
- See Also