How do I add the "View Website" action to a timeline card?

rym*_*ymo 6 google-glass google-mirror-api

As of firmware update XE7, Glass adds a "View Website" action to search results. How do I add this action to my own timeline cards, such that it will open the Glass Browser with an arbitrary URL?

mim*_*ing 5

OPEN_URI内置菜单项添加到时间轴项目和URL menuItem.payload.时间轴项的JSON可能如下所示:

{ 
  "text" : "Hello World!",
  "menuItems" : [{
    "action" : "OPEN_URI",
    "payload" : "http://example.com"
  }]
}
Run Code Online (Sandbox Code Playgroud)

您可以在此功能官方文档中阅读有关内置菜单项的更多信息.