RayNeoRuntimeGlassesClient

class RayNeoRuntimeGlassesClient(context: Context, displaySink: RayNeoDisplaySink = ToastDisplaySink()) : BaseGlassesClient

RayNeo (on-glasses) client.

This runs inside the RayNeo glasses app process.

  • capturePhoto() uses Camera2 to capture a single JPEG (no preview UI).

  • display() uses a pluggable sink; default is a Toast.

Note: This module is intentionally vendor-SDK-free. If you want to integrate with RayNeo Mercury SDK UI components, implement a custom RayNeoDisplaySink and/or your own capture pipeline.

Constructors

Link copied to clipboard
constructor(context: Context, displaySink: RayNeoDisplaySink = ToastDisplaySink())

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 override 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
open suspend override fun startVideoStream(options: VideoStreamOptions): Result<VideoStreamSession>