从固件更新 XE7 开始,Glass 在搜索结果中添加了“查看网站”操作。如何将此操作添加到我自己的时间线卡片中,以便它可以使用任意 URL 打开 Glass 浏览器?
最佳答案
添加 OPEN_URI
时间线项目的内置菜单项和 menuItem.payload
的 URL .时间线项目的 JSON 可能如下所示:
{
"text" : "Hello World!",
"menuItems" : [{
"action" : "OPEN_URI",
"payload" : "http://example.com"
}]
}
您可以在 official documentation for this feature 上阅读有关内置菜单项的更多信息.
关于google-mirror-api - 如何将 "View Website"操作添加到时间线卡?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17431797/