[UWP] [JavaScript]捕获系统对话框结果 [英] [UWP][JavaScript] Capture system dialog result
问题描述
我正在开发一个Xbox UWP应用程序。我想实现更新下载和安装功能。
Hi, I am developing a Xbox UWP app. I want to implement the update download and install feature.
但是,当有新版本的应用时。当用户启动不是由我们触发的应用时,会自动显示系统更新对话框。
However, when there is a new version of the app. A system update dialog appears automatically when user launches the app that is not triggered by us.
此处有2个问题。
1。如果对话框已经出现,则触发另一个更新对话框是没有意义的。有没有办法捕获用户对该系统对话框的选择?
1. It wouldn't make sense for us to trigger another update dialog if the dialog already appears. Is there a way to capture user's choice to that system dialog?
2。如果用户没有为该对话框选择确定或取消,它将保留在屏幕上并继续加载应用程序。它阻止显示所有其他对话框。有没有办法强制显示新的对话框?我正在调用dialog.showAsync
2. If user does not choose ok or cancel for that dialog, it stays on screen and app continues to load. It blocks all other dialog from being shown. Is there a way to force new dialog to show? I am calling dialog.showAsync
推荐答案
嗨leoteng,
Hi leoteng,
>大于1。有没有办法捕获用户对该系统对话框的选择?
无法在系统对话框中捕获用户的选择。
There is no way to capture user's choice on the system dialog.
>> 2。有没有办法强制显示新的对话框?
>>2. Is there a way to force new dialog to show?
不,这是设计的,我们应该在其他操作之前操作对话框。
No, it is by design, we should operate the dialog before some other operate.
祝你好运,
Breeze
这篇关于[UWP] [JavaScript]捕获系统对话框结果的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!