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

Subscriptions

The point of a subscription is to respond in some way to some event. If you have ever subscribed to a newspaper, you’re familiar with the concept. Every time a new paper is available, you are notified by getting a copy with that day’s articles. Rather than notifying you on a fixed basis (such as daily) Glass gives you a more real-time notification.

In Mirror’s terms, whenever a state changes, you are notified. But to be notified you must subscribe, and for that, you use the Subscription resource. Your application can subscribe to several combinations of Glass events and actions, all of which can be found in Appendix 1, HTTP and HTML Resources. You can create a new subscription for either a timeline or location event, called a ...

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