Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions docs.json
Original file line number Diff line number Diff line change
Expand Up @@ -1757,6 +1757,7 @@
"ui-kit/android/component-styling",
"ui-kit/android/message-bubble-styling",
"ui-kit/android/localize",
"ui-kit/android/rtl-support",
"ui-kit/android/sound-manager"
]
},
Expand Down
30 changes: 30 additions & 0 deletions ui-kit/android/ai-assistant-chat-history.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -314,6 +314,7 @@ What you're changing: Small functional customizations such as setting the user a
| `setUser` | Sets the user whose chat histories with the AI assistant need to be fetched. This is a required property for the component to function. The user's role must be `@agentic`. | `.setUser(user);` |
| `setErrorStateVisibility` | Toggles the visibility of the error state of the component | `.setErrorStateVisibility(View.GONE);` |
| `setEmptyStateVisibility` | Toggles the visibility of the empty state of the component | `.setEmptyStateVisibility(View.GONE);` |
| `setCometChatLayoutDirection` | Layout direction for this component and everything inside it: `LTR` or `RTL`. Overrides the global setting; unset inherits it. See [RTL Support](/ui-kit/android/rtl-support) | `.setCometChatLayoutDirection(CometChatLayoutDirection.RTL);` |

- **Verify**: After calling `setUser(user)`, confirm the component fetches and displays the AI assistant chat histories for that user. After calling a visibility method, confirm the corresponding UI state is shown or hidden.

Expand All @@ -339,6 +340,35 @@ What you're changing: Small functional customizations such as setting the user a
| Error state visibility | Activity/Fragment | `setErrorStateVisibility(int)` | `.setErrorStateVisibility(View.GONE);` |
| Empty state visibility | Activity/Fragment | `setEmptyStateVisibility(int)` | `.setEmptyStateVisibility(View.GONE);` |

## Layout Direction

`CometChatAIAssistantChatHistory` follows the UI Kit's layout direction. Set it for this component only to override the global setting for `CometChatAIAssistantChatHistory` and everything inside it. See [RTL Support](/ui-kit/android/rtl-support).

<Tabs>
<Tab title="Kotlin (XML Views)">
```xml
<com.cometchat.uikit.kotlin.presentation.aiassistantchathistory.ui.CometChatAIAssistantChatHistory
android:layout_width="match_parent"
android:layout_height="match_parent"
app:cometchatLayoutDirection="rtl" />
```

```kotlin
chatHistory.setCometChatLayoutDirection(CometChatLayoutDirection.RTL)
```
</Tab>
<Tab title="Jetpack Compose">
```kotlin
CometChatAIAssistantChatHistory(
// ...your other parameters
layoutDirection = CometChatLayoutDirection.RTL
)
```
</Tab>
</Tabs>

---

## Next Steps

<CardGroup cols={2}>
Expand Down
30 changes: 30 additions & 0 deletions ui-kit/android/call-buttons.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,7 @@ A second call is refused with `ACTIVE_CALL` while a Calls SDK session is prepare
| `setOnError { }` | `onError = { }` | Error callback |
| `setVoiceCallButtonVisibility(View.GONE)` | `hideVoiceCallButton = true` | Toggle voice call button |
| `setVideoCallButtonVisibility(View.GONE)` | `hideVideoCallButton = true` | Toggle video call button |
| `setCometChatLayoutDirection(CometChatLayoutDirection.RTL)` | `layoutDirection = CometChatLayoutDirection.RTL` | Layout direction for this component and everything inside it: `LTR` or `RTL`. Overrides the global setting; unset inherits it. See [RTL Support](/ui-kit/android/rtl-support) |

---

Expand Down Expand Up @@ -326,6 +327,35 @@ See [ViewModel & Data](/ui-kit/android/customization-viewmodel-data) for state o

---

## Layout Direction

