AI Integration Quick Reference
AI Integration Quick Reference
- Jetpack Compose — native Material 3 composables for modern, Compose-first apps.
- Kotlin (XML Views) — drop-in Views for existing XML layout–based apps.

Get Started
Every integration starts the same way — install the SDK, initialize, and log in — then you build the UI with your chosen toolkit. Start with the prerequisites, then pick a path:Prerequisites & Setup
App credentials, Gradle install,
init(), and login() — shared by both toolkitsJetpack Compose
Build your chat UI with native Material 3 composables
Kotlin (XML Views)
Build your chat UI with drop-in XML Views
Try It
See the UI Kit in action before you write any code:Google Play Demo
Try the full chat experience on your device
Sample App
Clone, add your credentials, and start building


Explore
Components
Browse all prebuilt UI components
Features
Chat, calling, AI, and extensions
Theming
Colors, fonts, dark mode, and custom styling
Guides
Threaded messages, new chat, search, and more
Key Concepts
Essential terminology and platform features
Architecture
How components, ViewModels, and data flow fit together
Upgrading from 6.3.0
UI Kit 6.4.0 adds RTL support. Libraries compiled against 6.3.0 keep working without a rebuild, and existing calls compile unchanged, except Views bubble-margin calls that use named arguments (below). A few behaviors change:android:supportsRtl. The Kotlin (XML Views) UI Kit no longer adds it to your app. Addandroid:supportsRtl="true"to your<application>to keep RTL layouts.CometChatLocalize.setLocalechanges the UI Kit’s language only, not its layout direction. To show Arabic right to left, set the app’s language withAppCompatDelegate.setApplicationLocales, or callCometChatUIKit.setLayoutDirection(CometChatLayoutDirection.RTL).CometChatLocalize.isRtl(context)is deprecated, and is removed in the next major version. Readview.layoutDirection(Views) orLocalLayoutDirection.current(Compose) instead.- Group action lines, such as “Andrew added George”, are translated and say “You” for the logged-in user. To change the wording, override the keys in Group Action Messages.
- Short messages, such as offline notices and download messages, appear as snackbars instead of toasts.
- Bubble margins (Views).
setBubbleMargin,setLeftBubbleMarginandsetRightBubbleMarginon Message List and Thread Header takestartandendinstead ofleftandright, so the margins mirror in RTL. Calls that pass the values by position compile unchanged; renameleft =andright =named arguments tostart =andend =.
Upgrading from 6.2.x
UI Kit 6.3.0 brings in Chat SDK 5.1.2. Two changes can affect your own code, whether or not you turn on offline support:- Pin, save and conversation-pin callbacks. The SDK no longer calls
onMessagePinned,onMessageUnpinned,onMessageSaved,onMessageUnsaved,onConversationPinnedoronConversationUnpinnedon the device that made the change. If your own UI updates from those callbacks, update it in the call’sonSuccessinstead, or observe the UI Kit’sMessagePinned/MessageUnpinned/MessageSaved/MessageUnsavedevents. The UI Kit’s components already do this. - Unit tests. If your tests stub
fetchNext(any())orfetchPrevious(any())on SDK request classes such asConversationsRequest, give the matcher a type: the SDK now has a second overload of these methods.
Resources
Sample App
Working reference app
Figma
Design resources and prototyping
Migration Guide
Upgrading from v5
Troubleshooting
Common issues and fixes
Support
Open a support ticket