EvenGlassesClient

class EvenGlassesClient(context: Context, options: EvenGlassesClient.EvenOptions = EvenOptions()) : BaseGlassesClient

Even Realities G1 Android adapter.

Protocol sources are cited in EvenProtocol.kt. The G1 exposes two BLE peripherals, one per arm, over Nordic UART. The adapter connects both arms, enables RX notifications on both, sends display/heartbeat commands left first and right after the left acknowledgment, and starts the microphone on the right arm only.

MicrophoneSession.stop emits end-of-stream synchronously. The device-side mic disable is launched asynchronously as best effort for external callers; failures are surfaced as warn events.

Constructors

Link copied to clipboard
constructor(context: Context, options: EvenGlassesClient.EvenOptions = EvenOptions())

Types

Link copied to clipboard
object Companion
Link copied to clipboard
data class EvenOptions(val connectTimeoutMs: Long)

Properties

Link copied to clipboard
open override val capabilities: DeviceCapabilities
Link copied to clipboard
Link copied to clipboard
open override val events: Flow<GlassesEvent>
Link copied to clipboard
open override val model: GlassesModel
Link copied to clipboard
open override val state: StateFlow<ConnectionState>

Functions

Link copied to clipboard
open suspend override fun capturePhoto(options: CaptureOptions): Result<CapturedImage>
Link copied to clipboard
suspend override fun connect(): Result<Unit>
Link copied to clipboard
open suspend override fun disconnect()
Link copied to clipboard
open suspend override fun display(text: String, options: DisplayOptions): Result<Unit>
Link copied to clipboard
open suspend fun displayImage(image: DisplayImage, options: DisplayImageOptions): Result<Unit>
Link copied to clipboard
open suspend override fun playAudio(source: AudioSource, options: PlayAudioOptions): Result<Unit>
Link copied to clipboard
open suspend override fun startMicrophone(options: MicrophoneOptions): Result<MicrophoneSession>
Link copied to clipboard