CXR-L(EN)
cxr-l-sdk · v1.0.3 · snapshot 2026-06-02· ↗ source

Development Flow & State-Machine

Development Flow and State Machines

End-to-end development flow

Rendering diagram…
  1. DevEnv: Android minSdk 31+, Bluetooth, Rokid AI App ≥ 1.7.14, glasses firmware.
  2. SdkImport: Gradle client-l:1.0.3.
  3. Auth: valid token via required app.
  4. Session: CUSTOMVIEW or CUSTOMAPP, configCXRSession, connect.
  5. SceneBuiltOnGlasses: Custom View opened or target app launched.
  6. Capability: audio/photo in both scenarios; custom command in CustomApp only.

Android: authentication states

Rendering diagram…

Hub typical phases: ConnectingSceneNotReadyCapabilitiesReady.

Rendering diagram…
  • Link ready (CustomView / CustomApp): onCXRLConnected(true) and onGlassBtConnected(true)
  • Scene building complete (CustomView): onCustomViewOpened
  • Scene building complete (CustomApp): onOpenAppResult(true) or onGlassAppResume(true)

See Connection and Session chapter.

Android: capability gating

Rendering diagram…

Cross-platform gating (Android / iOS)

  • Audio / Photo: both CustomView and CustomApp, after link + scene building.
  • Custom Command: CustomApp only.
  • Observe auth via client.auth.statePublisher / eventPublisher — see the iOS Authentication chapter.
  • Runtime events: audioEventPublisher, customViewRunningEventPublisher, etc.
Rendering diagram…

Event names follow RGCxrClient headers (iOS SDK v1.0.1).

Marcin Miazga