`CometChatCallButtons` follows the UI Kit's layout direction. Set it for this component only to override the global setting for `CometChatCallButtons` and everything inside it. See [RTL Support](/ui-kit/android/rtl-support).

<Tabs>
<Tab title="Kotlin (XML Views)">
```xml
<com.cometchat.uikit.kotlin.presentation.callbuttons.CometChatCallButtons
android:layout_width="match_parent"
android:layout_height="match_parent"
app:cometchatLayoutDirection="rtl" />
```

```kotlin
callButtons.setCometChatLayoutDirection(CometChatLayoutDirection.RTL)
```
</Tab>
<Tab title="Jetpack Compose">
```kotlin
CometChatCallButtons(
// ...your other parameters
layoutDirection = CometChatLayoutDirection.RTL
)
```
</Tab>
</Tabs>

---

## Next Steps

<CardGroup cols={2}>
Expand Down
30 changes: 30 additions & 0 deletions ui-kit/android/call-logs.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

| Calls artifact | `uiKit.enableCalling` | Result |
|---|---|---|
| absent | anything | Empty list; logcat warns `Calls SDK is not on the classpath; skipping call-log fetch` |

Check warning on line 23 in ui-kit/android/call-logs.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

Vale.Spelling

Did you really mean 'logcat'?
| present | `false` | Error state; the Calls SDK reports `Please call the CometChatCalls.init() method …` |
| present | `true` | renders (empty/error state when there are no logs) |

Expand Down Expand Up @@ -393,6 +393,7 @@
| `setSeparatorVisibility(View.GONE)` | `hideSeparator = true` | Toggle list separators |
| `setTitle("Call History")` | `title = "Call History"` | Custom toolbar title |
| `setOnCallTypeIconClick { }` | `onCallIconClick = { }` | Override the call-back on the row's call icon |
| `setCometChatLayoutDirection(CometChatLayoutDirection.RTL)` | `layoutDirection = CometChatLayoutDirection.RTL` | Layout direction for this component and everything inside it: `LTR` or `RTL`. Overrides the global setting; unset inherits it. See [RTL Support](/ui-kit/android/rtl-support) |

### Call status

Expand Down Expand Up @@ -912,6 +913,35 @@

---

## Layout Direction

`CometChatCallLogs` follows the UI Kit's layout direction. Set it for this component only to override the global setting for `CometChatCallLogs` and everything inside it. See [RTL Support](/ui-kit/android/rtl-support).

<Tabs>
<Tab title="Kotlin (XML Views)">
```xml
<com.cometchat.uikit.kotlin.presentation.calllogs.ui.CometChatCallLogs
android:layout_width="match_parent"
android:layout_height="match_parent"
app:cometchatLayoutDirection="rtl" />
```

```kotlin
callLogs.setCometChatLayoutDirection(CometChatLayoutDirection.RTL)
```
</Tab>
<Tab title="Jetpack Compose">
```kotlin
CometChatCallLogs(
// ...your other parameters
layoutDirection = CometChatLayoutDirection.RTL
)
```
</Tab>
</Tabs>

---

## Next Steps

