如何在时间轴卡html模板上链接网站?

时间:2013-10-02 19:42:52

标签: google-glass

是否可以在google glass的html模板上添加链接?

我希望用户点按时间线卡内的链接并转到网站。

由于 PREM

1 个答案:

答案 0 :(得分:2)

虽然您无法直接打开链接,但您可以在时间卡中添加OPEN_URI菜单项,其中包含payload链接。

{
  "html": "(your card html code here)",
  "menuItems": [
    {
      "action": "OPEN_URI",
      "payload": "(your link here)"
    }
  ]
}

参考:https://developers.google.com/glass/v1/reference/timeline#menuItems.action

相关问题