uwp - 如何从 Cortana 动态清除自定义 VCD 命令?
问题描述
我有一个带有 VCD 的 UWP 应用程序,我可以让 Cortana 识别我的测试命令(正常工作)。但是,我希望能够整理所有自定义命令(理想情况下,通过识别 appname/command 前缀和命令,通过完全擦除 appname/command 前缀失败,无法擦除所有自定义命令)。
这是我的工作 VCD:
<?xml version="1.0" encoding="utf-8" ?>
<VoiceCommands xmlns="http://schemas.microsoft.com/voicecommands/1.2">
<CommandSet xml:lang="en-gb" Name="VoiceDemoCommandSet_en-us">
<AppName>Do</AppName>
<Example>Placeholder</Example>
<Command Name="Test">
<Example>a test</Example>
<ListenFor RequireAppName="BeforePhrase">a test</ListenFor>
<Feedback>You've triggered the test command</Feedback>
<Navigate />
</Command>
</CommandSet>
</VoiceCommands>
例如,如何清除已注册的“执行测试”命令?
解决方案
如何从 Cortana 动态清除自定义 VCD 命令?
来源于官方文档,VoiceCommandDefinitionManager
仅包含InstallCommandDefinitionsFromStorageFileAsync
,并没有这样的api可以卸载已安装的命令文件。恐怕您无法删除已安装的命令文件,如果您确实需要此功能,请使用 Windows 反馈中心应用程序发布您的要求。
推荐阅读
- docker - wsl.exe -l -v 系统找不到指定的路径
- javascript - Webpack devServer 不尊重 webpack.config.js 中的 devServer 选项
- java - 触发单选按钮时显示信息
- php - 如何使用 PHP 函数从文件、样式表或 javascript 中去除注释?
- javascript - 尝试在 oncompleted 方法中访问状态
- google-api - 停止在谷歌日历上推送通知
- c# - EF Core 在 OnModelCreating 时创建影子 FK 索引并导致运行时错误
- mongoose - mongoose 中的匹配验证器让我发疯
- pandas - Pandas 仅将第一页抓取的数据保存到 CSV
- unity3d - 在统一中,您如何在给定的世界空间位置找到体素信息?