<CardGroup cols={2}>
Expand Down
4 changes: 2 additions & 2 deletions ui-kit/android/calling-integration.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
<Tab title="Kotlin (XML Views)">
```kotlin build.gradle.kts
dependencies {
implementation("com.cometchat:chatuikit-kotlin-android:6.3.0")
implementation("com.cometchat:chatuikit-kotlin-android:6.3.1")
implementation("com.cometchat:calls-sdk-android:5.1.0")
implementation("com.cometchat:push-notifications-android:2.0.0")
implementation("com.cometchat:push-notifications-calls-android:2.0.0")
Expand All @@ -52,7 +52,7 @@
<Tab title="Jetpack Compose">
```kotlin build.gradle.kts
dependencies {
implementation("com.cometchat:chatuikit-compose-android:6.3.0")
implementation("com.cometchat:chatuikit-compose-android:6.3.1")
implementation("com.cometchat:calls-sdk-android:5.1.0")
implementation("com.cometchat:push-notifications-android:2.0.0")
implementation("com.cometchat:push-notifications-calls-android:2.0.0")
Expand All @@ -66,7 +66,7 @@
Apply the `google-services` plugin and put `google-services.json` in the app module. `minSdk` must be 28 or higher, the UI Kit's minimum.

<Warning>
**`setEnableCalling(true)` and the `calls-sdk-android` artifact are a pair.** UI Kit 6.2.0 and later check for the Calls SDK during `init`: with the flag on and the artifact missing it logs `enableCalling=true but the CometChat Calls SDK is not on the classpath; skipping Calls init`, finishes chat init without calling. The calling components then fail quietly, each with its own `Calls SDK is not on the classpath` warning in logcat: Call Logs shows an empty list, the call buttons fail with `CALLS_SDK_MISSING`, and the call screen does not start. UI Kits before 6.2.0 crashed at launch with `NoClassDefFoundError` instead. The UI Kit requires `calls-sdk-android` 5.1 or newer and `push-notifications-android` / `push-notifications-calls-android` 2.0 or newer.

Check warning on line 69 in ui-kit/android/calling-integration.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

Vale.Spelling

Did you really mean 'logcat'?
</Warning>

## Step 2: Enable calling in the UI Kit
Expand Down Expand Up @@ -111,7 +111,7 @@
Run this in `Application.onCreate` from stored credentials, not only after a screen opens. A push can start the app process to ring a call, and the answer must find a ready SDK.

<Warning>
**Enabling calling in an app that already has logged-in users requires a re-login.** `CometChatUIKit.login()` short-circuits when the same uid already has a persisted session, so the Calls SDK never logs in: the Calls SDK has no auth token and `CometChatCallLogs` shows a silent error state (logcat: `User auth token cannot be null`). After calling is first enabled, log out and log in again (`CometChatUIKit.logout(...)` then `CometChatUIKit.login(...)`), and wire `onError` on `CometChatCallLogs` during development so this failure is visible.

Check warning on line 114 in ui-kit/android/calling-integration.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

Vale.Spelling

Use 'UID' instead of 'uid'.

Check warning on line 114 in ui-kit/android/calling-integration.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

Vale.Spelling

Did you really mean 'logcat'?
</Warning>

## Step 3: Configure push ringing
Expand Down Expand Up @@ -292,7 +292,7 @@
| Moment | What happens | Component |
|--------|--------------|-----------|
| Tap a call button | `CometChatCalls.initiateCall`, then the outgoing screen opens | [Call Buttons](/ui-kit/android/call-buttons) |
| Waiting | "calling…", then "ringing…" when the callee's device is reached; End cancels the call; 45 s with no answer ends it as unanswered | [Outgoing Call](/ui-kit/android/outgoing-call) |

Check warning on line 295 in ui-kit/android/calling-integration.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

Vale.Spelling

Did you really mean 'callee's'?
| Callee declines / is busy / does not answer | The outgoing screen closes with the reason | Outgoing Call |
| Incoming call | The Push SDK rings and draws the incoming-call screen | Push SDK (no UI Kit component) |
| Answer | Your answer activity opens `CometChatOngoingCallActivity`, which joins the session | [Ongoing Call](/ui-kit/android/ongoing-call) |
Expand Down Expand Up @@ -385,7 +385,7 @@

Without this line, the screen still uses the UI Kit's default colours. The UI Kit overrides the `cometchat_pn_call_*` colour resources with its light and dark palette at build time. Those overrides win over the Push SDK's defaults only when your app lists the UI Kit dependency before the Push SDK artifacts. Your app's own overrides always win.

To change a single colour, override its resource, or chain any `CometChatPNIncomingCallTheme.Colors.Builder` setter after mapping. The full list of colours, strings, drawables and the layout is under [Theming the SDK's incoming-call screen](/calls/android/voip-calling#theming-the-sdks-incoming-call-screen). To draw the screen yourself, register your own activity with `setIncomingCallActivity`, for example one that hosts the deprecated [Incoming Call](/ui-kit/android/incoming-call) component. The UI Kit's `CometChatCallActivity` does not work there: it does not read the call the Push SDK passes in its intent, so it would open empty.

Check warning on line 388 in ui-kit/android/calling-integration.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

Vale.Spelling

Did you really mean 'drawables'?

## Upgrading from an app that used `CometChat.addCallListener`

Expand Down
34 changes: 32 additions & 2 deletions ui-kit/android/conversations.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -432,13 +432,13 @@

A pinned conversation sits at the top of the list and holds that position even as new messages arrive in other chats. The pin is **private to the logged-in user** — nobody else sees it — and it syncs to that user's other devices.

When the feature is enabled for your app, the long-press menu includes **Pin conversation** / **Unpin conversation** with no wiring needed: pinning applies immediately with a toast, unpinning asks for confirmation first, and a pinned row shows a pin indicator next to its timestamp.
When the feature is enabled for your app, the long-press menu includes **Pin conversation** / **Unpin conversation** with no wiring needed: pinning applies immediately with a snackbar, unpinning asks for confirmation first, and a pinned row shows a pin indicator next to its timestamp.

Check warning on line 435 in ui-kit/android/conversations.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

Vale.Spelling

Did you really mean 'snackbar'?

<Warning>
**Pin Conversation must be enabled for your app** through the `features.ux.conversations.pinned.enabled` app setting in the CometChat Dashboard. Until it is, the option never renders, and a direct SDK call rejects with `ERR_FEATURE_NOT_ACCESSIBLE`. The UI Kit reads that setting itself at login and on every reconnect — there is no app code to write. Read it yourself with `CometChatUIKit.isPinConversationEnabled()` when you need to gate your own entry point.
</Warning>

`setPinConversationOptionVisibility(View.GONE)` (Compose: `hidePinOption = true`) hides the option on one particular list. It is **ANDed** with that app setting, so the option renders only when both allow it.

Check warning on line 441 in ui-kit/android/conversations.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

Vale.Spelling

Did you really mean 'ANDed'?

<Tabs>
<Tab title="Kotlin (XML Views)">
Expand Down Expand Up @@ -487,7 +487,8 @@
| `setTitle("Chats")` | `title = "Chats"` | Custom toolbar title |
| `setSearchPlaceholderText("Search...")` | `searchPlaceholderText = "Search..."` | Search placeholder |
| `setPinConversationOptionVisibility(View.GONE)` | `hidePinOption = true` | Hide the built-in Pin/Unpin conversation option |
| `setHideOfflineNotices(true)` | `hideOfflineNotices = true` | Hide the offline notice toasts (default `false`). Notices that aren't about one chat, such as unsent messages that were lost, show once on the next Conversations or Message List that doesn't hide notices. Offline support only, from v6.3.0 |
| `setHideOfflineNotices(true)` | `hideOfflineNotices = true` | Hide the offline notice snackbars (default `false`). Notices that aren't about one chat, such as unsent messages that were lost, show once on the next Conversations or Message List that doesn't hide notices. Offline support only, from v6.3.0 |

Check warning on line 490 in ui-kit/android/conversations.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

Vale.Spelling

Did you really mean 'snackbars'?
| `setCometChatLayoutDirection(CometChatLayoutDirection.RTL)` | `layoutDirection = CometChatLayoutDirection.RTL` | Layout direction for this component and everything inside it: `LTR` or `RTL`. Overrides the global setting; unset inherits it. See [RTL Support](/ui-kit/android/rtl-support) |

With [offline support](/ui-kit/android/offline-support#lists-conversations-users-groups-and-group-members) on, the list shows saved conversations first, and **Connect to load chats** when nothing is saved and there is no connection. A chat whose last message is your own unsent message shows a clock, or a failed icon once sending failed.

Expand Down Expand Up @@ -993,6 +994,35 @@

---

## Layout Direction

`CometChatConversations` follows the UI Kit's layout direction. Set it for this component only to override the global setting for `CometChatConversations` and everything inside it. See [RTL Support](/ui-kit/android/rtl-support).

<Tabs>
<Tab title="Kotlin (XML Views)">
```xml
<com.cometchat.uikit.kotlin.presentation.conversations.ui.CometChatConversations
android:layout_width="match_parent"
android:layout_height="match_parent"
app:cometchatLayoutDirection="rtl" />
```

```kotlin
conversations.setCometChatLayoutDirection(CometChatLayoutDirection.RTL)
```
</Tab>
<Tab title="Jetpack Compose">
```kotlin
CometChatConversations(
// ...your other parameters
layoutDirection = CometChatLayoutDirection.RTL
)
```
</Tab>
</Tabs>

---

## Next Steps

<CardGroup cols={2}>
Expand Down
2 changes: 1 addition & 1 deletion ui-kit/android/core-features.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

| Field | Value |
| --- | --- |
| Packages | `com.cometchat:chatuikit-kotlin-android` (Kotlin XML Views), `com.cometchat:chatuikit-compose-android` (Jetpack Compose) |

Check warning on line 10 in ui-kit/android/core-features.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

Vale.Spelling

Did you really mean 'Jetpack'?
| Required setup | `CometChatUIKit.init()` then `CometChatUIKit.login()` — must complete before rendering any component |
| Core features | Instant Messaging, Media Sharing, Read Receipts, Mark as Unread, Typing Indicator, User Presence, Reactions, Mentions, Rich Text Formatting, Quoted Reply, Search, Threaded Conversations, Moderation, Report Message, Group Chat, Offline Support |
| Key components | `CometChatConversations`, `CometChatMessageList`, `CometChatMessageComposer`, `CometChatMessageHeader`, `CometChatUsers`, `CometChatGroups`, `CometChatGroupMembers`, `CometChatMessageInformation`, `CometChatThreadHeader` |
Expand Down Expand Up @@ -160,7 +160,7 @@
| `features.ux.messages.saved.enabled` | Whether the save options and screen render at all |
| `features.ux.messages.saved.limit` | Saved messages per user |

The UI Kit reads the feature flags at login, so no wiring is needed to show or hide the options. When a user reaches a cap, the kit shows a toast naming the limit — no extra handling required. For a full walkthrough, see the [Pin & Save Messages guide](/ui-kit/android/guide-pin-and-save-messages).
The UI Kit reads the feature flags at login, so no wiring is needed to show or hide the options. When a user reaches a cap, the kit shows a snackbar naming the limit — no extra handling required. For a full walkthrough, see the [Pin & Save Messages guide](/ui-kit/android/guide-pin-and-save-messages).

Check warning on line 163 in ui-kit/android/core-features.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

Vale.Spelling

Did you really mean 'snackbar'?

## Pin Conversations

Expand Down
6 changes: 6 additions & 0 deletions ui-kit/android/customization-view-slots.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,12 @@ The composer's trailing-toolbar slot additionally hands your view a live `Compos

---

## View Slots in RTL

Views you pass into a slot are placed inside the component's layout direction. Use start/end values (`paddingStart`, `layout_marginEnd`, `Modifier.padding(start = …)`, `Alignment.Start`) so they mirror with the rest of the component in RTL. See [Custom Views in RTL](/ui-kit/android/rtl-support#custom-views-in-rtl).

---

## Related

- [Styles](/ui-kit/android/customization-styles) — Customize visual appearance without replacing views.
Expand Down
2 changes: 1 addition & 1 deletion ui-kit/android/getting-started-jetpack.mdx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: "Getting Started With Jetpack Compose UI Kit"

Check warning on line 2 in ui-kit/android/getting-started-jetpack.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

Vale.Spelling

Did you really mean 'Jetpack'?
sidebarTitle: "Jetpack Compose"

Check warning on line 3 in ui-kit/android/getting-started-jetpack.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

Vale.Spelling

Did you really mean 'Jetpack'?
description: "Step-by-step guide to integrate the CometChat Jetpack Compose UI Kit into your Android app."

Check warning on line 4 in ui-kit/android/getting-started-jetpack.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

Vale.Spelling

Did you really mean 'Jetpack'?
---

<Accordion title="AI Integration Quick Reference">
Expand All @@ -9,7 +9,7 @@
| Field | Value |
| --- | --- |
| Package | `com.cometchat:chatuikit-compose-android` |
| UI Layer | Jetpack Compose (Material 3) |

Check warning on line 12 in ui-kit/android/getting-started-jetpack.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

Vale.Spelling

Did you really mean 'Jetpack'?
| Init | `CometChatUIKit.init(context, UIKitSettings, callback)` — must resolve before `login()` |
| Login | `CometChatUIKit.login("UID", callback)` — must resolve before rendering components |
| Order | `init()` → `login()` → render. Breaking this order = blank screen |
Expand All @@ -20,7 +20,7 @@

</Accordion>

This guide walks you through integrating the CometChat Jetpack Compose UI Kit into an Android app. All UI components are native Compose composables built with Material 3. By the end you'll have a working chat UI.

Check warning on line 23 in ui-kit/android/getting-started-jetpack.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

Vale.Spelling

Did you really mean 'Jetpack'?

---

Expand Down Expand Up @@ -117,7 +117,7 @@
implementation("androidx.compose.material3:material3")

// CometChat Jetpack Compose UI Kit
implementation("com.cometchat:chatuikit-compose-android:6.3.0")
implementation("com.cometchat:chatuikit-compose-android:6.3.1")
// Voice/video calling: the UI Kit does not bundle the Calls SDK, so add it here. Incoming
// calls ring through the Push Notifications SDK and Firebase Messaging, added in Calling Integration.
implementation("com.cometchat:calls-sdk-android:5.1.0")
Expand All @@ -137,7 +137,7 @@
<Warning>
**Required dependency exclude.** The UI Kit pulls `io.noties:prism4j`, which brings
`org.jetbrains:annotations-java5:17.0.0`. That duplicates `org.jetbrains:annotations:23.0.0` from
AndroidX/Kotlin and the build fails at dexing with ~40 `Duplicate class org.jetbrains.annotations.*`

Check warning on line 140 in ui-kit/android/getting-started-jetpack.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

Vale.Spelling

Did you really mean 'dexing'?
errors. Add this to your app module:

```kotlin
Expand Down Expand Up @@ -258,7 +258,7 @@
Sequential navigation — conversation list as the entry point, tap a conversation to open a full-screen message view.

<Card title="Build Conversation List + Message View" href="/ui-kit/android/conversation-message-view" icon="comments">
Step-by-step guide to build this layout with Jetpack Compose

Check warning on line 261 in ui-kit/android/getting-started-jetpack.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

Vale.Spelling

Did you really mean 'Jetpack'?
</Card>

---
Expand Down
2 changes: 1 addition & 1 deletion ui-kit/android/getting-started-kotlin.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@

dependencies {
// CometChat Kotlin UI Kit
implementation("com.cometchat:chatuikit-kotlin-android:6.3.0")
implementation("com.cometchat:chatuikit-kotlin-android:6.3.1")
// Voice/video calling: the UI Kit does not bundle the Calls SDK, so add it here. Incoming
// calls ring through the Push Notifications SDK and Firebase Messaging, added in Calling Integration.
implementation("com.cometchat:calls-sdk-android:5.1.0")
Expand All @@ -126,7 +126,7 @@

### Add AndroidX Support

UI Kit 6.2.0 and later build without Jetifier, so you don't need `android.enableJetifier`. Set it in `gradle.properties` only if another dependency of yours still uses the legacy support libraries; AGP 9 deprecates it and logs a warning:

Check warning on line 129 in ui-kit/android/getting-started-kotlin.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

Vale.Spelling

Did you really mean 'Jetifier'?

```properties gradle.properties
android.enableJetifier=true
Expand All @@ -137,7 +137,7 @@
<Warning>
**Required dependency exclude.** The UI Kit pulls `io.noties:prism4j`, which brings
`org.jetbrains:annotations-java5:17.0.0`. That duplicates `org.jetbrains:annotations:23.0.0` from
AndroidX/Kotlin and the build fails at dexing with ~40 `Duplicate class org.jetbrains.annotations.*`

Check warning on line 140 in ui-kit/android/getting-started-kotlin.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

Vale.Spelling

Did you really mean 'dexing'?
errors. Add this to your app module:

```kotlin
Expand Down
6 changes: 3 additions & 3 deletions ui-kit/android/getting-started.mdx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: "Getting Started With CometChat Android UI Kit"
sidebarTitle: "Integration"
description: "Install, configure, and launch the CometChat Android UI Kit in your app — choose Kotlin (XML Views) or Jetpack Compose."

Check warning on line 4 in ui-kit/android/getting-started.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

Vale.Spelling

Did you really mean 'Jetpack'?
---

<Accordion title="AI Integration Quick Reference">
Expand All @@ -9,7 +9,7 @@
| Field | Value |
| --- | --- |
| Kotlin (XML Views) | `com.cometchat:chatuikit-kotlin-android` v6.x |
| Jetpack Compose | `com.cometchat:chatuikit-compose-android` v6.x |

Check warning on line 12 in ui-kit/android/getting-started.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

Vale.Spelling

Did you really mean 'Jetpack'?
| Init | `CometChatUIKit.init(context, UIKitSettings, callback)` — must resolve before `login()` |
| Login | `CometChatUIKit.login("UID", callback)` — must resolve before rendering components |
| Order | `init()` → `login()` → render. Breaking this order = blank screen |
Expand Down Expand Up @@ -89,7 +89,7 @@

```toml libs.versions.toml
[versions]
cometchat-ui-kit = "6.3.0"
cometchat-ui-kit = "6.3.1"
cometchat-calls-sdk = "5.1.0" # for calling; the UI Kit does not bundle it
```

Expand Down Expand Up @@ -138,7 +138,7 @@
<Tab title="Kotlin (XML Views)">
```kotlin build.gradle.kts
dependencies {
implementation("com.cometchat:chatuikit-kotlin-android:6.3.0")
implementation("com.cometchat:chatuikit-kotlin-android:6.3.1")
// Calling: the UI Kit does not bundle the Calls SDK; push ringing is added in Calling Integration
implementation("com.cometchat:calls-sdk-android:5.1.0")
}
Expand All @@ -152,7 +152,7 @@
implementation(platform("androidx.compose:compose-bom:2025.06.00"))
implementation("androidx.compose.material3:material3")

implementation("com.cometchat:chatuikit-compose-android:6.3.0")
implementation("com.cometchat:chatuikit-compose-android:6.3.1")
// Calling: the UI Kit does not bundle the Calls SDK; push ringing is added in Calling Integration
implementation("com.cometchat:calls-sdk-android:5.1.0")
}
Expand All @@ -165,7 +165,7 @@

### Add AndroidX Support

UI Kit 6.2.0 and later build without Jetifier, so you don't need `android.enableJetifier`. Set it in `gradle.properties` only if another dependency of yours still uses the legacy support libraries; AGP 9 deprecates it and logs a warning:

Check warning on line 168 in ui-kit/android/getting-started.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

Vale.Spelling

Did you really mean 'Jetifier'?

```properties gradle.properties
android.enableJetifier=true
Expand Down
30 changes: 30 additions & 0 deletions ui-kit/android/group-members.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -423,6 +423,7 @@ The component listens to these SDK events internally. No manual setup needed.
| `setSelectionMode(MULTIPLE)` | `selectionMode = MULTIPLE` | Enable selection mode |
| `setTitle("Members")` | `title = "Members"` | Custom toolbar title |
| `setSearchPlaceholderText("Find...")` | `searchPlaceholderText = "Find..."` | Search placeholder |
| `setCometChatLayoutDirection(CometChatLayoutDirection.RTL)` | `layoutDirection = CometChatLayoutDirection.RTL` | Layout direction for this component and everything inside it: `LTR` or `RTL`. Overrides the global setting; unset inherits it. See [RTL Support](/ui-kit/android/rtl-support) |

---

Expand Down Expand Up @@ -976,6 +977,35 @@ See [Component Styling](/ui-kit/android/component-styling) for the full referenc

---

## Layout Direction

`CometChatGroupMembers` follows the UI Kit's layout direction. Set it for this component only to override the global setting for `CometChatGroupMembers` and everything inside it. See [RTL Support](/ui-kit/android/rtl-support).

<Tabs>
<Tab title="Kotlin (XML Views)">
```xml
<com.cometchat.uikit.kotlin.presentation.groupmembers.ui.CometChatGroupMembers
android:layout_width="match_parent"
android:layout_height="match_parent"
app:cometchatLayoutDirection="rtl" />
```

```kotlin
groupMembers.setCometChatLayoutDirection(CometChatLayoutDirection.RTL)
```
</Tab>
<Tab title="Jetpack Compose">
```kotlin
CometChatGroupMembers(
// ...your other parameters
layoutDirection = CometChatLayoutDirection.RTL
)
```
</Tab>
</Tabs>

---

## Next Steps

<CardGroup cols={2}>
Expand Down
30 changes: 30 additions & 0 deletions ui-kit/android/groups.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -412,6 +412,7 @@ The component listens to these SDK events internally. No manual setup needed.
| `setSelectionMode(MULTIPLE)` | `selectionMode = MULTIPLE` | Enable selection mode |
| `setTitle("My Groups")` | `title = "My Groups"` | Custom toolbar title |
| `setSearchPlaceholderText("Find...")` | `searchPlaceholderText = "Find..."` | Search placeholder |
| `setCometChatLayoutDirection(CometChatLayoutDirection.RTL)` | `layoutDirection = CometChatLayoutDirection.RTL` | Layout direction for this component and everything inside it: `LTR` or `RTL`. Overrides the global setting; unset inherits it. See [RTL Support](/ui-kit/android/rtl-support) |

---

Expand Down Expand Up @@ -956,6 +957,35 @@ See [Component Styling](/ui-kit/android/component-styling) for the full referenc

---

## Layout Direction

`CometChatGroups` follows the UI Kit's layout direction. Set it for this component only to override the global setting for `CometChatGroups` and everything inside it. See [RTL Support](/ui-kit/android/rtl-support).

<Tabs>
<Tab title="Kotlin (XML Views)">
```xml
<com.cometchat.uikit.kotlin.presentation.groups.ui.CometChatGroups
android:layout_width="match_parent"
android:layout_height="match_parent"
app:cometchatLayoutDirection="rtl" />
```

```kotlin
groups.setCometChatLayoutDirection(CometChatLayoutDirection.RTL)
```
</Tab>
<Tab title="Jetpack Compose">
```kotlin
CometChatGroups(
// ...your other parameters
layoutDirection = CometChatLayoutDirection.RTL
)
```
</Tab>
</Tabs>

---

## Next Steps

<CardGroup cols={2}>
Expand Down
Loading