How to add the "View website" action to the timeline map?

Starting with the XE7 firmware update, Glass adds the “View Web Site” action to search for results. How to add this action to my own timeline maps so that it opens the Glass browser with an arbitrary URL?

+6
source share
1 answer

Add the inline OPEN_URI element to your timeline element and the menuItem.payload . The JSON for the timeline element might look like this:

 { "text" : "Hello World!", "menuItems" : [{ "action" : "OPEN_URI", "payload" : "http://example.com" }] } 

For more information about the built-in menu items, see the official documentation for this feature .

+5
source

Source: https://habr.com/ru/post/948569/


All Articles