Glass Developers

Patterns

Use common UX patterns to give users a consistent experience across all Glassware.

Here you'll learn about the basic building blocks to build these patterns along with examples of patterns that we feel work great on Glass.

Pattern building blocks

By using the major UI elements along with an invocation method, you can build a wide variety of usage patterns that work well on Glass. You can then combine multiple patterns together in your Glassware for the use cases that you require.

UI elements

  1. Static card - Displays text, HTML, images, and video. Static cards can invoke live cards or immersions.
  2. Live card - Displays cards that are important at the current moment, usually rendered at a high frequency.
  3. Immersion - Displays Android activities that take over the timeline experience.

Invocation methods

  1. ok glass touch or voice menu
  2. Contextual voice or touch menu on a timeline card

Periodic notifications

This pattern describes inserting static cards in the timeline without an invocation model. Your service delivers notifications based on settings that the user defines. For example, delivering top news stories every hour or emails as they are received.

Notifications leverage Mirror API web services or Android background services on Glass to push notifications to the timeline.

Ongoing task

Ongoing tasks are long-running live cards that users leave and come back to frequently.

For example, the Stopwatch sample that is shipped with the GDK starts the stopwatch with an ok glass command.

Users can view the stopwatch for some time, navigate through the timeline to check other cards, and come back to the stopwatch. If the display sleeps, the stopwatch is the default card that displays when the display wakes up (as long as it had focus when the display went to sleep). Users can stop the stopwatch by tapping on a Stop menu item.



Another example of an ongoing task is Strava. Strava inserts a live card that contains a timer for a current run or bike ride. Tapping on the live card reveals menus to carry out a wide array of options. A finish menu item removes the live card from the timeline when users are finished with their run or bike ride.

Immersion

This pattern describes displaying immersions in the form of Android activities. Immersions take over the timeline experience momentarily and users return back to the timeline by swiping down.

Authentication required

You need to be signed in with Google+ to do that.

Signing you in...

Google Developers needs your permission to do that.