DeviceManager

interface DeviceManager

Phone-side manager for glasses whose app runs on the glasses.

Properties

Link copied to clipboard
abstract val events: Flow<GlassesEvent>
Link copied to clipboard
abstract val model: GlassesModel
Link copied to clipboard
abstract val state: StateFlow<DeviceManagerState>

Functions

Link copied to clipboard
abstract suspend fun close()

Release resources. Safe to call multiple times.

Link copied to clipboard
abstract suspend fun install(): Result<Unit>

Install or update the on-glasses app and prepare the device.

Link copied to clipboard
abstract suspend fun pushSettings(settings: Map<String, String>): Result<Unit>

Push user-configured settings to the on-glasses app.