nicolas2k / google-glass-api

Automatically exported from code.google.com/p/google-glass-api
1 stars 0 forks source link

Replicate Mirror API into GDK for timeline cards #324

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
i think it'd be nice to replicate things from mirror api side so i can easily 
port a java mirror api app to GDK

Card c = new Card();
String placeHolderHTML = "<p>Hello Wordl</p>"
List<MenuItem> menuItemList = new ArrayList<MenuItem>();
menuItemList.add(new MenuItem().setAction("PLAY_VIDEO").setPayload(mediaUrl));
menuItemList.add(new MenuItem().setAction("DELETE"));

c.setSourceItemId(sourceItemId);
c.setMenuItems(menuItemList);
c.setHtml(placeholderHtml)

TimelineManager.insert(c)

So something like this could work

Original issue reported on code.google.com by michael....@gmail.com on 25 Dec 2013 at 9:42

GoogleCodeExporter commented 8 years ago
There is already a request for this functionality here: 
https://code.google.com/p/google-glass-api/issues/detail?id=320
Which is for static cards to have menus via the same mechanism as live cards.

Original comment by Slol...@gmail.com on 27 Dec 2013 at 4:49

GoogleCodeExporter commented 8 years ago

Original comment by ala...@google.com on 6 Jan 2014 at 5:34