Timeline Items
If a timeline is a sequence of chronological events, a timeline item is an individual event. Every timeline item has a timestamp and some sort of payload, be it text or HTML, an attachment like an image or video, or a more abstract asset like a contact with a phone number to call.
You can create, read, update, and delete timeline items. We’ll dig a little deeper into creating some richer Lunch Roulette items.
Create a Timeline Item
The first action any Glassware app is likely to take is to create a new timeline item.
The Java code for creating a new card in the timeline is the timeline object’s insert method. You have to call the execute methods to send the new timeline change to the Mirror API; otherwise, you’ve just populated ...
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.