iOS — Swift
XunaAISDK for native iOS apps built with Swift or SwiftUI.Android — Kotlin
XunaAIClient for native Android apps built with Kotlin.React Native
Cross-platform SDK for iOS and Android from a single JavaScript codebase.
iOS — Swift SDK
Installation
Add theXunaAISDK package to your Xcode project using Swift Package Manager.
1
Open your project in Xcode
Go to File → Add Package Dependencies.
2
Enter the package URL
3
Select the version
Choose the latest release and click Add Package.
4
Add microphone permission
In your
Info.plist, add the NSMicrophoneUsageDescription key with a user-facing description.Basic usage
SwiftUI example
Android — Kotlin SDK
Installation
Add theXunaAIClient library to your Gradle build.
1
Add the dependency
In your module-level
build.gradle.kts:2
Add internet and microphone permissions
In your
AndroidManifest.xml:3
Request runtime permission
On Android 6.0 and above, request
RECORD_AUDIO at runtime before starting a session. Use the standard ActivityCompat.requestPermissions API or Jetpack’s permission APIs.Basic usage
Jetpack Compose example
React Native SDK
Use the React Native SDK to build a single codebase that runs on both iOS and Android.Installation
- iOS (
Info.plist):NSMicrophoneUsageDescription - Android (
AndroidManifest.xml):android.permission.RECORD_AUDIO
Basic usage
Authenticating private agents
All three SDKs support signed URLs and conversation tokens for private agents. Generate the credential on your server (see Authentication) and pass it tostartSession:

