CXR-L(EN)
CXR-L(EN)
IntroductionQuick StartDevelopment Flow & State-MachineTerms and Abbreviations
Feature Development
Version HistoryAndroid
iOS
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…
- DevEnv: Android minSdk 31+, Bluetooth, Rokid AI App ≥ 1.7.14, glasses firmware.
- SdkImport: Gradle
client-l:1.0.3. - Auth: valid
tokenvia required app. - Session:
CUSTOMVIEWorCUSTOMAPP,configCXRSession,connect. - SceneBuiltOnGlasses: Custom View opened or target app launched.
- Capability: audio/photo in both scenarios; custom command in CustomApp only.
Android: authentication states
Rendering diagram…
Android: link and scene phases
Hub typical phases: Connecting → SceneNotReady → CapabilitiesReady.
Rendering diagram…
- Link ready (CustomView / CustomApp):
onCXRLConnected(true)andonGlassBtConnected(true) - Scene building complete (CustomView):
onCustomViewOpened - Scene building complete (CustomApp):
onOpenAppResult(true)oronGlassAppResume(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.
iOS: authentication and link (conceptual)
- 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).