SimulatorGlassesClient
Simulator implementation of GlassesClient that simulates glasses functionality without physical hardware. Designed to run on an Android Emulator.
Behavior:
connect()/disconnect(): no physical glasses, so it's effectively a no-op lifecycle.
capturePhoto(): uses Android camera (on Android Emulator this can be backed by host webcam), OR reads frames from a local video file when videoPath is set (see --local_video / --url).
display(): shows text in the host UI via a sink provided by the host app.
When videoPath is non-null the video is played back at its original frame rate in an infinite loop. Each call to capturePhoto returns the frame that the virtual playback head is currently at.
Constructors
Properties
Functions
Testing hook that emits a synthetic GlassesEvent.BatteryLevel without glasses hardware.
Testing hook that emits a synthetic GlassesEvent.LongPress without glasses hardware.
Testing hook that emits a synthetic GlassesEvent.Tap without glasses hardware.