Menus

Picture yourself going to a nice, table-service restaurant. The first thing you probably do is open a menu and make a selection from a listing of food options. While pizza may be an acceptable choice at an Italian ristorante, it would be a bit out of place in a French bistro.

Similarly, timeline items can provide a list of options pertaining to actions you can take on an item, such as reading aloud the text on the screen or sharing an item with a friend. Just like in a restaurant, some items make sense in context and some don’t. A card that displays a video might be a strange place to offer Read Aloud.

A timeline item can have many menu items. Each menu item is attached to the timeline item itself as an array under menuItems. As usual, ...

Get Programming Google Glass now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.