M2Glasses Service
Service for managing the physical connection to the Maverick2 glasses and monitoring their hardware state.
Properties
Functions
Checks whether the glasses are currently detected on the user's face.
Returns a parsed human-readable description of the glasses serial number.
Disconnects the active transport session (BLE or WebSocket).
Enables or disables a hardware device component on the glasses.
Returns the four firmware version numbers reported by the glasses, in order: ver0, ver1, ver2, ver3 - the same four values com.everysight.mav2.sdk.viewmodels.M2GlassesViewModel exposes as fwVersion0 to fwVersion3. They are firmware-defined counters, not a semantic version, so do not read them as major/minor/patch.
Returns the persisted WebSocket simulator host, normalized the same way setConfiguredSimulator normalizes its argument.
Returns the current high-level connection status.
Returns the currently configured target BLE device address.
Returns the currently configured target device name.
Returns true when a target device is configured for connection.
Checks whether an external power source is physically connected.
Checks whether the battery is actively charging.
Checks whether the transport layer is currently connected.
Queries whether a specific hardware device component is currently enabled on the glasses.
Checks whether the proximity sensor is currently enabled.
Checks whether the glasses have reached the M2ConnectionStatus.Ready state, meaning all SDK services are fully operational.
Checks whether the WebSocket simulator transport has been configured.
Registers a listener for battery and charging state events.
Registers a listener for connection lifecycle events.
Registers a listener for system, touch, and power-button events.
Configure connection to a BLE device (glasses).
Configure connection to the WebSocket simulator transport.
Unregisters a previously registered battery event listener.
Unregisters a previously registered connection lifecycle listener.
Unregisters a previously registered system event listener.