O'Reilly logo

Programming Google Glass by Eric Redmond

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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, ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required