Skip to main content

Overview

Hardware modules provide access to glasses and phone capabilities. Always check session.capabilities before using hardware features.

Camera Module

Access the glasses camera through session.camera:

Request Photo

Video Streaming

Stream Status

Audio Module

Play audio on glasses through session.audio:

Play Audio File

Text-to-Speech

Location Module

Access device location through session.location:

Continuous Updates

One-time Location

Dashboard Module

Control the always-visible dashboard through session.dashboard:

Update Content

Dashboard Mode

Settings Module

Manage app settings through session.settings:

Read Settings

Listen for Changes

Capability Checking

Always check capabilities before using hardware:

Best Practices

Hardware access requires permissions. Request only what you need:

Common Patterns

Photo with Feedback

Location-based Features