输入视图导航模式不阅读列表
Input-view navigation-mode does not read list
我已经尝试使用导航模式实现输入视图,以便用户可以口头 select 一个选项。目标是让我的胶囊在没有物理交互的情况下完全可用。
问题是我尝试按照开发人员中心的示例进行操作,但它似乎无法正常工作。 https://bixbydevelopers.com/dev/docs/dev-guide/developers/enhancing-UX.list-navigation
input-view {
match: SpaceResort (result)
message ("Which space resort would you like?")
render {
if (size(result) > 1) {
selection-of (result) {
navigation-mode {
read-one {
list-summary ("I found #{size(result)} resorts.")
page-content {
underflow-statement (This is the first resort.)
item-selection-question (Do you want to book this resort?)
overflow-statement (Those are all the resorts that meet your search.)
overflow-question (What would you like to do?)
}
}
}
has-details (true)
select-button-text ("Book")
where-each (item) {
layout-macro (space-resort-summary) {
param (spaceResort) {
expression (item)
}
}
}
}
}
}
}
在我的胶囊上,它会重复 'item-selection-question'、'list-summary' 或消息模板两次,并且不会大声读出项目列表。
网上的DOC例子不是很清楚。
您需要在where-each (item)
中添加child-keyspoken-summary
。请查看更多here
并且在 IDE 测试中,您需要启用 "hands free" 模式按钮。
目前on-device测试此功能尚未启用。
同样,重复两次消息是一个错误,很快就会修复。
我已经尝试使用导航模式实现输入视图,以便用户可以口头 select 一个选项。目标是让我的胶囊在没有物理交互的情况下完全可用。
问题是我尝试按照开发人员中心的示例进行操作,但它似乎无法正常工作。 https://bixbydevelopers.com/dev/docs/dev-guide/developers/enhancing-UX.list-navigation
input-view {
match: SpaceResort (result)
message ("Which space resort would you like?")
render {
if (size(result) > 1) {
selection-of (result) {
navigation-mode {
read-one {
list-summary ("I found #{size(result)} resorts.")
page-content {
underflow-statement (This is the first resort.)
item-selection-question (Do you want to book this resort?)
overflow-statement (Those are all the resorts that meet your search.)
overflow-question (What would you like to do?)
}
}
}
has-details (true)
select-button-text ("Book")
where-each (item) {
layout-macro (space-resort-summary) {
param (spaceResort) {
expression (item)
}
}
}
}
}
}
}
在我的胶囊上,它会重复 'item-selection-question'、'list-summary' 或消息模板两次,并且不会大声读出项目列表。
网上的DOC例子不是很清楚。
您需要在where-each (item)
中添加child-keyspoken-summary
。请查看更多here
并且在 IDE 测试中,您需要启用 "hands free" 模式按钮。
目前on-device测试此功能尚未启用。
同样,重复两次消息是一个错误,很快就会修复。