WinRT Windows 10. Launch Website without opening metro app

ⅰ亾dé卋堺 提交于 2019-12-12 02:37:05

问题


I'm currently trying to write a code that utilizes Cortana's Speech Recognition. I want to create a command that launch website for e.g "Mark, Open google page" Mark is the AppName declared in the VCD. I'm currently using:

Launcher.LaunchUriAsync(new Uri("https://google.com"));

But the documentation for LauncUriAsync() states that "The calling app must be visible to the user when the API is invoked." Is there an equivalent API i can use that doesn't need the calling app to be visible?

来源:https://stackoverflow.com/questions/35289835/winrt-windows-10-launch-website-without-opening-metro-app

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!