AI Integration Quick Reference
AI Integration Quick Reference
| Field | Value |
|---|---|
| Components | CometChatConversations, CometChatMessageHeader, CometChatMessageList, CometChatMessageComposer |
| Layout | Sequential navigation — conversation list → full-screen message view |
| Prerequisite | Complete Kotlin Integration or Jetpack Compose Integration Steps 1–3 first |
| Pattern | WhatsApp, Slack, Telegram |
What You’re Building
Three sections working together:- Conversation list — shows all active conversations (users and groups)
- Message header — displays user/group name, avatar, and status
- Message list + composer — chat history with real-time updates and text input
- Kotlin (XML Views)
- Jetpack Compose
This implementation uses Android’s standard Activity navigation:
ConversationActivity displays the list, user taps a conversation, MessageActivity launches with the selected user/group data via Intent extras.Step 1: Set Up the Conversation List
- Kotlin (XML Views)
- Jetpack Compose
Create a new Activity called Activity —
ConversationActivity to display the list of conversations.Layout — activity_conversation.xml:activity_conversation.xml
ConversationActivity.kt:ConversationActivity.kt
Step 2: Set Up the Message Screen
- Kotlin (XML Views)
- Jetpack Compose
Create a new Activity — Activity —
MessageActivity to display the chat interface.Layout — activity_message.xml:activity_message.xml
MessageActivity.kt:MessageActivity.kt
Step 3: Update MainActivity
- Kotlin (XML Views)
- Jetpack Compose
Update your
MainActivity to launch ConversationActivity after successful login:MainActivity.kt
Step 4: Register Activities & Permissions
- Kotlin (XML Views)
- Jetpack Compose
Add the new activities to your
AndroidManifest.xml:AndroidManifest.xml
AndroidManifest.xml:
AndroidManifest.xml
Next Steps
Components Overview
Explore all available UI Kit components and their customization options
Theming
Customize colors, fonts, and styles to match your brand
Integration
Back to the main integration guide
Feature Guides
Add capabilities like threaded messages, blocking, and group management