Sdk
Getting Started
Initialize the KYCIS Android SDK and wire required lifecycle hooks
Install SDK
Add the Android SDK module/artifact to your app and initialize once in Application.
Minimal init flow
- Call
AI.init(application, apiKey, userId, policy) - Register lifecycle tracking via
AI.attach(application)when app starts - Set the current user with
AI.setUser(...) - Set screen/business step transitions with
AI.setKycStep(step)
Required runtime data
apiKey: backend API key used by SDK HTTP clientuserId: stable client user identifierpolicy.backendBaseUrl: backend base URL (for example,https://kycis.zynnex.in/v1)
Voice/session wiring
- Use
AI.setVoiceSessionListener(...)to receive room/token details - Call
AI.startAssistant()for manual start - Call
AI.stopAssistant()on explicit user end
Config behavior
SDK config is loaded in this order:
- SDK resource defaults (
kycis_config.xml) - Backend
/v1/sdk/configresponse (merged at runtime)
Long-running sessions refresh backend config periodically, so backend feature-flag changes can propagate without a full app restart.