google-mirror-api - 如何将 "View Website"操作添加到时间线卡?

标签 google-mirror-api google-glass

从固件更新 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/

相关文章:

android - 在 OpenCV for Android 上使用 onCameraFrame 来捕获高分辨率帧?

android - 如何在 Google Glass 中安装语音转文本功能?

python - 将多张卡片发布到时间线并附加视频时超出了截止日期

google-mirror-api - 自定义菜单项的值列表是什么?

python - Google 返回 400 解析错误

google-glass - 我如何在 Google APIs 控制台看到 Google Mirror API

java - 停止 Glass 上的自动调光

java - 每张捆绑卡的特定位置和菜单项

google-glass - Google Glass 相机和屏幕的相对几何形状是什么?

google-glass - Google Glass - 启动通过 adb install 安装的 apk