Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
0f7cb3b
docs: improve SEO titles for Flutter SDK and UI Kit pages
mintlify[bot] Jun 24, 2026
0e60942
Merge remote-tracking branch 'origin/main' into mintlify/715169f7
mintlify[bot] Jun 24, 2026
b3bd07a
docs: improve SEO titles and descriptions for Android SDK v5 pages
mintlify[bot] Jun 24, 2026
36767d0
Merge remote-tracking branch 'origin/main' into mintlify/715169f7
mintlify[bot] Jun 26, 2026
39623a5
docs: improve SEO titles and descriptions for React Native UI Kit pages
mintlify[bot] Jun 26, 2026
5699ffa
Merge remote-tracking branch 'origin/main' into mintlify/715169f7
mintlify[bot] Jun 26, 2026
8f64c44
docs: improve SEO title and description for React UI Kit migration pr…
mintlify[bot] Jun 26, 2026
74b8ddc
Merge remote-tracking branch 'origin/main' into mintlify/715169f7
mintlify[bot] Jul 2, 2026
c9f8b96
docs: improve SEO titles and descriptions for Android SDK and UI Kit …
mintlify[bot] Jul 2, 2026
4031bc4
Merge remote-tracking branch 'origin/main' into mintlify/715169f7
mintlify[bot] Jul 2, 2026
1df2438
docs: improve SEO titles and descriptions for React Native SDK and UI…
mintlify[bot] Jul 2, 2026
d27c577
Merge remote-tracking branch 'origin/main' into mintlify/715169f7
mintlify[bot] Jul 2, 2026
1288ee7
docs: improve SEO title and description for React Native AI Agent guide
mintlify[bot] Jul 2, 2026
7d6b83d
Merge remote-tracking branch 'origin/main' into mintlify/715169f7
mintlify[bot] Jul 2, 2026
5aee3a3
docs: improve SEO titles and descriptions for Android UI Kit v6 pages
mintlify[bot] Jul 2, 2026
8b60439
Merge remote-tracking branch 'origin/main' into mintlify/715169f7
mintlify[bot] Jul 2, 2026
a20df2b
docs: improve SEO titles and descriptions for Flutter SDK and UI Kit …
mintlify[bot] Jul 2, 2026
f0c9603
Merge remote-tracking branch 'origin/main' into mintlify/715169f7
mintlify[bot] Jul 3, 2026
dc2a614
docs: improve SEO titles and descriptions for iOS SDK and UI Kit pages
mintlify[bot] Jul 3, 2026
687c4c5
Merge remote-tracking branch 'origin/main' into mintlify/715169f7
mintlify[bot] Jul 6, 2026
91bd4dd
docs: improve SEO titles and descriptions for Angular UI Kit card pages
mintlify[bot] Jul 6, 2026
3445b08
Merge remote-tracking branch 'origin/main' into mintlify/715169f7
mintlify[bot] Jul 6, 2026
5f7c6ef
docs: improve SEO titles and descriptions for JavaScript SDK card mes…
mintlify[bot] Jul 6, 2026
38ef188
docs: improve SEO titles and descriptions for React UI Kit v7 card pages
mintlify[bot] Jul 6, 2026
cc396f8
docs: improve SEO titles and descriptions for React UI Kit v6 card pages
mintlify[bot] Jul 6, 2026
8066fad
Merge remote-tracking branch 'origin/main' into mintlify/715169f7
mintlify[bot] Jul 7, 2026
44332db
docs: improve SEO title and description for React AI Assistant Chat page
mintlify[bot] Jul 7, 2026
38eff0e
Merge remote-tracking branch 'origin/main' into mintlify/715169f7
mintlify[bot] Jul 8, 2026
0b8877f
docs: improve SEO titles and descriptions for Angular UI Kit v5 pages
mintlify[bot] Jul 8, 2026
5507743
docs: improve SEO title and description for React v6 AI Assistant Cha…
mintlify[bot] Jul 8, 2026
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
2 changes: 1 addition & 1 deletion calls/flutter/setup.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: "Setup"
title: "Set up the CometChat Calls SDK for Flutter"
sidebarTitle: "Setup"
sdk_version: "5.x"
description: "Set up CometChat Calls SDK v5 for Flutter with installation, app credentials, initialization, authentication, and a basic calling flow."
Expand Down Expand Up @@ -74,7 +74,7 @@

## Initialize CometChat Calls

The `init()` method initializes the SDK with your app credentials. Call this method once when your application starts, typically in your `main()` function or root widget's `initState()`.

Check warning on line 77 in calls/flutter/setup.mdx

View check run for this annotation

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

calls/flutter/setup.mdx#L77

Did you really mean 'widget's'?

### CallAppSettingBuilder

Expand Down
4 changes: 2 additions & 2 deletions sdk/android/ai-agents.mdx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: "AI Agents"
title: "AI Agents in the CometChat Android SDK"
sidebarTitle: "AI Agents"
description: "Integrate AI-powered agents for intelligent, automated interactions in the CometChat Android SDK."
description: "Integrate AI-powered agents into your Android app with the CometChat SDK for intelligent, automated conversations, tool calls, and streaming responses."
---

<Accordion title="AI Integration Quick Reference">
Expand Down Expand Up @@ -31,10 +31,10 @@

## Agent Run Lifecycle and Message Flow

This section explains how a user's text message to an Agent becomes a structured "run" which emits real-time events and then produces agentic messages for historical retrieval.

Check warning on line 34 in sdk/android/ai-agents.mdx

View check run for this annotation

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

sdk/android/ai-agents.mdx#L34

Did you really mean 'agentic'?
- A user sends a text message to an Agent.
- The platform starts a run and streams real-time events via the **`AIAssistantListener`**.
- After the run completes, persisted Agentic Messages arrive via the **`MessageListener`**.

Check warning on line 37 in sdk/android/ai-agents.mdx

View check run for this annotation

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

sdk/android/ai-agents.mdx#L37

Did you really mean 'Agentic'?

### Real-time Events
Events are received via the **`onAIAssistantEventReceived`** method of the **`AIAssistantListener`** class as [`AIAssistantBaseEvent`](/sdk/reference/messages#aiassistantbaseevent) objects in this general order:
Expand Down Expand Up @@ -97,7 +97,7 @@
- Text Message End: The agent reply is complete.
- Run Finished: The run is finalized; persisted messages will follow.

### Agentic Messages

Check warning on line 100 in sdk/android/ai-agents.mdx

View check run for this annotation

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

sdk/android/ai-agents.mdx#L100

Did you really mean 'Agentic'?

These events are received via the **`MessageListener`** after the run completes.
- `AIAssistantMessage`: The full assistant reply.
Expand Down Expand Up @@ -153,7 +153,7 @@
</Tabs>


## Agentic Message Payload Structures

Check warning on line 156 in sdk/android/ai-agents.mdx

View check run for this annotation

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

sdk/android/ai-agents.mdx#L156

Did you really mean 'Agentic'?

<Accordion title="AIAssistantMessage Object">

Expand All @@ -172,7 +172,7 @@
| `sentAt` | long | Unix timestamp when sent |
| `deliveredAt` | long | Unix timestamp when delivered |
| `readAt` | long | Unix timestamp when read |
| `metadata` | JSONObject | Custom message metadata |

Check warning on line 175 in sdk/android/ai-agents.mdx

View check run for this annotation

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

sdk/android/ai-agents.mdx#L175

Did you really mean 'JSONObject'?
| `readByMeAt` | long | When logged-in user read message |
| `deliveredToMeAt` | long | When delivered to logged-in user |
| `deletedAt` | long | Unix timestamp when deleted (0 if not deleted) |
Expand Down Expand Up @@ -203,24 +203,24 @@
"uid": "user_456",
"name": "Jane Smith"
},
"receiverUid": "user_456",

Check warning on line 206 in sdk/android/ai-agents.mdx

View check run for this annotation

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

sdk/android/ai-agents.mdx#L206

Did you really mean 'receiverUid'?
"type": "assistant",
"receiverType": "user",

Check warning on line 208 in sdk/android/ai-agents.mdx

View check run for this annotation

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

sdk/android/ai-agents.mdx#L208

Did you really mean 'receiverType'?
"category": "agentic",

Check warning on line 209 in sdk/android/ai-agents.mdx

View check run for this annotation

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

sdk/android/ai-agents.mdx#L209

Did you really mean 'agentic'?
"sentAt": 1699900000,

Check warning on line 210 in sdk/android/ai-agents.mdx

View check run for this annotation

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

sdk/android/ai-agents.mdx#L210

Did you really mean 'sentAt'?
"deliveredAt": 1699900001,

Check warning on line 211 in sdk/android/ai-agents.mdx

View check run for this annotation

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

sdk/android/ai-agents.mdx#L211

Did you really mean 'deliveredAt'?
"readAt": 1699900002,

Check warning on line 212 in sdk/android/ai-agents.mdx

View check run for this annotation

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

sdk/android/ai-agents.mdx#L212

Did you really mean 'readAt'?
"metadata": {"priority": "high"},
"readByMeAt": 1699900002,
"deliveredToMeAt": 1699900001,
"deletedAt": 0,

Check warning on line 216 in sdk/android/ai-agents.mdx

View check run for this annotation

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

sdk/android/ai-agents.mdx#L216

Did you really mean 'deletedAt'?
"editedAt": 0,

Check warning on line 217 in sdk/android/ai-agents.mdx

View check run for this annotation

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

sdk/android/ai-agents.mdx#L217

Did you really mean 'editedAt'?
"deletedBy": null,

Check warning on line 218 in sdk/android/ai-agents.mdx

View check run for this annotation

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

sdk/android/ai-agents.mdx#L218

Did you really mean 'deletedBy'?
"editedBy": null,

Check warning on line 219 in sdk/android/ai-agents.mdx

View check run for this annotation

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

sdk/android/ai-agents.mdx#L219

Did you really mean 'editedBy'?
"updatedAt": 1699900000,

Check warning on line 220 in sdk/android/ai-agents.mdx

View check run for this annotation

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

sdk/android/ai-agents.mdx#L220

Did you really mean 'updatedAt'?
"conversationId": "user_123_user_456",

Check warning on line 221 in sdk/android/ai-agents.mdx

View check run for this annotation

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

sdk/android/ai-agents.mdx#L221

Did you really mean 'conversationId'?
"runId": 98765,

Check warning on line 222 in sdk/android/ai-agents.mdx

View check run for this annotation

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

sdk/android/ai-agents.mdx#L222

Did you really mean 'runId'?
"threadId": "thread_abc",

Check warning on line 223 in sdk/android/ai-agents.mdx

View check run for this annotation

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

sdk/android/ai-agents.mdx#L223

Did you really mean 'threadId'?

Check warning on line 223 in sdk/android/ai-agents.mdx

View check run for this annotation

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

sdk/android/ai-agents.mdx#L223

Did you really mean 'thread_abc'?
"text": "Here's the answer...",
"tags": ["ai-response"]
}
Expand Down Expand Up @@ -324,7 +324,7 @@
| `sentAt` | long | Unix timestamp when sent |
| `deliveredAt` | long | Unix timestamp when delivered |
| `readAt` | long | Unix timestamp when read |
| `metadata` | JSONObject | Custom message metadata |

Check warning on line 327 in sdk/android/ai-agents.mdx

View check run for this annotation

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

sdk/android/ai-agents.mdx#L327

Did you really mean 'JSONObject'?
| `readByMeAt` | long | When logged-in user read message |
| `deliveredToMeAt` | long | When delivered to logged-in user |
| `deletedAt` | long | Unix timestamp when deleted (0 if not deleted) |
Expand Down Expand Up @@ -390,7 +390,7 @@
|-----------|------|-------------|
| `id` | String | Unique identifier for the tool call |
| `name` | String | Name of the tool being called |
| `arguments` | JSONObject | Arguments passed to the tool |

Check warning on line 393 in sdk/android/ai-agents.mdx

View check run for this annotation

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

sdk/android/ai-agents.mdx#L393

Did you really mean 'JSONObject'?

**Sample AIToolCall Object:**

Expand Down Expand Up @@ -419,7 +419,7 @@
| `avatar` | String | URL to user's profile picture |
| `link` | String | URL to user's profile page |
| `role` | String | User role for access control |
| `metadata` | JSONObject | Custom data set by developer |

Check warning on line 422 in sdk/android/ai-agents.mdx

View check run for this annotation

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

sdk/android/ai-agents.mdx#L422

Did you really mean 'JSONObject'?
| `status` | String | User online status. Values: `"online"`, `"offline"` |
| `statusMessage` | String | Custom status message |
| `lastActiveAt` | long | Unix timestamp of last activity |
Expand Down
3 changes: 2 additions & 1 deletion sdk/android/v5/ai-agents.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
title: "AI Agents"
title: "AI Agents in the CometChat Android SDK v5"
description: "Build AI-powered chat experiences on Android with CometChat SDK v5 agents that process user messages, trigger tools, and stream contextual responses."
---

# AI Agents Overview
Expand All @@ -11,10 +12,10 @@

## Agent Run Lifecycle and Message Flow

This section explains how a user's text message to an Agent becomes a structured "run" which emits real-time events and then produces agentic messages for historical retrieval.

Check warning on line 15 in sdk/android/v5/ai-agents.mdx

View check run for this annotation

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

sdk/android/v5/ai-agents.mdx#L15

Did you really mean 'agentic'?
- A user sends a text message to an Agent.
- The platform starts a run and streams real-time events via the **`AIAssistantListener`**.
- After the run completes, persisted Agentic Messages arrive via the **`MessageListener`**.

Check warning on line 18 in sdk/android/v5/ai-agents.mdx

View check run for this annotation

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

sdk/android/v5/ai-agents.mdx#L18

Did you really mean 'Agentic'?

### Real-time Events
Events are received via the **`onAIAssistantEventReceived`** method of the **`AIAssistantListener`** class in this general order:
Expand Down Expand Up @@ -147,7 +148,7 @@
</Tab>
</Tabs>

### Agentic Messages

Check warning on line 151 in sdk/android/v5/ai-agents.mdx

View check run for this annotation

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

sdk/android/v5/ai-agents.mdx#L151

Did you really mean 'Agentic'?

These events are received via the **`MessageListener`** after the run completes.
- `AIAssistantMessage`: The full assistant reply.
Expand Down
3 changes: 2 additions & 1 deletion sdk/android/v5/campaigns.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
title: "Campaigns"
title: "Campaigns in the CometChat Android SDK v5"
description: "Deliver targeted in-app notifications on Android with CometChat Campaigns, using Card Schema JSON, real-time delivery listeners, and engagement APIs."
---

CometChat Campaigns lets you deliver targeted, rich notifications to users via an in-app notification feed. Each notification is a **Card Schema JSON** — a structured layout rendered natively by the CometChat Cards library.
Expand Down Expand Up @@ -79,7 +80,7 @@

### Add the Cards Dependency

Add the Cloudsmith repository and the cards library to your project:

Check warning on line 83 in sdk/android/v5/campaigns.mdx

View check run for this annotation

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

sdk/android/v5/campaigns.mdx#L83

Did you really mean 'Cloudsmith'?

```groovy
// settings.gradle or project-level build.gradle
Expand Down Expand Up @@ -110,7 +111,7 @@
@Composable
fun NotificationCard(item: NotificationFeedItem) {
CometChatCardComposable(
cardJson = item.content.toString(),

Check warning on line 114 in sdk/android/v5/campaigns.mdx

View check run for this annotation

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

sdk/android/v5/campaigns.mdx#L114

Did you really mean 'cardJson'?
themeMode = CometChatCardThemeMode.AUTO,
onAction = { event ->
when (event.action) {
Expand Down Expand Up @@ -197,12 +198,12 @@
"light": "transparent",
"dark": "transparent"
},
"textColor": {

Check warning on line 201 in sdk/android/v5/campaigns.mdx

View check run for this annotation

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

sdk/android/v5/campaigns.mdx#L201

Did you really mean 'textColor'?
"light": "#6C5CE7",
"dark": "#6C5CE7"
},
"size": 40,
"fontSize": 13,

Check warning on line 206 in sdk/android/v5/campaigns.mdx

View check run for this annotation

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

sdk/android/v5/campaigns.mdx#L206

Did you really mean 'fontSize'?
"borderRadius": 6,
"padding": {
"top": 0,
Expand All @@ -220,14 +221,14 @@
"id": "col_98fed9bd-1a95-4cee-aa81-84a9016e41f2"
}
],
"fallbackText": "",

Check warning on line 224 in sdk/android/v5/campaigns.mdx

View check run for this annotation

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

sdk/android/v5/campaigns.mdx#L224

Did you really mean 'fallbackText'?
"style": {
"background": {
"light": "#E8E8E8",
"dark": "#E8E8E8"
},
"borderRadius": 16,
"borderColor": {

Check warning on line 231 in sdk/android/v5/campaigns.mdx

View check run for this annotation

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

sdk/android/v5/campaigns.mdx#L231

Did you really mean 'borderColor'?
"light": "#DFE6E9",
"dark": "#DFE6E9"
},
Expand Down Expand Up @@ -322,7 +323,7 @@
| --- | --- | --- |
| `id` | String | Unique item identifier |
| `category` | String | Notification category (e.g., "promotions") |
| `content` | JSONObject | Card Schema JSON — pass to CometChat Cards renderer |

Check warning on line 326 in sdk/android/v5/campaigns.mdx

View check run for this annotation

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

sdk/android/v5/campaigns.mdx#L326

Did you really mean 'JSONObject'?
| `readAt` | Long? | Unix timestamp when read, or null if unread |
| `deliveredAt` | Long? | Unix timestamp when delivered, or null |
| `sentAt` | long | Unix timestamp when sent |
Expand All @@ -339,7 +340,7 @@
<Tabs>
<Tab title="Java">
```java
NotificationCategoriesRequest categoriesRequest = new NotificationCategoriesRequest

Check warning on line 343 in sdk/android/v5/campaigns.mdx

View check run for this annotation

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

sdk/android/v5/campaigns.mdx#L343

Did you really mean 'categoriesRequest'?
.NotificationCategoriesRequestBuilder()
.setLimit(50)
.build();
Expand Down Expand Up @@ -626,7 +627,7 @@
<Tabs>
<Tab title="Java">
```java
PushNotification pushNotification = PushNotification.fromJson(pushPayloadJson);

Check warning on line 630 in sdk/android/v5/campaigns.mdx

View check run for this annotation

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

sdk/android/v5/campaigns.mdx#L630

'pushNotification' is repeated!

Check warning on line 630 in sdk/android/v5/campaigns.mdx

View check run for this annotation

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

sdk/android/v5/campaigns.mdx#L630

Did you really mean 'pushNotification'?

CometChat.markPushNotificationDelivered(pushNotification, new CometChat.CallbackListener<Void>() {
@Override
Expand Down
3 changes: 2 additions & 1 deletion sdk/android/v5/message-structure-and-hierarchy.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
title: "Message Structure And Hierarchy"
title: "Message structure and hierarchy in Android SDK v5"
description: "Understand CometChat Android SDK v5 message categories and types, including text, media, custom, interactive, and card messages and their class hierarchy."
---


Expand Down Expand Up @@ -44,7 +45,7 @@

Action messages are system-generated messages. Messages belonging to the `action` category can further be classified into one of the below types:

1. groupMember - action performed on a group member.

Check warning on line 48 in sdk/android/v5/message-structure-and-hierarchy.mdx

View check run for this annotation

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

sdk/android/v5/message-structure-and-hierarchy.mdx#L48

Did you really mean 'groupMember'?
2. message - action performed on a message.

Action messages hold another property called `action` which actually determine the action that has been performed For the type `groupMember` the action can be either one of the below:
Expand All @@ -55,7 +56,7 @@
4. banned - when a group member is banned from the group
5. unbanned - when a group member is unbanned from the group
6. added - when a user is added to the group
7. scopeChanged - When the scope of a group member is changed.

Check warning on line 59 in sdk/android/v5/message-structure-and-hierarchy.mdx

View check run for this annotation

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

sdk/android/v5/message-structure-and-hierarchy.mdx#L59

Did you really mean 'scopeChanged'?

For the type `message`, the action can be either one of the below:

Expand Down
5 changes: 3 additions & 2 deletions sdk/android/v5/overview.mdx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
title: "Overview"
description: "Build Android chat apps with CometChat SDK v5, including real-time messaging, users, groups, and calling support."
title: "CometChat Android SDK v5 overview"
sidebarTitle: "Overview"
description: "Build Android chat apps with CometChat SDK v5, covering real-time messaging, users, groups, calling, and the v4 to v5 migration path."
---

<Warning>
Expand Down Expand Up @@ -37,7 +38,7 @@

* Android API Level 21
* Android API level 24 (in case you are using the calls SDKS)
* Androidx Compatibility

Check warning on line 41 in sdk/android/v5/overview.mdx

View check run for this annotation

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

sdk/android/v5/overview.mdx#L41

Did you really mean 'Androidx'?

</Note>

Expand All @@ -48,7 +49,7 @@
<Tabs>
<Tab title="Groovy">
```groovy
allprojects {

Check warning on line 52 in sdk/android/v5/overview.mdx

View check run for this annotation

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

sdk/android/v5/overview.mdx#L52

Did you really mean 'allprojects'?
repositories {
maven {
url "https://dl.cloudsmith.io/public/cometchat/cometchat/maven/"
Expand Down Expand Up @@ -77,11 +78,11 @@

<Note>

v2.4+ onwards, Voice & Video Calling functionality has been moved to a separate library. In case you plan to use the calling feature, please add the Calling dependency `implementation 'com.cometchat:calls-sdk-android:4.3.3'` in the dependencies section of the app-level `build.gradle` file.

Check warning on line 81 in sdk/android/v5/overview.mdx

View check run for this annotation

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

sdk/android/v5/overview.mdx#L81

Did you really mean 'onwards'?

</Note>

Finally, add the below lines `android` section of the **app level** gradle file

Check warning on line 85 in sdk/android/v5/overview.mdx

View check run for this annotation

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

sdk/android/v5/overview.mdx#L85

Did you really mean 'gradle'?

<Tabs>
<Tab title="Groovy">
Expand All @@ -103,7 +104,7 @@
The `init()` method initializes the settings required for CometChat. The `init()` method takes the below parameters:

1. appID - You CometChat App ID
2. appSettings - An object of the AppSettings class can be created using the AppSettingsBuilder class. The region field is mandatory and can be set using the `setRegion()` method.

Check warning on line 107 in sdk/android/v5/overview.mdx

View check run for this annotation

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

sdk/android/v5/overview.mdx#L107

Did you really mean 'appSettings'?

The `AppSettings` class allows you to configure three settings:

Expand All @@ -117,15 +118,15 @@
<Tab title="Java">
```java
String appID = "APP_ID"; // Replace with your App ID
String region = "REGION"; // Replace with your App Region ("eu" or "us")

Check warning on line 121 in sdk/android/v5/overview.mdx

View check run for this annotation

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

sdk/android/v5/overview.mdx#L121

Did you really mean 'eu'?

AppSettings appSettings = new AppSettings.AppSettingsBuilder()

Check warning on line 123 in sdk/android/v5/overview.mdx

View check run for this annotation

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

sdk/android/v5/overview.mdx#L123

Did you really mean 'appSettings'?
.subscribePresenceForAllUsers()
.setRegion(region)
.autoEstablishSocketConnection(true)
.build();

CometChat.init(this, appID, appSettings, new CometChat.CallbackListener <String> () {

Check warning on line 129 in sdk/android/v5/overview.mdx

View check run for this annotation

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

sdk/android/v5/overview.mdx#L129

Did you really mean 'appSettings'?
@Override
public void onSuccess(String successMessage) {
Log.d(TAG, "Initialization completed successfully");
Expand Down Expand Up @@ -182,12 +183,12 @@
<Tabs>
<Tab title="Java">
```java
String authKey = "AUTH_KEY"; // Replace with your App Auth Key

Check warning on line 186 in sdk/android/v5/overview.mdx

View check run for this annotation

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

sdk/android/v5/overview.mdx#L186

Did you really mean 'authKey'?
User user = new User();

Check warning on line 187 in sdk/android/v5/overview.mdx

View check run for this annotation

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

sdk/android/v5/overview.mdx#L187

'user' is repeated!
user.setUid("USER_UID"); // Replace with the UID for the user to be created
user.setName("USER_NAME"); // Replace with the name of the user

CometChat.createUser(user, authKey, new CometChat.CallbackListener <User> () {

Check warning on line 191 in sdk/android/v5/overview.mdx

View check run for this annotation

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

sdk/android/v5/overview.mdx#L191

Did you really mean 'authKey'?
@Override
public void onSuccess(User user) {
Log.d("createUser", user.toString());
Expand Down Expand Up @@ -240,7 +241,7 @@
<Tab title="Java">
```java
String UID = "user1"; // Replace with the UID of the user to login
String authKey = "AUTH_KEY"; // Replace with your App Auth Key

Check warning on line 244 in sdk/android/v5/overview.mdx

View check run for this annotation

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

sdk/android/v5/overview.mdx#L244

Did you really mean 'authKey'?

if (CometChat.getLoggedInUser() == null) {
CometChat.login(UID, authKey, new CometChat.CallbackListener <User> () {
Expand Down
4 changes: 3 additions & 1 deletion sdk/android/v5/real-time-listeners.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
---
title: "All Real Time Listeners"
title: "Real-time listeners in the CometChat Android SDK"
sidebarTitle: "All Real Time Listeners"
description: "Handle CometChat real-time events in Android apps with user, group, message, and AI assistant listeners for presence, membership, and messages."
---


Expand Down Expand Up @@ -82,27 +84,27 @@
}

@Override
public void onGroupMemberLeft(Action action, User leftUser, Group leftGroup) {

Check warning on line 87 in sdk/android/v5/real-time-listeners.mdx

View check run for this annotation

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

sdk/android/v5/real-time-listeners.mdx#L87

Did you really mean 'leftUser'?

Check warning on line 87 in sdk/android/v5/real-time-listeners.mdx

View check run for this annotation

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

sdk/android/v5/real-time-listeners.mdx#L87

Did you really mean 'leftGroup'?
}

@Override
public void onGroupMemberKicked(Action action, User kickedUser, User kickedBy, Group kickedFrom) {

Check warning on line 91 in sdk/android/v5/real-time-listeners.mdx

View check run for this annotation

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

sdk/android/v5/real-time-listeners.mdx#L91

Did you really mean 'kickedUser'?

Check warning on line 91 in sdk/android/v5/real-time-listeners.mdx

View check run for this annotation

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

sdk/android/v5/real-time-listeners.mdx#L91

Did you really mean 'kickedBy'?

Check warning on line 91 in sdk/android/v5/real-time-listeners.mdx

View check run for this annotation

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

sdk/android/v5/real-time-listeners.mdx#L91

Did you really mean 'kickedFrom'?
}

@Override
public void onGroupMemberBanned(Action action, User bannedUser, User bannedBy, Group bannedFrom) {

Check warning on line 95 in sdk/android/v5/real-time-listeners.mdx

View check run for this annotation

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

sdk/android/v5/real-time-listeners.mdx#L95

Did you really mean 'bannedUser'?

Check warning on line 95 in sdk/android/v5/real-time-listeners.mdx

View check run for this annotation

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

sdk/android/v5/real-time-listeners.mdx#L95

Did you really mean 'bannedBy'?

Check warning on line 95 in sdk/android/v5/real-time-listeners.mdx

View check run for this annotation

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

sdk/android/v5/real-time-listeners.mdx#L95

Did you really mean 'bannedFrom'?
}

@Override
public void onGroupMemberUnbanned(Action action, User unbannedUser, User unbannedBy, Group unbannedFrom) {

Check warning on line 99 in sdk/android/v5/real-time-listeners.mdx

View check run for this annotation

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

sdk/android/v5/real-time-listeners.mdx#L99

Did you really mean 'unbannedUser'?

Check warning on line 99 in sdk/android/v5/real-time-listeners.mdx

View check run for this annotation

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

sdk/android/v5/real-time-listeners.mdx#L99

Did you really mean 'unbannedBy'?

Check warning on line 99 in sdk/android/v5/real-time-listeners.mdx

View check run for this annotation

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

sdk/android/v5/real-time-listeners.mdx#L99

Did you really mean 'unbannedFrom'?
}

@Override
public void onGroupMemberScopeChanged(Action action, User updatedBy, User updatedUser, String scopeChangedTo, String scopeChangedFrom, Group group) {

Check warning on line 103 in sdk/android/v5/real-time-listeners.mdx

View check run for this annotation

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

sdk/android/v5/real-time-listeners.mdx#L103

Did you really mean 'updatedBy'?

Check warning on line 103 in sdk/android/v5/real-time-listeners.mdx

View check run for this annotation

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

sdk/android/v5/real-time-listeners.mdx#L103

Did you really mean 'updatedUser'?
}

@Override
public void onMemberAddedToGroup(Action action, User addedby, User userAdded, Group addedTo) {

Check warning on line 107 in sdk/android/v5/real-time-listeners.mdx

View check run for this annotation

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

sdk/android/v5/real-time-listeners.mdx#L107

Did you really mean 'addedby'?

Check warning on line 107 in sdk/android/v5/real-time-listeners.mdx

View check run for this annotation

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

sdk/android/v5/real-time-listeners.mdx#L107

Did you really mean 'userAdded'?

Check warning on line 107 in sdk/android/v5/real-time-listeners.mdx

View check run for this annotation

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

sdk/android/v5/real-time-listeners.mdx#L107

Did you really mean 'addedTo'?
}
});
```
Expand Down Expand Up @@ -207,22 +209,22 @@
}

@Override
public void onTypingStarted(TypingIndicator typingIndicator) {

Check warning on line 212 in sdk/android/v5/real-time-listeners.mdx

View check run for this annotation

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

sdk/android/v5/real-time-listeners.mdx#L212

Did you really mean 'typingIndicator'?

}

@Override
public void onTypingEnded(TypingIndicator typingIndicator) {

Check warning on line 217 in sdk/android/v5/real-time-listeners.mdx

View check run for this annotation

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

sdk/android/v5/real-time-listeners.mdx#L217

Did you really mean 'typingIndicator'?

}

@Override
public void onMessagesDelivered(MessageReceipt messageReceipt) {

Check warning on line 222 in sdk/android/v5/real-time-listeners.mdx

View check run for this annotation

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

sdk/android/v5/real-time-listeners.mdx#L222

Did you really mean 'messageReceipt'?

}

@Override
public void onMessagesRead(MessageReceipt messageReceipt) {

Check warning on line 227 in sdk/android/v5/real-time-listeners.mdx

View check run for this annotation

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

sdk/android/v5/real-time-listeners.mdx#L227

Did you really mean 'messageReceipt'?

}

Expand All @@ -237,28 +239,28 @@
}

@Override
public void onInteractiveMessageReceived(InteractiveMessage interactiveMessage) {

Check warning on line 242 in sdk/android/v5/real-time-listeners.mdx

View check run for this annotation

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

sdk/android/v5/real-time-listeners.mdx#L242

Did you really mean 'interactiveMessage'?

}

@Override
public void onInteractionGoalCompleted(InteractionReceipt interactionReceipt) {

Check warning on line 247 in sdk/android/v5/real-time-listeners.mdx

View check run for this annotation

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

sdk/android/v5/real-time-listeners.mdx#L247

Did you really mean 'interactionReceipt'?

}


@Override
public void onTransientMessageReceived(TransientMessage transientMessage) {

Check warning on line 253 in sdk/android/v5/real-time-listeners.mdx

View check run for this annotation

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

sdk/android/v5/real-time-listeners.mdx#L253

Did you really mean 'transientMessage'?

}

@Override
public void onMessageReactionAdded(ReactionEvent reactionEvent) {

Check warning on line 258 in sdk/android/v5/real-time-listeners.mdx

View check run for this annotation

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

sdk/android/v5/real-time-listeners.mdx#L258

Did you really mean 'reactionEvent'?

}

@Override
public void onMessageReactionRemoved(ReactionEvent reactionEvent) {

Check warning on line 263 in sdk/android/v5/real-time-listeners.mdx

View check run for this annotation

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

sdk/android/v5/real-time-listeners.mdx#L263

Did you really mean 'reactionEvent'?

}

Expand All @@ -278,7 +280,7 @@
}

@Override
public void onCardMessageReceived(CardMessage cardMessage) {

Check warning on line 283 in sdk/android/v5/real-time-listeners.mdx

View check run for this annotation

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

sdk/android/v5/real-time-listeners.mdx#L283

Did you really mean 'cardMessage'?

}
});
Expand Down
3 changes: 2 additions & 1 deletion sdk/android/v5/receive-messages.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
title: "Receive A Message"
title: "Receive messages with the CometChat Android SDK v5"
description: "Receive real-time and offline messages on Android with CometChat SDK v5 using message listeners, fetching missed messages, and handling delivery receipts."
---


Expand Down Expand Up @@ -29,17 +30,17 @@
}

@Override
public void onMediaMessageReceived(MediaMessage mediaMessage) {

Check warning on line 33 in sdk/android/v5/receive-messages.mdx

View check run for this annotation

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

sdk/android/v5/receive-messages.mdx#L33

Did you really mean 'mediaMessage'?
Log.d(TAG, "Media message received successfully: " + mediaMessage.toString());
}

@Override
public void onCustomMessageReceived(CustomMessage customMessage) {

Check warning on line 38 in sdk/android/v5/receive-messages.mdx

View check run for this annotation

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

sdk/android/v5/receive-messages.mdx#L38

Did you really mean 'customMessage'?
Log.d(TAG, "Custom message received successfully: " + customMessage.toString());
}

@Override
public void onCardMessageReceived(CardMessage cardMessage) {

Check warning on line 43 in sdk/android/v5/receive-messages.mdx

View check run for this annotation

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

sdk/android/v5/receive-messages.mdx#L43

Did you really mean 'cardMessage'?
Log.d(TAG, "Card message received successfully: " + cardMessage.toString());
}
});
Expand Down Expand Up @@ -216,10 +217,10 @@
<Tab title="Java">
```java
private int limit = 30;
private int latestId = CometChat.getLastDeliveredMessageId();

Check warning on line 220 in sdk/android/v5/receive-messages.mdx

View check run for this annotation

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

sdk/android/v5/receive-messages.mdx#L220

Did you really mean 'latestId'?
private String UID = "cometchat-uid-1";

MessagesRequest messagesRequest = new MessagesRequest.MessagesRequestBuilder()

Check warning on line 223 in sdk/android/v5/receive-messages.mdx

View check run for this annotation

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

sdk/android/v5/receive-messages.mdx#L223

Did you really mean 'messagesRequest'?
.setMessageId(latestId)
.setLimit(limit)
.setUID(UID)
Expand Down Expand Up @@ -294,10 +295,10 @@
<Tab title="Java">
```java
private int limit = 30;
private int latestId = CometChat.getLastDeliveredMessageId();

Check warning on line 298 in sdk/android/v5/receive-messages.mdx

View check run for this annotation

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

sdk/android/v5/receive-messages.mdx#L298

Did you really mean 'latestId'?
private String GUID = "cometchat-guid-1";

MessagesRequest messagesRequest = new MessagesRequest.MessagesRequestBuilder()

Check warning on line 301 in sdk/android/v5/receive-messages.mdx

View check run for this annotation

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

sdk/android/v5/receive-messages.mdx#L301

Did you really mean 'messagesRequest'?
.setMessageId(latestId)
.setLimit(limit)
.setGUID(GUID)
Expand Down Expand Up @@ -377,7 +378,7 @@
```java
String UID = "cometchat-uid-1";

MessagesRequest messagesRequest = new MessagesRequest.MessagesRequestBuilder()

Check warning on line 381 in sdk/android/v5/receive-messages.mdx

View check run for this annotation

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

sdk/android/v5/receive-messages.mdx#L381

Did you really mean 'messagesRequest'?
.setUnread(true)
.setLimit(20)
.setUID(UID)
Expand Down Expand Up @@ -442,7 +443,7 @@
```java
String GUID = "cometchat-guid-1";

MessagesRequest messagesRequest = new MessagesRequest.MessagesRequestBuilder()

Check warning on line 446 in sdk/android/v5/receive-messages.mdx

View check run for this annotation

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

sdk/android/v5/receive-messages.mdx#L446

Did you really mean 'messagesRequest'?
.setUnread(true)
.setLimit(20)
.setGUID(GUID)
Expand Down Expand Up @@ -521,7 +522,7 @@
private int limit = 30;
private String UID = "cometchat-uid-1"

MessagesRequest messagesRequest = new MessagesRequest.MessagesRequestBuilder()

Check warning on line 525 in sdk/android/v5/receive-messages.mdx

View check run for this annotation

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

sdk/android/v5/receive-messages.mdx#L525

Did you really mean 'messagesRequest'?
.setLimit(limit)
.setUID(UID)
.build();
Expand Down Expand Up @@ -590,7 +591,7 @@
private int limit = 30;
private String GUID = "cometchat-guid-1"

MessagesRequest messagesRequest = new MessagesRequest.MessagesRequestBuilder()

Check warning on line 594 in sdk/android/v5/receive-messages.mdx

View check run for this annotation

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

sdk/android/v5/receive-messages.mdx#L594

Did you really mean 'messagesRequest'?
.setLimit(limit)
.setGUID(GUID)
.build();
Expand Down Expand Up @@ -657,7 +658,7 @@

<Note>

By default, the searchKey is searched only in message text. However, if you enable `Conversation & Advanced Search`, the searchKey will be searched in message text, file name, mentions & mime type of the file.

Check warning on line 661 in sdk/android/v5/receive-messages.mdx

View check run for this annotation

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

sdk/android/v5/receive-messages.mdx#L661

Did you really mean 'searchKey'?

Check warning on line 661 in sdk/android/v5/receive-messages.mdx

View check run for this annotation

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

sdk/android/v5/receive-messages.mdx#L661

Did you really mean 'searchKey'?

The `Conversation & Advanced Search` is only available in `Advanced` & `Custom` [plans](https://www.cometchat.com/pricing). If you're already on one of these plans, please enable the `Conversation & Advanced Search` from [CometChat Dashboard](https://app.cometchat.com) (Open your app, navigate to Chats -> Settings -> General Configuration)

Expand All @@ -678,7 +679,7 @@
private int limit = 30;
private String UID = "cometchat-uid-1";

MessagesRequest messagesRequest = new MessagesRequest.MessagesRequestBuilder().setSearchKeyword("Hello").setUID(UID).setLimit(limit).build();

Check warning on line 682 in sdk/android/v5/receive-messages.mdx

View check run for this annotation

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

sdk/android/v5/receive-messages.mdx#L682

Did you really mean 'messagesRequest'?

messagesRequest.fetchPrevious(new CometChat.CallbackListener<List<BaseMessage>>() {
@Override
Expand Down Expand Up @@ -737,7 +738,7 @@
private int limit = 30;
private String GUID = "cometchat-guid-1";

MessagesRequest messagesRequest = new MessagesRequest.MessagesRequestBuilder().setSearchKeyword("Hello").setGUID(GUID).setLimit(limit).build();

Check warning on line 741 in sdk/android/v5/receive-messages.mdx

View check run for this annotation

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

sdk/android/v5/receive-messages.mdx#L741

Did you really mean 'messagesRequest'?

messagesRequest.fetchPrevious(new CometChat.CallbackListener<List<BaseMessage>>() {
@Override
Expand Down Expand Up @@ -875,7 +876,7 @@

</Tabs>

In the `onSuccess()` callback, you will receive a Hashmap which will contain the `UID` of the user as the key and the unread message count as the value.

Check warning on line 879 in sdk/android/v5/receive-messages.mdx

View check run for this annotation

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

sdk/android/v5/receive-messages.mdx#L879

Did you really mean 'Hashmap'?

### Fetch Unread Message Count of a particular group conversation

Expand Down Expand Up @@ -961,7 +962,7 @@

</Tabs>

In the `onSuccess()` callback, you will receive a Hashmap which will contain the `GUID` of the group as the key and the unread message count as the value.

Check warning on line 965 in sdk/android/v5/receive-messages.mdx

View check run for this annotation

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

sdk/android/v5/receive-messages.mdx#L965

Did you really mean 'Hashmap'?

### Fetch Unread Message Count of all one-on-one & group conversations

Expand Down Expand Up @@ -1040,10 +1041,10 @@

</Tabs>

In the `onSuccess()` callback, you will receive a hashmap having two keys:

Check warning on line 1044 in sdk/android/v5/receive-messages.mdx

View check run for this annotation

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

sdk/android/v5/receive-messages.mdx#L1044

Did you really mean 'hashmap'?

1. `user` - The value for this key holds another hashmap that holds the `UIDs` of users and their corresponding unread message counts.

Check warning on line 1046 in sdk/android/v5/receive-messages.mdx

View check run for this annotation

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

sdk/android/v5/receive-messages.mdx#L1046

Did you really mean 'hashmap'?
2. `group` - The value for this key holds another hashmap that holds the `GUIDs` of groups and their corresponding unread message counts.

Check warning on line 1047 in sdk/android/v5/receive-messages.mdx

View check run for this annotation

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

sdk/android/v5/receive-messages.mdx#L1047

Did you really mean 'hashmap'?

### Fetch Unread Message Count of all one-on-one conversations

Expand Down Expand Up @@ -1124,7 +1125,7 @@

</Tabs>

In the `onSuccess()` callback, you will receive a Hashmap that will contain the `UIDs` of users as the key and the unread message counts as the values.

Check warning on line 1128 in sdk/android/v5/receive-messages.mdx

View check run for this annotation

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

sdk/android/v5/receive-messages.mdx#L1128

Did you really mean 'Hashmap'?

### Fetch Unread Message Count of all group conversations

Expand Down Expand Up @@ -1205,4 +1206,4 @@

</Tabs>

In the `onSuccess()` callback, you will receive a hashmap which will contain the `GUIDs` of the groups as the key and the unread message counts as the values.

Check warning on line 1209 in sdk/android/v5/receive-messages.mdx

View check run for this annotation

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

sdk/android/v5/receive-messages.mdx#L1209

Did you really mean 'hashmap'?
3 changes: 2 additions & 1 deletion sdk/android/v5/send-message.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
title: "Send A Message"
title: "Send messages with the CometChat Android SDK v5"
description: "Send text, media, custom, and interactive messages on Android with CometChat SDK v5, including one-to-one, group, and card message delivery."
---


Expand Down Expand Up @@ -29,7 +30,7 @@
<Tabs>
<Tab title="Java">
```java
JSONObject metadata = new JSONObject();

Check warning on line 33 in sdk/android/v5/send-message.mdx

View check run for this annotation

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

sdk/android/v5/send-message.mdx#L33

Did you really mean 'JSONObject'?
metadata.put("latitude", "50.6192171633316");
metadata.put("longitude", "-72.68182268750002");
textMessage.setMetadata(metadata);
Expand Down Expand Up @@ -103,14 +104,14 @@
<Tab title="Java (User)">
```java
private String receiverID = "UID";
private String messageText = "Hello CoemtChat!";

Check warning on line 107 in sdk/android/v5/send-message.mdx

View check run for this annotation

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

sdk/android/v5/send-message.mdx#L107

Did you really mean 'messageText'?
private String receiverType = CometChatConstants.RECEIVER_TYPE_USER;

Check warning on line 108 in sdk/android/v5/send-message.mdx

View check run for this annotation

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

sdk/android/v5/send-message.mdx#L108

Did you really mean 'receiverType'?

TextMessage textMessage = new TextMessage(receiverID, messageText, receiverType);

Check warning on line 110 in sdk/android/v5/send-message.mdx

View check run for this annotation

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

sdk/android/v5/send-message.mdx#L110

Did you really mean 'textMessage'?

Check warning on line 110 in sdk/android/v5/send-message.mdx

View check run for this annotation

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

sdk/android/v5/send-message.mdx#L110

Did you really mean 'messageText'?

Check warning on line 110 in sdk/android/v5/send-message.mdx

View check run for this annotation

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

sdk/android/v5/send-message.mdx#L110

Did you really mean 'receiverType'?

CometChat.sendMessage(textMessage, new CometChat.CallbackListener<TextMessage>() {
@Override
public void onSuccess(TextMessage textMessage) {

Check warning on line 114 in sdk/android/v5/send-message.mdx

View check run for this annotation

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

sdk/android/v5/send-message.mdx#L114

Did you really mean 'textMessage'?
Log.d(TAG, "Message sent successfully: " + textMessage.toString());
}

Expand Down Expand Up @@ -147,10 +148,10 @@
<Tab title="Java (Group)">
```java
private String receiverID = "GUID";
private String messageText = "Hello CometChat!";

Check warning on line 151 in sdk/android/v5/send-message.mdx

View check run for this annotation

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

sdk/android/v5/send-message.mdx#L151

Did you really mean 'messageText'?
private String receiverType = CometChatConstants.RECEIVER_TYPE_GROUP;

Check warning on line 152 in sdk/android/v5/send-message.mdx

View check run for this annotation

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

sdk/android/v5/send-message.mdx#L152

Did you really mean 'receiverType'?

TextMessage textMessage = new TextMessage(receiverID, messageText, receiverType);

Check warning on line 154 in sdk/android/v5/send-message.mdx

View check run for this annotation

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

sdk/android/v5/send-message.mdx#L154

Did you really mean 'messageText'?

Check warning on line 154 in sdk/android/v5/send-message.mdx

View check run for this annotation

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

sdk/android/v5/send-message.mdx#L154

Did you really mean 'receiverType'?

CometChat.sendMessage(textMessage, new CometChat.CallbackListener<TextMessage>() {
@Override
Expand Down Expand Up @@ -212,7 +213,7 @@
<Tabs>
<Tab title="Java">
```java
JSONObject metadata = new JSONObject();

Check warning on line 216 in sdk/android/v5/send-message.mdx

View check run for this annotation

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

sdk/android/v5/send-message.mdx#L216

Did you really mean 'JSONObject'?
metadata.put("latitude", "50.6192171633316");
metadata.put("longitude", "-72.68182268750002");
mediaMessage.setMetadata(metadata);
Expand Down Expand Up @@ -286,15 +287,15 @@
<Tab title="Java (User)">
```java
private String receiverID = "UID";
private String messageType = CometChatConstants.MESSAGE_TYPE_IMAGE;

Check warning on line 290 in sdk/android/v5/send-message.mdx

View check run for this annotation

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

sdk/android/v5/send-message.mdx#L290

Did you really mean 'messageType'?
private String receiverType = CometChatConstants.RECEIVER_TYPE_USER;

Check warning on line 291 in sdk/android/v5/send-message.mdx

View check run for this annotation

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

sdk/android/v5/send-message.mdx#L291

Did you really mean 'receiverType'?
private String filePath = "/storage/emulated/0/Download/CometChat.jpg";

Check warning on line 292 in sdk/android/v5/send-message.mdx

View check run for this annotation

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

sdk/android/v5/send-message.mdx#L292

Did you really mean 'filePath'?

MediaMessage mediaMessage = new MediaMessage(receiverID, new File(filePath), messageType, receiverType);

Check warning on line 294 in sdk/android/v5/send-message.mdx

View check run for this annotation

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

sdk/android/v5/send-message.mdx#L294

Did you really mean 'mediaMessage'?

Check warning on line 294 in sdk/android/v5/send-message.mdx

View check run for this annotation

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

sdk/android/v5/send-message.mdx#L294

Did you really mean 'messageType'?

Check warning on line 294 in sdk/android/v5/send-message.mdx

View check run for this annotation

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

sdk/android/v5/send-message.mdx#L294

Did you really mean 'receiverType'?

CometChat.sendMediaMessage(mediaMessage, new CometChat.CallbackListener<MediaMessage>() {
@Override
public void onSuccess(MediaMessage mediaMessage) {

Check warning on line 298 in sdk/android/v5/send-message.mdx

View check run for this annotation

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

sdk/android/v5/send-message.mdx#L298

Did you really mean 'mediaMessage'?
Log.d(TAG, "Media message sent successfully: " + mediaMessage.toString());
}

Expand Down Expand Up @@ -331,11 +332,11 @@
<Tab title="Java (Group)">
```java
private String receiverID = "GUID";
private String messageType = CometChatConstants.MESSAGE_TYPE_IMAGE;

Check warning on line 335 in sdk/android/v5/send-message.mdx

View check run for this annotation

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

sdk/android/v5/send-message.mdx#L335

Did you really mean 'messageType'?
private String receiverType = CometChatConstants.RECEIVER_TYPE_GROUP;

Check warning on line 336 in sdk/android/v5/send-message.mdx

View check run for this annotation

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

sdk/android/v5/send-message.mdx#L336

Did you really mean 'receiverType'?
private String filePath = "/storage/emulated/0/Download/CometChat.jpg";

Check warning on line 337 in sdk/android/v5/send-message.mdx

View check run for this annotation

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

sdk/android/v5/send-message.mdx#L337

Did you really mean 'filePath'?

MediaMessage mediaMessage = new MediaMessage(receiverID, new File(filePath), messageType, receiverType);

Check warning on line 339 in sdk/android/v5/send-message.mdx

View check run for this annotation

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

sdk/android/v5/send-message.mdx#L339

Did you really mean 'messageType'?

Check warning on line 339 in sdk/android/v5/send-message.mdx

View check run for this annotation

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

sdk/android/v5/send-message.mdx#L339

Did you really mean 'receiverType'?

CometChat.sendMediaMessage(mediaMessage, new CometChat.CallbackListener<MediaMessage>() {
@Override
Expand Down Expand Up @@ -389,11 +390,11 @@
<Tabs>
<Tab title="Java (User)">
```java
String receiverId = "recipient_UID";

Check warning on line 393 in sdk/android/v5/send-message.mdx

View check run for this annotation

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

sdk/android/v5/send-message.mdx#L393

Did you really mean 'receiverId'?

MediaMessage mediaMessage = new MediaMessage(receiverId, CometChatConstants.MESSAGE_TYPE_IMAGE, CometChatConstants.RECEIVER_TYPE_USER);

Attachment attachment = new Attachment();

Check warning on line 397 in sdk/android/v5/send-message.mdx

View check run for this annotation

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

sdk/android/v5/send-message.mdx#L397

'attachment' is repeated!
attachment.setFileName("test");
attachment.setFileExtension("png");
attachment.setFileUrl("https://pngimg.com/uploads/mario/mario_PNG125.png");
Expand Down Expand Up @@ -443,11 +444,11 @@

<Tab title="Java (Group)">
```java
String receiverId = "recipient_GUID";

Check warning on line 447 in sdk/android/v5/send-message.mdx

View check run for this annotation

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

sdk/android/v5/send-message.mdx#L447

Did you really mean 'receiverId'?

MediaMessage mediaMessage = new MediaMessage(receiverId, CometChatConstants.MESSAGE_TYPE_IMAGE, CometChatConstants.RECEIVER_TYPE_GROUP);

Attachment attachment = new Attachment();

Check warning on line 451 in sdk/android/v5/send-message.mdx

View check run for this annotation

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

sdk/android/v5/send-message.mdx#L451

'attachment' is repeated!
attachment.setFileName("test");
attachment.setFileExtension("png");
attachment.setFileUrl("https://pngimg.com/uploads/mario/mario_PNG125.png");
Expand Down Expand Up @@ -510,14 +511,14 @@
<Tabs>
<Tab title="Java (User)">
```java
String receiverId = "cometchat-uid-1";

Check warning on line 514 in sdk/android/v5/send-message.mdx

View check run for this annotation

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

sdk/android/v5/send-message.mdx#L514

Did you really mean 'receiverId'?

List<File> files = new ArrayList<File>();
files.add(new File("/storage/emulated/0/Download/1.jpg"));
files.add(new File("/storage/emulated/0/Download/2.jpg"));
files.add(new File("/storage/emulated/0/Download/3.jpg"));

MediaMessage mediaMessage = new MediaMessage(receiverId, files, fileType, CometChatConstants.RECEIVER_TYPE_USER);

Check warning on line 521 in sdk/android/v5/send-message.mdx

View check run for this annotation

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

sdk/android/v5/send-message.mdx#L521

'mediaMessage' is repeated!

Check warning on line 521 in sdk/android/v5/send-message.mdx

View check run for this annotation

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

sdk/android/v5/send-message.mdx#L521

Did you really mean 'mediaMessage'?

Check warning on line 521 in sdk/android/v5/send-message.mdx

View check run for this annotation

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

sdk/android/v5/send-message.mdx#L521

Did you really mean 'fileType'?

CometChat.sendMediaMessage(mediaMessage, new CometChat.CallbackListener<MediaMessage>() {
@Override
Expand Down Expand Up @@ -559,14 +560,14 @@

<Tab title="Java (Group)">
```java
String groupId = "cometchat-guid-1";

Check warning on line 563 in sdk/android/v5/send-message.mdx

View check run for this annotation

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

sdk/android/v5/send-message.mdx#L563

Did you really mean 'groupId'?

List<File> files = new ArrayList<File>();
files.add(new File("/storage/emulated/0/Download/1.jpg"));
files.add(new File("/storage/emulated/0/Download/2.jpg"));
files.add(new File("/storage/emulated/0/Download/3.jpg"));

MediaMessage mediaMessage = new MediaMessage(groupId, files, fileType, CometChatConstants.RECEIVER_TYPE_GROUP);

Check warning on line 570 in sdk/android/v5/send-message.mdx

View check run for this annotation

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

sdk/android/v5/send-message.mdx#L570

'mediaMessage' is repeated!

Check warning on line 570 in sdk/android/v5/send-message.mdx

View check run for this annotation

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

sdk/android/v5/send-message.mdx#L570

Did you really mean 'mediaMessage'?

Check warning on line 570 in sdk/android/v5/send-message.mdx

View check run for this annotation

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

sdk/android/v5/send-message.mdx#L570

Did you really mean 'fileType'?

CometChat.sendMediaMessage(mediaMessage, new CometChat.CallbackListener<MediaMessage>() {
@Override
Expand Down Expand Up @@ -613,17 +614,17 @@

| **Parameter** | **Description** |
| ---------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **receiverId** | The `UID` or `GUID` of the recipient. |

Check warning on line 617 in sdk/android/v5/send-message.mdx

View check run for this annotation

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

sdk/android/v5/send-message.mdx#L617

Did you really mean 'receiverId'?
| **files** | An array of files. |
| **messageType** | The type of the message that needs to be sent which in this case can be: <br />1. `CometChatConstants.MESSAGE_TYPE_IMAGE` <br />2. `CometChatConstants.MESSAGE_TYPE_VIDEO` <br />3. `CometChatConstants.MESSAGE_TYPE_AUDIO` <br />4. `CometChatConstants.MESSAGE_TYPE_FILE` |

Check warning on line 619 in sdk/android/v5/send-message.mdx

View check run for this annotation

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

sdk/android/v5/send-message.mdx#L619

Did you really mean 'messageType'?
| **receiverType** | The type of the receiver to whom the message is to be sent. <br />1. `CometChatConstants.RECEIVER_TYPE_USER` <br />2. `CometChatConstants.RECEIVER_TYPE_GROUP` |

Check warning on line 620 in sdk/android/v5/send-message.mdx

View check run for this annotation

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

sdk/android/v5/send-message.mdx#L620

Did you really mean 'receiverType'?

2. **By providing the URL of the multiple files:** The second way to send multiple attachments using the CometChat SDK is to provide the SDK with the URL of multiple files that is hosted on your servers or any cloud storage. To achieve this you will have to make use of the `Attachment` class. For more information, you can refer to the below code snippet:

<Tabs>
<Tab title="Java (User)">
```java
String receiverId = "cometchat-uid-1";

Check warning on line 627 in sdk/android/v5/send-message.mdx

View check run for this annotation

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

sdk/android/v5/send-message.mdx#L627

Did you really mean 'receiverId'?

MediaMessage mediaMessage = new MediaMessage(receiverId, CometChatConstants.MESSAGE_TYPE_IMAGE, CometChatConstants.RECEIVER_TYPE_USER);

Expand Down Expand Up @@ -686,7 +687,7 @@

<Tab title="Java (Group)">
```java
String groupId = "cometchat-guid-1";

Check warning on line 690 in sdk/android/v5/send-message.mdx

View check run for this annotation

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

sdk/android/v5/send-message.mdx#L690

Did you really mean 'groupId'?

MediaMessage mediaMessage = new MediaMessage(groupId, CometChatConstants.MESSAGE_TYPE_IMAGE, CometChatConstants.RECEIVER_TYPE_GROUP);

Expand Down Expand Up @@ -766,14 +767,14 @@
<Tabs>
<Tab title="Java">
```java
CustomMessage customMessage = new CustomMessage(receiverId, receiverType,customType, customData)

Check warning on line 770 in sdk/android/v5/send-message.mdx

View check run for this annotation

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

sdk/android/v5/send-message.mdx#L770

'customMessage' is repeated!

Check warning on line 770 in sdk/android/v5/send-message.mdx

View check run for this annotation

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

sdk/android/v5/send-message.mdx#L770

Did you really mean 'customMessage'?

Check warning on line 770 in sdk/android/v5/send-message.mdx

View check run for this annotation

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

sdk/android/v5/send-message.mdx#L770

Did you really mean 'customData'?
```

</Tab>

<Tab title="Kotlin">
```kotlin
val customMessage = CustomMessage(receiverId, receiverType, customType, customData)

Check warning on line 777 in sdk/android/v5/send-message.mdx

View check run for this annotation

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

sdk/android/v5/send-message.mdx#L777

Did you really mean 'customMessage'?

Check warning on line 777 in sdk/android/v5/send-message.mdx

View check run for this annotation

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

sdk/android/v5/send-message.mdx#L777

Did you really mean 'receiverType'?

Check warning on line 777 in sdk/android/v5/send-message.mdx

View check run for this annotation

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

sdk/android/v5/send-message.mdx#L777

Did you really mean 'customType'?

Check warning on line 777 in sdk/android/v5/send-message.mdx

View check run for this annotation

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

sdk/android/v5/send-message.mdx#L777

Did you really mean 'customData'?
```

</Tab>
Expand All @@ -787,7 +788,7 @@
1. `receiverId` - Unique id of the user or group to which the message is to be sent.
2. `receiverType` - Type of the receiver i.e user or group
3. `customType` - custom message type that you need to set
4. `customData` - The data to be passed as the message in the form of a JSONObject.

Check warning on line 791 in sdk/android/v5/send-message.mdx

View check run for this annotation

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

sdk/android/v5/send-message.mdx#L791

Did you really mean 'JSONObject'?

You can also use the subType field of the `CustomMessage` class to set a specific type for the custom message. This can be achieved using the `setSubtype()` method.

Expand Down Expand Up @@ -822,13 +823,13 @@
<Tab title="Java (User)">
```java
private String UID = "UID";
private String customType = "LOCATION";

Check warning on line 826 in sdk/android/v5/send-message.mdx

View check run for this annotation

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

sdk/android/v5/send-message.mdx#L826

Did you really mean 'customType'?

JSONObject customData = new JSONObject();

Check warning on line 828 in sdk/android/v5/send-message.mdx

View check run for this annotation

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

sdk/android/v5/send-message.mdx#L828

Did you really mean 'customData'?
customData.put("latitude", "19.0760");
customData.put("longitude", "72.8777");

CustomMessage customMessage = new CustomMessage(UID, CometChatConstants.RECEIVER_TYPE_USER, customType, customData);

Check warning on line 832 in sdk/android/v5/send-message.mdx

View check run for this annotation

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

sdk/android/v5/send-message.mdx#L832

'customMessage' is repeated!

Check warning on line 832 in sdk/android/v5/send-message.mdx

View check run for this annotation

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

sdk/android/v5/send-message.mdx#L832

Did you really mean 'customMessage'?

Check warning on line 832 in sdk/android/v5/send-message.mdx

View check run for this annotation

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

sdk/android/v5/send-message.mdx#L832

Did you really mean 'customType'?

Check warning on line 832 in sdk/android/v5/send-message.mdx

View check run for this annotation

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

sdk/android/v5/send-message.mdx#L832

Did you really mean 'customData'?

CometChat.sendCustomMessage(customMessage, new CometChat.CallbackListener<CustomMessage>() {
@Override
Expand Down Expand Up @@ -871,13 +872,13 @@
<Tab title="Java (Group)">
```java
private String GUID = "GUID";
private String customType = "LOCATION";

Check warning on line 875 in sdk/android/v5/send-message.mdx

View check run for this annotation

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

sdk/android/v5/send-message.mdx#L875

Did you really mean 'customType'?

JSONObject customData = new JSONObject();

Check warning on line 877 in sdk/android/v5/send-message.mdx

View check run for this annotation

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

sdk/android/v5/send-message.mdx#L877

Did you really mean 'customData'?
customData.put("latitude", "19.0760");
customData.put("longitude", "72.8777");

CustomMessage customMessage = new CustomMessage(GUID, CometChatConstants.RECEIVER_TYPE_GROUP, customType, customData);

Check warning on line 881 in sdk/android/v5/send-message.mdx

View check run for this annotation

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

sdk/android/v5/send-message.mdx#L881

'customMessage' is repeated!

Check warning on line 881 in sdk/android/v5/send-message.mdx

View check run for this annotation

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

sdk/android/v5/send-message.mdx#L881

Did you really mean 'customMessage'?

Check warning on line 881 in sdk/android/v5/send-message.mdx

View check run for this annotation

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

sdk/android/v5/send-message.mdx#L881

Did you really mean 'customType'?

Check warning on line 881 in sdk/android/v5/send-message.mdx

View check run for this annotation

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

sdk/android/v5/send-message.mdx#L881

Did you really mean 'customData'?

CometChat.sendCustomMessage(customMessage, new CometChat.CallbackListener<CustomMessage>() {
@Override
Expand Down Expand Up @@ -933,13 +934,13 @@
<Tab title="Java (User)">
```java
private String UID = "UID";
private String customType = "LOCATION";

Check warning on line 937 in sdk/android/v5/send-message.mdx

View check run for this annotation

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

sdk/android/v5/send-message.mdx#L937

Did you really mean 'customType'?

JSONObject customData = new JSONObject();

Check warning on line 939 in sdk/android/v5/send-message.mdx

View check run for this annotation

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

sdk/android/v5/send-message.mdx#L939

Did you really mean 'customData'?
customData.put("latitude", "19.0760");
customData.put("longitude", "72.8777");

CustomMessage customMessage = new CustomMessage(UID, CometChatConstants.RECEIVER_TYPE_USER, customType, customData);

Check warning on line 943 in sdk/android/v5/send-message.mdx

View check run for this annotation

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

sdk/android/v5/send-message.mdx#L943

'customMessage' is repeated!

Check warning on line 943 in sdk/android/v5/send-message.mdx

View check run for this annotation

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

sdk/android/v5/send-message.mdx#L943

Did you really mean 'customMessage'?

Check warning on line 943 in sdk/android/v5/send-message.mdx

View check run for this annotation

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

sdk/android/v5/send-message.mdx#L943

Did you really mean 'customType'?

Check warning on line 943 in sdk/android/v5/send-message.mdx

View check run for this annotation

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

sdk/android/v5/send-message.mdx#L943

Did you really mean 'customData'?
customMessage.shouldUpdateConversation(false);

CometChat.sendCustomMessage(customMessage, new CometChat.CallbackListener<CustomMessage>() {
Expand Down Expand Up @@ -985,13 +986,13 @@
<Tab title="Java (Group)">
```java
private String GUID = "GUID";
private String customType = "LOCATION";

Check warning on line 989 in sdk/android/v5/send-message.mdx

View check run for this annotation

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

sdk/android/v5/send-message.mdx#L989

Did you really mean 'customType'?

JSONObject customData = new JSONObject();

Check warning on line 991 in sdk/android/v5/send-message.mdx

View check run for this annotation

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

sdk/android/v5/send-message.mdx#L991

Did you really mean 'customData'?
customData.put("latitude", "19.0760");
customData.put("longitude", "72.8777");

CustomMessage customMessage = new CustomMessage(GUID, CometChatConstants.RECEIVER_TYPE_GROUP, customType, customData);

Check warning on line 995 in sdk/android/v5/send-message.mdx

View check run for this annotation

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

sdk/android/v5/send-message.mdx#L995

'customMessage' is repeated!

Check warning on line 995 in sdk/android/v5/send-message.mdx

View check run for this annotation

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

sdk/android/v5/send-message.mdx#L995

Did you really mean 'customMessage'?

Check warning on line 995 in sdk/android/v5/send-message.mdx

View check run for this annotation

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

sdk/android/v5/send-message.mdx#L995

Did you really mean 'customType'?

Check warning on line 995 in sdk/android/v5/send-message.mdx

View check run for this annotation

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

sdk/android/v5/send-message.mdx#L995

Did you really mean 'customData'?
customMessage.shouldUpdateConversation(false);

CometChat.sendCustomMessage(customMessage, new CometChat.CallbackListener<CustomMessage>() {
Expand Down Expand Up @@ -1046,13 +1047,13 @@
<Tab title="Java (User)">
```java
private String UID = "UID";
private String customType = "LOCATION";

Check warning on line 1050 in sdk/android/v5/send-message.mdx

View check run for this annotation

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

sdk/android/v5/send-message.mdx#L1050

Did you really mean 'customType'?

JSONObject customData = new JSONObject();

Check warning on line 1052 in sdk/android/v5/send-message.mdx

View check run for this annotation

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

sdk/android/v5/send-message.mdx#L1052

Did you really mean 'customData'?
customData.put("latitude", "19.0760");
customData.put("longitude", "72.8777");

CustomMessage customMessage = new CustomMessage(UID, CometChatConstants.RECEIVER_TYPE_USER, customType, customData);

Check warning on line 1056 in sdk/android/v5/send-message.mdx

View check run for this annotation

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

sdk/android/v5/send-message.mdx#L1056

'customMessage' is repeated!

Check warning on line 1056 in sdk/android/v5/send-message.mdx

View check run for this annotation

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

sdk/android/v5/send-message.mdx#L1056

Did you really mean 'customMessage'?

Check warning on line 1056 in sdk/android/v5/send-message.mdx

View check run for this annotation

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

sdk/android/v5/send-message.mdx#L1056

Did you really mean 'customType'?

Check warning on line 1056 in sdk/android/v5/send-message.mdx

View check run for this annotation

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

sdk/android/v5/send-message.mdx#L1056

Did you really mean 'customData'?
customMessage.setConversationText("Custom Notification Body");

CometChat.sendCustomMessage(customMessage, new CometChat.CallbackListener<CustomMessage>() {
Expand Down Expand Up @@ -1098,13 +1099,13 @@
<Tab title="Java (Group)">
```java
private String GUID = "GUID";
private String customType = "LOCATION";

Check warning on line 1102 in sdk/android/v5/send-message.mdx

View check run for this annotation

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

sdk/android/v5/send-message.mdx#L1102

Did you really mean 'customType'?

JSONObject customData = new JSONObject();

Check warning on line 1104 in sdk/android/v5/send-message.mdx

View check run for this annotation

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

sdk/android/v5/send-message.mdx#L1104

Did you really mean 'customData'?
customData.put("latitude", "19.0760");
customData.put("longitude", "72.8777");

CustomMessage customMessage = new CustomMessage(GUID, CometChatConstants.RECEIVER_TYPE_GROUP, customType, customData);

Check warning on line 1108 in sdk/android/v5/send-message.mdx

View check run for this annotation

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

sdk/android/v5/send-message.mdx#L1108

'customMessage' is repeated!

Check warning on line 1108 in sdk/android/v5/send-message.mdx

View check run for this annotation

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

sdk/android/v5/send-message.mdx#L1108

Did you really mean 'customMessage'?

Check warning on line 1108 in sdk/android/v5/send-message.mdx

View check run for this annotation

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

sdk/android/v5/send-message.mdx#L1108

Did you really mean 'customType'?

Check warning on line 1108 in sdk/android/v5/send-message.mdx

View check run for this annotation

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

sdk/android/v5/send-message.mdx#L1108

Did you really mean 'customData'?
customMessage.setConversationText("Custom Notification Body");

CometChat.sendCustomMessage(customMessage, new CometChat.CallbackListener<CustomMessage>() {
Expand Down Expand Up @@ -1168,9 +1169,9 @@
<Tabs>
<Tab title="Java">
```java
JSONObject card = cardMessage.getCard(); // raw card schema/payload

Check warning on line 1172 in sdk/android/v5/send-message.mdx

View check run for this annotation

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

sdk/android/v5/send-message.mdx#L1172

Did you really mean 'JSONObject'?
String text = cardMessage.getText(); // optional text shown alongside the card
String fallbackText = cardMessage.getFallbackText(); // shown when the card cannot be rendered

Check warning on line 1174 in sdk/android/v5/send-message.mdx

View check run for this annotation

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

sdk/android/v5/send-message.mdx#L1174

Did you really mean 'fallbackText'?
List<String> tags = cardMessage.getTags(); // tags associated with the message
```

Expand All @@ -1180,7 +1181,7 @@
```kotlin
val card = cardMessage.card // raw card schema/payload
val text = cardMessage.text // optional text shown alongside the card
val fallbackText = cardMessage.fallbackText // shown when the card cannot be rendered

Check warning on line 1184 in sdk/android/v5/send-message.mdx

View check run for this annotation

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

sdk/android/v5/send-message.mdx#L1184

Did you really mean 'fallbackText'?
val tags = cardMessage.tags // tags associated with the message
```

Expand Down
4 changes: 2 additions & 2 deletions sdk/flutter/ai-agents.mdx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: "AI Agents"
description: "Learn how to integrate AI Agents in your Flutter app to process messages, trigger tools, and respond with context."
title: "AI Agents in the CometChat Flutter SDK"
description: "Integrate AI Agents into your Flutter app with the CometChat SDK to process user messages, trigger tools, and stream context-aware agent responses."
---

# AI Agents Overview
Expand All @@ -16,10 +16,10 @@

## Agent Run Lifecycle and Message Flow

This section explains how a user's text message to an Agent becomes a structured "run" which emits real-time events and then produces agentic messages for historical retrieval.

Check warning on line 19 in sdk/flutter/ai-agents.mdx

View check run for this annotation

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

sdk/flutter/ai-agents.mdx#L19

Did you really mean 'agentic'?
- A user sends a text message to an Agent.
- The platform starts a run and streams real-time events via the **`AIAssistantListener`**.
- After the run completes, persisted Agentic Messages arrive via the **`MessageListener`**.

Check warning on line 22 in sdk/flutter/ai-agents.mdx

View check run for this annotation

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

sdk/flutter/ai-agents.mdx#L22

Did you really mean 'Agentic'?

### Real-time Events
Events are received via the **`onAIAssistantEventReceived`** method of the **`AIAssistantListener`** class in this general order:
Expand Down Expand Up @@ -112,7 +112,7 @@
| `AIAssistantCardReceivedEvent` | `runId`, `threadId`, `streamMessageId`, `cardId`, `getCard()` → `Map<String, dynamic>?` |
| `AIAssistantCardEndedEvent` | `runId`, `threadId`, `streamMessageId`, `cardId` |

### Agentic Messages

Check warning on line 115 in sdk/flutter/ai-agents.mdx

View check run for this annotation

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

sdk/flutter/ai-agents.mdx#L115

Did you really mean 'Agentic'?

These events are received via the **`MessageListener`** after the run completes.
- `AIAssistantMessage`: The full assistant reply.
Expand All @@ -122,11 +122,11 @@
<Tabs>
<Tab title="Dart">
```dart
const listenerId = "unique_listener_id";

Check warning on line 125 in sdk/flutter/ai-agents.mdx

View check run for this annotation

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

sdk/flutter/ai-agents.mdx#L125

Did you really mean 'listenerId'?

Check warning on line 125 in sdk/flutter/ai-agents.mdx

View check run for this annotation

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

sdk/flutter/ai-agents.mdx#L125

Did you really mean 'unique_listener_id'?

class Class_Name with MessageListener {
// Adding the MessageListener
// CometChat.addMessageListener(listenerId, this);

Check warning on line 129 in sdk/flutter/ai-agents.mdx

View check run for this annotation

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

sdk/flutter/ai-agents.mdx#L129

Did you really mean 'listenerId'?
@override
void onAIAssistantMessageReceived(AIAssistantMessage aiAssistantMessage) {
debugPrint("AI Assistant Message Received: ${aiAssistantMessage.toString()}");
Expand Down Expand Up @@ -163,7 +163,7 @@

#### AIAssistantElement

Each element exposes two accessors:

Check warning on line 166 in sdk/flutter/ai-agents.mdx

View check run for this annotation

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

sdk/flutter/ai-agents.mdx#L166

Did you really mean 'accessors'?

| Method | Return Type | Description |
| -- | -- | -- |
Expand Down Expand Up @@ -223,7 +223,7 @@
<Tabs>
<Tab title="Dart">
```dart
const listenerId = "unique_listener_id";

Check warning on line 226 in sdk/flutter/ai-agents.mdx

View check run for this annotation

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

sdk/flutter/ai-agents.mdx#L226

Did you really mean 'unique_listener_id'?

class CardMessageHandler with MessageListener {
// CometChat.addMessageListener(listenerId, this);
Expand Down
2 changes: 1 addition & 1 deletion sdk/flutter/campaigns.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: "Campaigns"
title: "Campaigns in the CometChat Flutter SDK"
description: "Fetch notification feed items, listen for real-time delivery, mark items as read/delivered, report engagement, and retrieve unread counts in Flutter."
---

Expand All @@ -17,7 +17,7 @@

A **Card Message** is a structured, interactive message rendered as a card bubble inside a conversation. Cards are **receive-only** on the SDK: they are created through the **Platform REST API** or the **Dashboard Bubble Builder** and delivered to clients like any other message — the SDK does not send them.

- **Type:** `CardMessage` (cometchat_sdk)

Check warning on line 20 in sdk/flutter/campaigns.mdx

View check run for this annotation

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

sdk/flutter/campaigns.mdx#L20

Did you really mean 'cometchat_sdk'?
- **Category:** `"card"` (`CometChatMessageCategory.card`)

### Properties
Expand Down Expand Up @@ -112,12 +112,12 @@
"light": "transparent",
"dark": "transparent"
},
"textColor": {

Check warning on line 115 in sdk/flutter/campaigns.mdx

View check run for this annotation

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

sdk/flutter/campaigns.mdx#L115

Did you really mean 'textColor'?
"light": "#6C5CE7",
"dark": "#6C5CE7"
},
"size": 40,
"fontSize": 13,

Check warning on line 120 in sdk/flutter/campaigns.mdx

View check run for this annotation

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

sdk/flutter/campaigns.mdx#L120

Did you really mean 'fontSize'?
"borderRadius": 6,
"padding": {
"top": 0,
Expand All @@ -135,14 +135,14 @@
"id": "col_98fed9bd-1a95-4cee-aa81-84a9016e41f2"
}
],
"fallbackText": "",

Check warning on line 138 in sdk/flutter/campaigns.mdx

View check run for this annotation

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

sdk/flutter/campaigns.mdx#L138

Did you really mean 'fallbackText'?
"style": {
"background": {
"light": "#E8E8E8",
"dark": "#E8E8E8"
},
"borderRadius": 16,
"borderColor": {

Check warning on line 145 in sdk/flutter/campaigns.mdx

View check run for this annotation

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

sdk/flutter/campaigns.mdx#L145

Did you really mean 'borderColor'?
"light": "#DFE6E9",
"dark": "#DFE6E9"
},
Expand Down Expand Up @@ -189,13 +189,13 @@
<Tab title="Dart">
```dart
request.fetchNext(
onSuccess: (List<NotificationFeedItem> items) {

Check warning on line 192 in sdk/flutter/campaigns.mdx

View check run for this annotation

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

sdk/flutter/campaigns.mdx#L192

Did you really mean 'onSuccess'?
for (final item in items) {
final cardJson = jsonEncode(item.content);
// Pass cardJson to CometChatCardView
}
},
onError: (CometChatException e) {

Check warning on line 198 in sdk/flutter/campaigns.mdx

View check run for this annotation

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

sdk/flutter/campaigns.mdx#L198

Did you really mean 'onError'?
debugPrint("Error: ${e.message}");
},
);
Expand Down Expand Up @@ -232,17 +232,17 @@
<Tabs>
<Tab title="Dart">
```dart
final categoriesRequest = (NotificationCategoriesRequestBuilder()

Check warning on line 235 in sdk/flutter/campaigns.mdx

View check run for this annotation

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

sdk/flutter/campaigns.mdx#L235

Did you really mean 'categoriesRequest'?
..setLimit(50))
.build();

categoriesRequest.fetchNext(
onSuccess: (List<NotificationCategory> categories) {

Check warning on line 240 in sdk/flutter/campaigns.mdx

View check run for this annotation

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

sdk/flutter/campaigns.mdx#L240

Did you really mean 'onSuccess'?
for (final category in categories) {
debugPrint("Category: ${category.name}");
}
},
onError: (CometChatException e) {

Check warning on line 245 in sdk/flutter/campaigns.mdx

View check run for this annotation

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

sdk/flutter/campaigns.mdx#L245

Did you really mean 'onError'?
debugPrint("Error: ${e.message}");
},
);
Expand Down Expand Up @@ -270,7 +270,7 @@
```dart
class MyNotificationFeedListener with NotificationFeedListener {
@override
void onFeedItemReceived(NotificationFeedItem feedItem) {

Check warning on line 273 in sdk/flutter/campaigns.mdx

View check run for this annotation

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

sdk/flutter/campaigns.mdx#L273

Did you really mean 'feedItem'?
debugPrint("New item: ${feedItem.id}");
final cardJson = jsonEncode(feedItem.content);
// Insert at top of feed and render
Expand Down Expand Up @@ -306,10 +306,10 @@
```dart
CometChat.markFeedItemAsRead(
feedItem,
onSuccess: (result) {

Check warning on line 309 in sdk/flutter/campaigns.mdx

View check run for this annotation

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

sdk/flutter/campaigns.mdx#L309

Did you really mean 'onSuccess'?
debugPrint("Marked as read");
},
onError: (CometChatException e) {

Check warning on line 312 in sdk/flutter/campaigns.mdx

View check run for this annotation

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

sdk/flutter/campaigns.mdx#L312

Did you really mean 'onError'?
debugPrint("Error: ${e.message}");
},
);
Expand All @@ -328,10 +328,10 @@
```dart
CometChat.markFeedItemAsDelivered(
feedItem,
onSuccess: (result) {

Check warning on line 331 in sdk/flutter/campaigns.mdx

View check run for this annotation

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

sdk/flutter/campaigns.mdx#L331

Did you really mean 'onSuccess'?
// Success
},
onError: (CometChatException e) {

Check warning on line 334 in sdk/flutter/campaigns.mdx

View check run for this annotation

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

sdk/flutter/campaigns.mdx#L334

Did you really mean 'onError'?
debugPrint("Error: ${e.message}");
},
);
Expand All @@ -351,8 +351,8 @@
CometChat.reportFeedEngagement(
feedItem,
"clicked",
onSuccess: (result) {},

Check warning on line 354 in sdk/flutter/campaigns.mdx

View check run for this annotation

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

sdk/flutter/campaigns.mdx#L354

Did you really mean 'onSuccess'?
onError: (CometChatException e) {},

Check warning on line 355 in sdk/flutter/campaigns.mdx

View check run for this annotation

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

sdk/flutter/campaigns.mdx#L355

Did you really mean 'onError'?
);
```
</Tab>
Expand All @@ -370,10 +370,10 @@
<Tab title="Dart">
```dart
CometChat.getNotificationFeedUnreadCount(
onSuccess: (int count) {

Check warning on line 373 in sdk/flutter/campaigns.mdx

View check run for this annotation

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

sdk/flutter/campaigns.mdx#L373

Did you really mean 'onSuccess'?
debugPrint("Unread: $count");
},
onError: (CometChatException e) {

Check warning on line 376 in sdk/flutter/campaigns.mdx

View check run for this annotation

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

sdk/flutter/campaigns.mdx#L376

Did you really mean 'onError'?
debugPrint("Error: ${e.message}");
},
);
Expand All @@ -392,11 +392,11 @@
```dart
CometChat.getNotificationFeedItem(
"item-id-123",
onSuccess: (NotificationFeedItem item) {

Check warning on line 395 in sdk/flutter/campaigns.mdx

View check run for this annotation

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

sdk/flutter/campaigns.mdx#L395

Did you really mean 'onSuccess'?
final cardJson = jsonEncode(item.content);
// Render the card
},
onError: (CometChatException e) {

Check warning on line 399 in sdk/flutter/campaigns.mdx

View check run for this annotation

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

sdk/flutter/campaigns.mdx#L399

Did you really mean 'onError'?
debugPrint("Error: ${e.message}");
},
);
Expand All @@ -417,17 +417,17 @@
<Tabs>
<Tab title="Dart">
```dart
final pushNotification = PushNotification(

Check warning on line 420 in sdk/flutter/campaigns.mdx

View check run for this annotation

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

sdk/flutter/campaigns.mdx#L420

Did you really mean 'pushNotification'?
id: pushPayload['announcementId'],

Check warning on line 421 in sdk/flutter/campaigns.mdx

View check run for this annotation

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

sdk/flutter/campaigns.mdx#L421

Did you really mean 'announcementId'?
announcementId: pushPayload['announcementId'],
campaignId: pushPayload['campaignId'],

Check warning on line 423 in sdk/flutter/campaigns.mdx

View check run for this annotation

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

sdk/flutter/campaigns.mdx#L423

Did you really mean 'campaignId'?
source: "campaign",
);

CometChat.markPushNotificationDelivered(
pushNotification,

Check warning on line 428 in sdk/flutter/campaigns.mdx

View check run for this annotation

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

sdk/flutter/campaigns.mdx#L428

Did you really mean 'pushNotification'?
onSuccess: (result) {},

Check warning on line 429 in sdk/flutter/campaigns.mdx

View check run for this annotation

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

sdk/flutter/campaigns.mdx#L429

Did you really mean 'onSuccess'?
onError: (CometChatException e) {},

Check warning on line 430 in sdk/flutter/campaigns.mdx

View check run for this annotation

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

sdk/flutter/campaigns.mdx#L430

Did you really mean 'onError'?
);
```
</Tab>
Expand Down Expand Up @@ -521,12 +521,12 @@

| Action Type | Parameters | Description |
| --- | --- | --- |
| `openUrl` | url, openIn | Open a URL in browser or webview |

Check warning on line 524 in sdk/flutter/campaigns.mdx

View check run for this annotation

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

sdk/flutter/campaigns.mdx#L524

Did you really mean 'openIn'?

Check warning on line 524 in sdk/flutter/campaigns.mdx

View check run for this annotation

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

sdk/flutter/campaigns.mdx#L524

Did you really mean 'webview'?
| `chatWithUser` | uid | Navigate to 1:1 chat |

Check warning on line 525 in sdk/flutter/campaigns.mdx

View check run for this annotation

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

sdk/flutter/campaigns.mdx#L525

Did you really mean 'uid'?
| `chatWithGroup` | guid | Navigate to group chat |

Check warning on line 526 in sdk/flutter/campaigns.mdx

View check run for this annotation

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

sdk/flutter/campaigns.mdx#L526

Did you really mean 'guid'?
| `sendMessage` | text, receiverUid, receiverGuid | Send a text message |

Check warning on line 527 in sdk/flutter/campaigns.mdx

View check run for this annotation

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

sdk/flutter/campaigns.mdx#L527

Did you really mean 'receiverUid'?

Check warning on line 527 in sdk/flutter/campaigns.mdx

View check run for this annotation

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

sdk/flutter/campaigns.mdx#L527

Did you really mean 'receiverGuid'?
| `copyToClipboard` | value | Copy text to clipboard |
| `downloadFile` | url, filename | Download a file |
| `initiateCall` | callType (audio/video), uid, guid | Start a call |

Check warning on line 530 in sdk/flutter/campaigns.mdx

View check run for this annotation

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

sdk/flutter/campaigns.mdx#L530

Did you really mean 'callType'?

Check warning on line 530 in sdk/flutter/campaigns.mdx

View check run for this annotation

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

sdk/flutter/campaigns.mdx#L530

Did you really mean 'uid'?

Check warning on line 530 in sdk/flutter/campaigns.mdx

View check run for this annotation

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

sdk/flutter/campaigns.mdx#L530

Did you really mean 'guid'?
| `apiCall` | url, method, headers, body | Make an HTTP request |
| `customCallback` | callbackId, payload | App-specific logic |

Check warning on line 532 in sdk/flutter/campaigns.mdx

View check run for this annotation

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

sdk/flutter/campaigns.mdx#L532

Did you really mean 'callbackId'?
4 changes: 2 additions & 2 deletions sdk/flutter/messaging-overview.mdx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: "Messaging"
title: "Messaging overview for the CometChat Flutter SDK"
sidebarTitle: "Overview"
description: "Understand CometChat Flutter messaging, including text, media, custom, card, action, and call message structures."
description: "Understand CometChat Flutter messaging, including text, media, custom, card, action, and call message structures, and the message class hierarchy."
---

Messaging is one of the core features of CometChat. We've thoughtfully created methods to help you send, receive, and fetch message history.
Expand Down Expand Up @@ -50,7 +50,7 @@

Action messages are system-generated. Messages belonging to the `action` category can be of type:

1. **groupMember** — action performed on a group member

Check warning on line 53 in sdk/flutter/messaging-overview.mdx

View check run for this annotation

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

sdk/flutter/messaging-overview.mdx#L53

Did you really mean 'groupMember'?
2. **message** — action performed on a message

Action messages hold a property called `action` which determines the action that has been performed.
Expand All @@ -63,7 +63,7 @@
4. **banned** — when a group member is banned from the group
5. **unbanned** — when a group member is unbanned from the group
6. **added** — when a user is added to the group
7. **scopeChanged** — when the scope of a group member is changed

Check warning on line 66 in sdk/flutter/messaging-overview.mdx

View check run for this annotation

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

sdk/flutter/messaging-overview.mdx#L66

Did you really mean 'scopeChanged'?

For the type `message`, the action can be:

Expand Down
4 changes: 2 additions & 2 deletions sdk/flutter/overview.mdx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: "Chat SDK"
title: "CometChat Chat SDK for Flutter overview"
sidebarTitle: "Overview"
description: "Add CometChat Chat SDK to Flutter apps with real-time messaging, users, groups, conversations, and cross-platform support."
description: "Add the CometChat Chat SDK to Flutter apps for real-time messaging, users, groups, and conversations, with cross-platform support on Android, iOS, and web."
---

The CometChat Chat SDK for Flutter enables real-time messaging, user management, group conversations, and more in your Flutter application. Built as a pure Dart implementation in v5, it removes the dependency on platform channels and works seamlessly across Android, iOS, Web, and desktop.
Expand Down
3 changes: 2 additions & 1 deletion sdk/flutter/real-time-listeners.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
title: "All Real Time Listeners"
title: "Real-time listeners in the CometChat Flutter SDK"
sidebarTitle: "All Real Time Listeners"
description: "Handle CometChat real-time events in Flutter apps with user, group, and message listeners for presence, membership, and messages."
---

Expand All @@ -26,7 +27,7 @@
<Tabs>
<Tab title="Dart">
```dart
class Class_Name with UserListener {

Check warning on line 30 in sdk/flutter/real-time-listeners.mdx

View check run for this annotation

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

sdk/flutter/real-time-listeners.mdx#L30

Did you really mean 'Class_Name'?
//CometChat.addUserListener("user_Listener_id", this);
@override
void onUserOnline(User user) {
Expand Down Expand Up @@ -78,7 +79,7 @@
<Tabs>
<Tab title="Dart">
```dart
class Class_Name with GroupListener {

Check warning on line 82 in sdk/flutter/real-time-listeners.mdx

View check run for this annotation

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

sdk/flutter/real-time-listeners.mdx#L82

Did you really mean 'Class_Name'?
//CometChat.addGroupListener("UNIQUE_LISTENER_ID", this);

@override
Expand All @@ -87,32 +88,32 @@
}

@override
void onGroupMemberLeft(Action action, User leftUser, Group leftGroup) {

Check warning on line 91 in sdk/flutter/real-time-listeners.mdx

View check run for this annotation

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

sdk/flutter/real-time-listeners.mdx#L91

Did you really mean 'leftUser'?

Check warning on line 91 in sdk/flutter/real-time-listeners.mdx

View check run for this annotation

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

sdk/flutter/real-time-listeners.mdx#L91

Did you really mean 'leftGroup'?

}

@override
void onGroupMemberKicked(Action action, User kickedUser, User kickedBy, Group kickedFrom) {

Check warning on line 96 in sdk/flutter/real-time-listeners.mdx

View check run for this annotation

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

sdk/flutter/real-time-listeners.mdx#L96

Did you really mean 'kickedUser'?

Check warning on line 96 in sdk/flutter/real-time-listeners.mdx

View check run for this annotation

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

sdk/flutter/real-time-listeners.mdx#L96

Did you really mean 'kickedBy'?

Check warning on line 96 in sdk/flutter/real-time-listeners.mdx

View check run for this annotation

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

sdk/flutter/real-time-listeners.mdx#L96

Did you really mean 'kickedFrom'?

}

@override
void onGroupMemberBanned(Action action, User bannedUser, User bannedBy, Group bannedFrom) {

Check warning on line 101 in sdk/flutter/real-time-listeners.mdx

View check run for this annotation

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

sdk/flutter/real-time-listeners.mdx#L101

Did you really mean 'bannedUser'?

Check warning on line 101 in sdk/flutter/real-time-listeners.mdx

View check run for this annotation

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

sdk/flutter/real-time-listeners.mdx#L101

Did you really mean 'bannedBy'?

Check warning on line 101 in sdk/flutter/real-time-listeners.mdx

View check run for this annotation

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

sdk/flutter/real-time-listeners.mdx#L101

Did you really mean 'bannedFrom'?

}

@override
void onGroupMemberUnbanned(Action action, User unbannedUser, User unbannedBy, Group unbannedFrom) {

Check warning on line 106 in sdk/flutter/real-time-listeners.mdx

View check run for this annotation

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

sdk/flutter/real-time-listeners.mdx#L106

Did you really mean 'unbannedUser'?

Check warning on line 106 in sdk/flutter/real-time-listeners.mdx

View check run for this annotation

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

sdk/flutter/real-time-listeners.mdx#L106

Did you really mean 'unbannedBy'?

Check warning on line 106 in sdk/flutter/real-time-listeners.mdx

View check run for this annotation

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

sdk/flutter/real-time-listeners.mdx#L106

Did you really mean 'unbannedFrom'?

}

@override
void onGroupMemberScopeChanged(Action action, User updatedBy, User updatedUser, String scopeChangedTo, String scopeChangedFrom, Group group) {

Check warning on line 111 in sdk/flutter/real-time-listeners.mdx

View check run for this annotation

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

sdk/flutter/real-time-listeners.mdx#L111

Did you really mean 'updatedBy'?

Check warning on line 111 in sdk/flutter/real-time-listeners.mdx

View check run for this annotation

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

sdk/flutter/real-time-listeners.mdx#L111

Did you really mean 'updatedUser'?

}

@override
void onMemberAddedToGroup(Action action, User addedby, User userAdded, Group addedTo) {

Check warning on line 116 in sdk/flutter/real-time-listeners.mdx

View check run for this annotation

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

sdk/flutter/real-time-listeners.mdx#L116

Did you really mean 'addedby'?

Check warning on line 116 in sdk/flutter/real-time-listeners.mdx

View check run for this annotation

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

sdk/flutter/real-time-listeners.mdx#L116

Did you really mean 'userAdded'?

Check warning on line 116 in sdk/flutter/real-time-listeners.mdx

View check run for this annotation

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

sdk/flutter/real-time-listeners.mdx#L116

Did you really mean 'addedTo'?

}

Expand Down Expand Up @@ -167,7 +168,7 @@
<Tabs>
<Tab title="Dart">
```dart
class Class_Name with MessageListener {

Check warning on line 171 in sdk/flutter/real-time-listeners.mdx

View check run for this annotation

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

sdk/flutter/real-time-listeners.mdx#L171

Did you really mean 'Class_Name'?

//CometChat.addMessageListener("listenerId", this);
@override
Expand All @@ -176,33 +177,33 @@
}

@override
void onMediaMessageReceived(MediaMessage mediaMessage) {

Check warning on line 180 in sdk/flutter/real-time-listeners.mdx

View check run for this annotation

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

sdk/flutter/real-time-listeners.mdx#L180

Did you really mean 'mediaMessage'?

}

@override
void onCustomMessageReceived(CustomMessage customMessage) {

Check warning on line 185 in sdk/flutter/real-time-listeners.mdx

View check run for this annotation

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

sdk/flutter/real-time-listeners.mdx#L185

Did you really mean 'customMessage'?

}

@override
void onTypingStarted(TypingIndicator typingIndicator) {

Check warning on line 190 in sdk/flutter/real-time-listeners.mdx

View check run for this annotation

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

sdk/flutter/real-time-listeners.mdx#L190

Did you really mean 'typingIndicator'?

}

@override
void onTypingEnded(TypingIndicator typingIndicator) {

Check warning on line 195 in sdk/flutter/real-time-listeners.mdx

View check run for this annotation

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

sdk/flutter/real-time-listeners.mdx#L195

Did you really mean 'typingIndicator'?

}


@override
void onMessagesDelivered(MessageReceipt messageReceipt) {

Check warning on line 201 in sdk/flutter/real-time-listeners.mdx

View check run for this annotation

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

sdk/flutter/real-time-listeners.mdx#L201

Did you really mean 'messageReceipt'?

}

@override
void onMessagesRead(MessageReceipt messageReceipt) {

Check warning on line 206 in sdk/flutter/real-time-listeners.mdx

View check run for this annotation

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

sdk/flutter/real-time-listeners.mdx#L206

Did you really mean 'messageReceipt'?

}

Expand All @@ -228,23 +229,23 @@
}

@override
void onCardMessageReceived(CardMessage cardMessage) {

Check warning on line 232 in sdk/flutter/real-time-listeners.mdx

View check run for this annotation

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

sdk/flutter/real-time-listeners.mdx#L232

Did you really mean 'cardMessage'?

}


@override
void onTransientMessageReceived(TransientMessage transientMessage) {

Check warning on line 238 in sdk/flutter/real-time-listeners.mdx

View check run for this annotation

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

sdk/flutter/real-time-listeners.mdx#L238

Did you really mean 'transientMessage'?

}

@override
void onMessageReactionAdded(ReactionEvent reactionEvent) {

Check warning on line 243 in sdk/flutter/real-time-listeners.mdx

View check run for this annotation

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

sdk/flutter/real-time-listeners.mdx#L243

Did you really mean 'reactionEvent'?

}

@override
void onMessageReactionRemoved(ReactionEvent reactionEvent) {

Check warning on line 248 in sdk/flutter/real-time-listeners.mdx

View check run for this annotation

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

sdk/flutter/real-time-listeners.mdx#L248

Did you really mean 'reactionEvent'?

}

Expand Down Expand Up @@ -328,5 +329,5 @@
</Tabs>

<Note>
The `AIAssistantListener` delivers real-time streaming events. After a run completes, persisted agentic messages (`AIAssistantMessage`, `AIToolResultMessage`, `AIToolArgumentMessage`) are delivered via the `MessageListener` callbacks listed above.

Check warning on line 332 in sdk/flutter/real-time-listeners.mdx

View check run for this annotation

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

sdk/flutter/real-time-listeners.mdx#L332

Did you really mean 'agentic'?
</Note>
4 changes: 2 additions & 2 deletions sdk/flutter/receive-messages.mdx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: "Receive A Message"
description: "Receive CometChat messages in Flutter apps with real-time MessageListener callbacks and missed message retrieval."
title: "Receive messages with the CometChat Flutter SDK"
description: "Receive CometChat messages in Flutter apps with real-time MessageListener callbacks, missed message retrieval, and conversation history fetching."
---


Expand All @@ -21,7 +21,7 @@
<Tabs>
<Tab title="Dart">
```dart
class Class_Name with MessageListener {

Check warning on line 24 in sdk/flutter/receive-messages.mdx

View check run for this annotation

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

sdk/flutter/receive-messages.mdx#L24

Did you really mean 'Class_Name'?

//CometChat.addMessageListener("listenerId", this);
@override
Expand All @@ -30,12 +30,12 @@
}

@override
void onMediaMessageReceived(MediaMessage mediaMessage) {

Check warning on line 33 in sdk/flutter/receive-messages.mdx

View check run for this annotation

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

sdk/flutter/receive-messages.mdx#L33

Did you really mean 'mediaMessage'?
debugPrint("Media message received successfully: $mediaMessage");
}

@override
void onCustomMessageReceived(CustomMessage customMessage) {

Check warning on line 38 in sdk/flutter/receive-messages.mdx

View check run for this annotation

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

sdk/flutter/receive-messages.mdx#L38

Did you really mean 'customMessage'?
debugPrint("Custom message received successfully: $customMessage");
}

Expand All @@ -45,7 +45,7 @@
}

@override
void onCardMessageReceived(CardMessage cardMessage) {

Check warning on line 48 in sdk/flutter/receive-messages.mdx

View check run for this annotation

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

sdk/flutter/receive-messages.mdx#L48

Did you really mean 'cardMessage'?
debugPrint("Card message received successfully: $cardMessage");
}

Expand Down Expand Up @@ -117,7 +117,7 @@
int lastMessageId = -1;
String UID = "cometchat-uid-1";

MessagesRequest messageRequest = (MessagesRequestBuilder()

Check warning on line 120 in sdk/flutter/receive-messages.mdx

View check run for this annotation

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

sdk/flutter/receive-messages.mdx#L120

Did you really mean 'messageRequest'?
..uid = UID
..limit = limit
..messageId = lastMessageId
Expand All @@ -131,7 +131,7 @@
debugPrint("Media message received successfully: "+(message as MediaMessage).toString());
}
}
}, onError: (CometChatException e) {

Check warning on line 134 in sdk/flutter/receive-messages.mdx

View check run for this annotation

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

sdk/flutter/receive-messages.mdx#L134

Did you really mean 'onError'?
debugPrint("Message fetching failed with exception: ${e.message}");
});
```
Expand Down Expand Up @@ -187,7 +187,7 @@
int lastMessageId = -1;
String GUID = "cometchat-uid-1";

MessagesRequest messageRequest = (MessagesRequestBuilder()

Check warning on line 190 in sdk/flutter/receive-messages.mdx

View check run for this annotation

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

sdk/flutter/receive-messages.mdx#L190

Did you really mean 'messageRequest'?
..guid = GUID
..limit = limit
..messageId = lastMessageId
Expand All @@ -202,7 +202,7 @@
debugPrint("Media message received successfully: "+(message as MediaMessage).toString());
}
}
}, onError: (CometChatException e) {

Check warning on line 205 in sdk/flutter/receive-messages.mdx

View check run for this annotation

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

sdk/flutter/receive-messages.mdx#L205

Did you really mean 'onError'?
debugPrint("Message fetching failed with exception: ${e.message}");
});
```
Expand Down Expand Up @@ -266,7 +266,7 @@
int lastMessageId = -1;
String UID = "cometchat-uid-1";

MessagesRequest messageRequest = (MessagesRequestBuilder()

Check warning on line 269 in sdk/flutter/receive-messages.mdx

View check run for this annotation

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

sdk/flutter/receive-messages.mdx#L269

Did you really mean 'messageRequest'?
..uid = UID
..limit = limit
).build();
Expand All @@ -279,7 +279,7 @@
debugPrint("Media message received successfully: "+(message as MediaMessage).toString());
}
}
}, onError: (CometChatException e) {

Check warning on line 282 in sdk/flutter/receive-messages.mdx

View check run for this annotation

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

sdk/flutter/receive-messages.mdx#L282

Did you really mean 'onError'?
debugPrint("Message fetching failed with exception: ${e.message}");
});
```
Expand Down Expand Up @@ -332,7 +332,7 @@

<Note>

By default, the searchKey is searched only in message text. However, if you enable `Conversation & Advanced Search`, the searchKey will be searched in message text, file name, mentions & mime type of the file.

Check warning on line 335 in sdk/flutter/receive-messages.mdx

View check run for this annotation

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

sdk/flutter/receive-messages.mdx#L335

Did you really mean 'searchKey'?

Check warning on line 335 in sdk/flutter/receive-messages.mdx

View check run for this annotation

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

sdk/flutter/receive-messages.mdx#L335

Did you really mean 'searchKey'?

The `Conversation & Advanced Search` is only available in `Advanced` & `Custom` [plans](https://www.cometchat.com/pricing). If you're already on one of these plans, please enable the `Conversation & Advanced Search` from [CometChat Dashboard](https://app.cometchat.com) (Open your app, navigate to Chats -> Settings -> General Configuration)

Expand All @@ -351,10 +351,10 @@
<Tab title="Dart">
```dart
int limit = 30;
int searchKeyword = "search keyboard";

Check warning on line 354 in sdk/flutter/receive-messages.mdx

View check run for this annotation

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

sdk/flutter/receive-messages.mdx#L354

Did you really mean 'searchKeyword'?
String UID = "cometchat-uid-1";

MessagesRequest messageRequest = (MessagesRequestBuilder()

Check warning on line 357 in sdk/flutter/receive-messages.mdx

View check run for this annotation

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

sdk/flutter/receive-messages.mdx#L357

Did you really mean 'messageRequest'?
..uid = UID
..limit = limit
.searchKeyword=searchKeyword
Expand All @@ -368,7 +368,7 @@
debugPrint("Media message received successfully: "+(message as MediaMessage).toString());
}
}
}, onError: (CometChatException e) {

Check warning on line 371 in sdk/flutter/receive-messages.mdx

View check run for this annotation

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

sdk/flutter/receive-messages.mdx#L371

Did you really mean 'onError'?
debugPrint("Message fetching failed with exception: ${e.message}");
});
```
Expand Down Expand Up @@ -450,7 +450,7 @@

CometChat.getUnreadMessageCountForUser(UID, new CometChat.CallbackListener<HashMap<String, Integer>>() {
@Override
public void onSuccess(HashMap<String, Integer> stringIntegerHashMap) {

Check warning on line 453 in sdk/flutter/receive-messages.mdx

View check run for this annotation

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

sdk/flutter/receive-messages.mdx#L453

Did you really mean 'onSuccess'?
// handle success
}

Expand Down Expand Up @@ -506,7 +506,7 @@
onSuccess: (Map<String, int> map) {

},
onError: (CometChatException e) {

Check warning on line 509 in sdk/flutter/receive-messages.mdx

View check run for this annotation

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

sdk/flutter/receive-messages.mdx#L509

Did you really mean 'onError'?

});
```
Expand Down Expand Up @@ -551,7 +551,7 @@
CometChat.getUnreadMessageCount(hideMessagesFromBlockedUsers: hideBlockedUser,
onSuccess: (Map<String, Map<String, int>> map) {

},onError: (CometChatException e) {

Check warning on line 554 in sdk/flutter/receive-messages.mdx

View check run for this annotation

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

sdk/flutter/receive-messages.mdx#L554

Did you really mean 'onError'?

});
```
Expand Down Expand Up @@ -602,7 +602,7 @@
onSuccess: (Map<String, int> map) {

},
onError: (CometChatException e) {

Check warning on line 605 in sdk/flutter/receive-messages.mdx

View check run for this annotation

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

sdk/flutter/receive-messages.mdx#L605

Did you really mean 'onError'?

});
```
Expand Down
4 changes: 2 additions & 2 deletions sdk/flutter/send-message.mdx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: "Send A Message"
description: "Send CometChat text, media, and custom messages to users and groups from Flutter apps, and handle receive-only card messages."
title: "Send messages with the CometChat Flutter SDK"
description: "Send CometChat text, media, custom, and interactive messages to users and groups from Flutter apps, and handle receive-only card messages from AI agents."
---


Expand Down Expand Up @@ -62,18 +62,18 @@
<Tab title="Dart (User)">
```dart
String receiverID = "cometchat-uid-1";
String messageText = "messageText";

Check warning on line 65 in sdk/flutter/send-message.mdx

View check run for this annotation

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

sdk/flutter/send-message.mdx#L65

Did you really mean 'messageText'?

Check warning on line 65 in sdk/flutter/send-message.mdx

View check run for this annotation

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

sdk/flutter/send-message.mdx#L65

Did you really mean 'messageText'?
String receiverType = CometChatConversationType.user;

Check warning on line 66 in sdk/flutter/send-message.mdx

View check run for this annotation

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

sdk/flutter/send-message.mdx#L66

Did you really mean 'receiverType'?
String type = CometChatMessageType.text;

TextMessage textMessage = TextMessage(text: messageText,

Check warning on line 69 in sdk/flutter/send-message.mdx

View check run for this annotation

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

sdk/flutter/send-message.mdx#L69

Did you really mean 'textMessage'?

Check warning on line 69 in sdk/flutter/send-message.mdx

View check run for this annotation

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

sdk/flutter/send-message.mdx#L69

Did you really mean 'messageText'?
receiverUid: receiverID,

Check warning on line 70 in sdk/flutter/send-message.mdx

View check run for this annotation

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

sdk/flutter/send-message.mdx#L70

Did you really mean 'receiverUid'?
receiverType: receiverType,

Check warning on line 71 in sdk/flutter/send-message.mdx

View check run for this annotation

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

sdk/flutter/send-message.mdx#L71

Did you really mean 'receiverType'?

Check warning on line 71 in sdk/flutter/send-message.mdx

View check run for this annotation

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

sdk/flutter/send-message.mdx#L71

Did you really mean 'receiverType'?
type: type);
CometChat.sendMessage(textMessage,
onSuccess: (TextMessage message) {

Check warning on line 74 in sdk/flutter/send-message.mdx

View check run for this annotation

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

sdk/flutter/send-message.mdx#L74

Did you really mean 'onSuccess'?
debugPrint("Message sent successfully: $message");
}, onError: (CometChatException e) {

Check warning on line 76 in sdk/flutter/send-message.mdx

View check run for this annotation

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

sdk/flutter/send-message.mdx#L76

Did you really mean 'onError'?
debugPrint("Message sending failed with exception: ${e.message}");
}
);
Expand Down Expand Up @@ -135,18 +135,18 @@
<Tab title="Dart (User)">
```dart
String receiverID = "UID";
String messageText = "Hello CometChat!";

Check warning on line 138 in sdk/flutter/send-message.mdx

View check run for this annotation

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

sdk/flutter/send-message.mdx#L138

Did you really mean 'messageText'?
String receiverType = CometChatReceiverType.user;

Check warning on line 139 in sdk/flutter/send-message.mdx

View check run for this annotation

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

sdk/flutter/send-message.mdx#L139

Did you really mean 'receiverType'?

TextMessage textMessage =

Check warning on line 141 in sdk/flutter/send-message.mdx

View check run for this annotation

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

sdk/flutter/send-message.mdx#L141

Did you really mean 'textMessage'?
TextMessage(receiverID, messageText, receiverType);

Check warning on line 142 in sdk/flutter/send-message.mdx

View check run for this annotation

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

sdk/flutter/send-message.mdx#L142

Did you really mean 'messageText'?

Check warning on line 142 in sdk/flutter/send-message.mdx

View check run for this annotation

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

sdk/flutter/send-message.mdx#L142

Did you really mean 'receiverType'?

CometChat.sendMessage(
textMessage,

Check warning on line 145 in sdk/flutter/send-message.mdx

View check run for this annotation

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

sdk/flutter/send-message.mdx#L145

Did you really mean 'textMessage'?
onSuccess: (TextMessage message) {

Check warning on line 146 in sdk/flutter/send-message.mdx

View check run for this annotation

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

sdk/flutter/send-message.mdx#L146

Did you really mean 'onSuccess'?
print("Message sent successfully: ${message.toString()}");
},
onError: (CometChatException e) {

Check warning on line 149 in sdk/flutter/send-message.mdx

View check run for this annotation

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

sdk/flutter/send-message.mdx#L149

Did you really mean 'onError'?
print("Message sending failed with exception: ${e.message}");
},
);
Expand Down Expand Up @@ -246,19 +246,19 @@
<Tab title="Dart">
```dart
String receiverID;
String messageType = CometChatMessageType.image;

Check warning on line 249 in sdk/flutter/send-message.mdx

View check run for this annotation

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

sdk/flutter/send-message.mdx#L249

Did you really mean 'messageType'?
String receiverType = CometChatConversationType.user ;

Check warning on line 250 in sdk/flutter/send-message.mdx

View check run for this annotation

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

sdk/flutter/send-message.mdx#L250

Did you really mean 'receiverType'?
String filePath = "storage/emulated/0/Download/46.jpg";

Check warning on line 251 in sdk/flutter/send-message.mdx

View check run for this annotation

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

sdk/flutter/send-message.mdx#L251

Did you really mean 'filePath'?
MediaMessage mediaMessage = MediaMessage(

Check warning on line 252 in sdk/flutter/send-message.mdx

View check run for this annotation

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

sdk/flutter/send-message.mdx#L252

'mediaMessage' is repeated!

Check warning on line 252 in sdk/flutter/send-message.mdx

View check run for this annotation

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

sdk/flutter/send-message.mdx#L252

Did you really mean 'mediaMessage'?
receiverType: receiverType,

Check warning on line 253 in sdk/flutter/send-message.mdx

View check run for this annotation

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

sdk/flutter/send-message.mdx#L253

Did you really mean 'receiverType'?

Check warning on line 253 in sdk/flutter/send-message.mdx

View check run for this annotation

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

sdk/flutter/send-message.mdx#L253

Did you really mean 'receiverType'?
type: messageType,

Check warning on line 254 in sdk/flutter/send-message.mdx

View check run for this annotation

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

sdk/flutter/send-message.mdx#L254

Did you really mean 'messageType'?
receiverUid: receiverID,

Check warning on line 255 in sdk/flutter/send-message.mdx

View check run for this annotation

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

sdk/flutter/send-message.mdx#L255

Did you really mean 'receiverUid'?
file: filePath);

await CometChat.sendMediaMessage(mediaMessage,
onSuccess: (MediaMessage message) {

Check warning on line 259 in sdk/flutter/send-message.mdx

View check run for this annotation

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

sdk/flutter/send-message.mdx#L259

Did you really mean 'onSuccess'?
debugPrint("Media message sent successfully:${mediaMessage.metadata}");
}, onError: (e) {

Check warning on line 261 in sdk/flutter/send-message.mdx

View check run for this annotation

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

sdk/flutter/send-message.mdx#L261

Did you really mean 'onError'?
debugPrint("Media message sending failed with exception: ${e.message}");
}
);
Expand Down Expand Up @@ -298,7 +298,7 @@

await CometChat.sendMediaMessage(mediaMessage,
onSuccess: (MediaMessage message) {
debugPrint( "Media message sent successfully: ${mediaMessage}");

Check warning on line 301 in sdk/flutter/send-message.mdx

View check run for this annotation

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

sdk/flutter/send-message.mdx#L301

Did you really mean 'mediaMessage'?
}, onError: (CometChatException e) {
debugPrint("Media message sending failed with exception: ${e.message}");
}
Expand All @@ -321,8 +321,8 @@
<Tab title="Dart">
```dart
String receiverID = "cometchat-uid-1";
String receiverType = CometChatConversationType.user;

Check warning on line 324 in sdk/flutter/send-message.mdx

View check run for this annotation

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

sdk/flutter/send-message.mdx#L324

Did you really mean 'receiverType'?
String messageType = CometChatMessageType.image;

Check warning on line 325 in sdk/flutter/send-message.mdx

View check run for this annotation

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

sdk/flutter/send-message.mdx#L325

Did you really mean 'messageType'?

// Create a list of file paths
List<String> filePaths = [
Expand All @@ -331,15 +331,15 @@
"storage/emulated/0/Download/image3.jpg",
];

MediaMessage mediaMessage = MediaMessage(

Check warning on line 334 in sdk/flutter/send-message.mdx

View check run for this annotation

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

sdk/flutter/send-message.mdx#L334

'mediaMessage' is repeated!
receiverType: receiverType,

Check warning on line 335 in sdk/flutter/send-message.mdx

View check run for this annotation

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

sdk/flutter/send-message.mdx#L335

Did you really mean 'receiverType'?

Check warning on line 335 in sdk/flutter/send-message.mdx

View check run for this annotation

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

sdk/flutter/send-message.mdx#L335

Did you really mean 'receiverType'?
type: messageType,

Check warning on line 336 in sdk/flutter/send-message.mdx

View check run for this annotation

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

sdk/flutter/send-message.mdx#L336

Did you really mean 'messageType'?
receiverUid: receiverID,

Check warning on line 337 in sdk/flutter/send-message.mdx

View check run for this annotation

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

sdk/flutter/send-message.mdx#L337

Did you really mean 'receiverUid'?
files: filePaths, // Use 'files' for multiple files

Check warning on line 338 in sdk/flutter/send-message.mdx

View check run for this annotation

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

sdk/flutter/send-message.mdx#L338

Did you really mean 'filePaths'?
);

await CometChat.sendMediaMessage(mediaMessage,
onSuccess: (MediaMessage message) {

Check warning on line 342 in sdk/flutter/send-message.mdx

View check run for this annotation

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

sdk/flutter/send-message.mdx#L342

Did you really mean 'onSuccess'?
debugPrint("Multiple media files sent successfully");
// Access the list of attachments
List<Attachment>? attachments = message.attachments;
Expand All @@ -347,7 +347,7 @@
debugPrint("Attachment URL: ${attachment.fileUrl}");
}
},
onError: (CometChatException e) {

Check warning on line 350 in sdk/flutter/send-message.mdx

View check run for this annotation

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

sdk/flutter/send-message.mdx#L350

Did you really mean 'onError'?
debugPrint("Media message sending failed: ${e.message}");
}
);
Expand Down Expand Up @@ -405,10 +405,10 @@
<Tabs>
<Tab title="Dart">
```dart
CustomMessage customMessage = CustomMessage( receiverUid: UID,

Check warning on line 408 in sdk/flutter/send-message.mdx

View check run for this annotation

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

sdk/flutter/send-message.mdx#L408

'customMessage' is repeated!

Check warning on line 408 in sdk/flutter/send-message.mdx

View check run for this annotation

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

sdk/flutter/send-message.mdx#L408

Did you really mean 'customMessage'?

Check warning on line 408 in sdk/flutter/send-message.mdx

View check run for this annotation

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

sdk/flutter/send-message.mdx#L408

Did you really mean 'receiverUid'?
type: type,
customData: customData,

Check warning on line 410 in sdk/flutter/send-message.mdx

View check run for this annotation

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

sdk/flutter/send-message.mdx#L410

Did you really mean 'customData'?

Check warning on line 410 in sdk/flutter/send-message.mdx

View check run for this annotation

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

sdk/flutter/send-message.mdx#L410

Did you really mean 'customData'?
receiverType: receiverType,

Check warning on line 411 in sdk/flutter/send-message.mdx

View check run for this annotation

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

sdk/flutter/send-message.mdx#L411

Did you really mean 'receiverType'?

Check warning on line 411 in sdk/flutter/send-message.mdx

View check run for this annotation

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

sdk/flutter/send-message.mdx#L411

Did you really mean 'receiverType'?
subType: subType,
);
```
Expand Down Expand Up @@ -451,24 +451,24 @@
```dart
String UID = "UID";
String subType = "LOCATION";
String receiverType = CometChatConversationType.user;

Check warning on line 454 in sdk/flutter/send-message.mdx

View check run for this annotation

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

sdk/flutter/send-message.mdx#L454

Did you really mean 'receiverType'?
String type = CometChatMessageType.custom;

Map<String, String> customData = {};

Check warning on line 457 in sdk/flutter/send-message.mdx

View check run for this annotation

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

sdk/flutter/send-message.mdx#L457

Did you really mean 'customData'?
customData["latitude"] = "19.0760";
customData["longitude"] = "72.8777";

CustomMessage customMessage = CustomMessage(

Check warning on line 461 in sdk/flutter/send-message.mdx

View check run for this annotation

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

sdk/flutter/send-message.mdx#L461

'customMessage' is repeated!

Check warning on line 461 in sdk/flutter/send-message.mdx

View check run for this annotation

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

sdk/flutter/send-message.mdx#L461

Did you really mean 'customMessage'?
receiverUid: UID,

Check warning on line 462 in sdk/flutter/send-message.mdx

View check run for this annotation

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

sdk/flutter/send-message.mdx#L462

Did you really mean 'receiverUid'?
type: type,
customData: customData,

Check warning on line 464 in sdk/flutter/send-message.mdx

View check run for this annotation

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

sdk/flutter/send-message.mdx#L464

Did you really mean 'customData'?

Check warning on line 464 in sdk/flutter/send-message.mdx

View check run for this annotation

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

sdk/flutter/send-message.mdx#L464

Did you really mean 'customData'?
receiverType: receiverType,

Check warning on line 465 in sdk/flutter/send-message.mdx

View check run for this annotation

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

sdk/flutter/send-message.mdx#L465

Did you really mean 'receiverType'?

Check warning on line 465 in sdk/flutter/send-message.mdx

View check run for this annotation

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

sdk/flutter/send-message.mdx#L465

Did you really mean 'receiverType'?
subType: subType,
);

CometChat.sendCustomMessage(customMessage, onSuccess: (CustomMessage message) {

Check warning on line 469 in sdk/flutter/send-message.mdx

View check run for this annotation

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

sdk/flutter/send-message.mdx#L469

Did you really mean 'onSuccess'?
debugPrint("Custom Message Sent Successfully : $message");
}, onError: (CometChatException e) {

Check warning on line 471 in sdk/flutter/send-message.mdx

View check run for this annotation

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

sdk/flutter/send-message.mdx#L471

Did you really mean 'onError'?
debugPrint("Custom message sending failed with exception: ${e.message}");
});
```
Expand Down Expand Up @@ -520,25 +520,25 @@
```dart
String UID = "UID";
String subType = "LOCATION";
String receiverType = CometChatConversationType.user;

Check warning on line 523 in sdk/flutter/send-message.mdx

View check run for this annotation

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

sdk/flutter/send-message.mdx#L523

Did you really mean 'receiverType'?
String type = CometChatMessageType.custom;

Map<String, String> customData = {};

Check warning on line 526 in sdk/flutter/send-message.mdx

View check run for this annotation

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

sdk/flutter/send-message.mdx#L526

Did you really mean 'customData'?
customData["latitude"] = "19.0760";
customData["longitude"] = "72.8777";

CustomMessage customMessage = CustomMessage(

Check warning on line 530 in sdk/flutter/send-message.mdx

View check run for this annotation

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

sdk/flutter/send-message.mdx#L530

'customMessage' is repeated!

Check warning on line 530 in sdk/flutter/send-message.mdx

View check run for this annotation

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

sdk/flutter/send-message.mdx#L530

Did you really mean 'customMessage'?
receiverUid: UID,

Check warning on line 531 in sdk/flutter/send-message.mdx

View check run for this annotation

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

sdk/flutter/send-message.mdx#L531

Did you really mean 'receiverUid'?
type: type,
customData: customData,

Check warning on line 533 in sdk/flutter/send-message.mdx

View check run for this annotation

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

sdk/flutter/send-message.mdx#L533

Did you really mean 'customData'?

Check warning on line 533 in sdk/flutter/send-message.mdx

View check run for this annotation

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

sdk/flutter/send-message.mdx#L533

Did you really mean 'customData'?
receiverType: receiverType,

Check warning on line 534 in sdk/flutter/send-message.mdx

View check run for this annotation

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

sdk/flutter/send-message.mdx#L534

Did you really mean 'receiverType'?

Check warning on line 534 in sdk/flutter/send-message.mdx

View check run for this annotation

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

sdk/flutter/send-message.mdx#L534

Did you really mean 'receiverType'?
subType: subType,
);
customMessage.updateConversation = false;

CometChat.sendCustomMessage(customMessage, onSuccess: (CustomMessage message) {

Check warning on line 539 in sdk/flutter/send-message.mdx

View check run for this annotation

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

sdk/flutter/send-message.mdx#L539

Did you really mean 'onSuccess'?
debugPrint("Custom Message Sent Successfully : $message");
}, onError: (CometChatException e) {

Check warning on line 541 in sdk/flutter/send-message.mdx

View check run for this annotation

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

sdk/flutter/send-message.mdx#L541

Did you really mean 'onError'?
debugPrint("Custom message sending failed with exception: ${e.message}");
});
```
Expand Down Expand Up @@ -587,25 +587,25 @@
```dart
String UID = "UID";
String subType = "LOCATION";
String receiverType = CometChatConversationType.user;

Check warning on line 590 in sdk/flutter/send-message.mdx

View check run for this annotation

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

sdk/flutter/send-message.mdx#L590

Did you really mean 'receiverType'?
String type = CometChatMessageType.custom;

Map<String, String> customData = {};

Check warning on line 593 in sdk/flutter/send-message.mdx

View check run for this annotation

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

sdk/flutter/send-message.mdx#L593

Did you really mean 'customData'?
customData["latitude"] = "19.0760";
customData["longitude"] = "72.8777";

CustomMessage customMessage = CustomMessage(

Check warning on line 597 in sdk/flutter/send-message.mdx

View check run for this annotation

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

sdk/flutter/send-message.mdx#L597

'customMessage' is repeated!

Check warning on line 597 in sdk/flutter/send-message.mdx

View check run for this annotation

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

sdk/flutter/send-message.mdx#L597

Did you really mean 'customMessage'?
receiverUid: UID,

Check warning on line 598 in sdk/flutter/send-message.mdx

View check run for this annotation

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

sdk/flutter/send-message.mdx#L598

Did you really mean 'receiverUid'?
type: type,
customData: customData,

Check warning on line 600 in sdk/flutter/send-message.mdx

View check run for this annotation

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

sdk/flutter/send-message.mdx#L600

Did you really mean 'customData'?

Check warning on line 600 in sdk/flutter/send-message.mdx

View check run for this annotation

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

sdk/flutter/send-message.mdx#L600

Did you really mean 'customData'?
receiverType: receiverType,

Check warning on line 601 in sdk/flutter/send-message.mdx

View check run for this annotation

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

sdk/flutter/send-message.mdx#L601

Did you really mean 'receiverType'?

Check warning on line 601 in sdk/flutter/send-message.mdx

View check run for this annotation

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

sdk/flutter/send-message.mdx#L601

Did you really mean 'receiverType'?
subType: subType,
);
customMessage.conversationText = "Custom Notification Body";

CometChat.sendCustomMessage(customMessage, onSuccess: (CustomMessage message) {

Check warning on line 606 in sdk/flutter/send-message.mdx

View check run for this annotation

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

sdk/flutter/send-message.mdx#L606

Did you really mean 'onSuccess'?
debugPrint("Custom Message Sent Successfully : $message");
}, onError: (CometChatException e) {

Check warning on line 608 in sdk/flutter/send-message.mdx

View check run for this annotation

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

sdk/flutter/send-message.mdx#L608

Did you really mean 'onError'?
debugPrint("Custom message sending failed with exception: ${e.message}");
});
```
Expand Down Expand Up @@ -664,7 +664,7 @@
```dart
final card = cardMessage.getCard(); // raw card schema/payload (Map<String, dynamic>?)
final text = cardMessage.getText(); // optional text shown alongside the card
final fallbackText = cardMessage.getFallbackText(); // shown when the card cannot be rendered

Check warning on line 667 in sdk/flutter/send-message.mdx

View check run for this annotation

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

sdk/flutter/send-message.mdx#L667

Did you really mean 'fallbackText'?
final tags = cardMessage.getTags(); // tags associated with the message
```

Expand Down Expand Up @@ -708,7 +708,7 @@
import 'package:cometchat_cards/cometchat_cards.dart';
import 'dart:convert';

Widget buildCardMessage(CardMessage cardMessage) {

Check warning on line 711 in sdk/flutter/send-message.mdx

View check run for this annotation

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

sdk/flutter/send-message.mdx#L711

Did you really mean 'cardMessage'?
return CometChatCardView(
cardJson: jsonEncode(cardMessage.getCard()),
themeMode: CometChatCardThemeMode.auto, // follows system light/dark
Expand Down
4 changes: 2 additions & 2 deletions sdk/ios/ai-agents.mdx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: "AI Agents"
title: "AI Agents in the CometChat iOS SDK"
sidebarTitle: "AI Agents"
description: "Integrate AI Agents for intelligent automated interactions using the CometChat iOS SDK with real-time streaming events."
description: "Integrate AI Agents into your iOS app with the CometChat SDK for intelligent automated interactions, real-time streaming events, tool calls, and card messages."
---

<Accordion title="AI Integration Quick Reference">
Expand Down Expand Up @@ -45,10 +45,10 @@
<Tab title="Swift">
```swift
let agentUID = "ai-agent-uid"
let textMessage = TextMessage(

Check warning on line 48 in sdk/ios/ai-agents.mdx

View check run for this annotation

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

sdk/ios/ai-agents.mdx#L48

Did you really mean 'textMessage'?
receiverUid: agentUID,

Check warning on line 49 in sdk/ios/ai-agents.mdx

View check run for this annotation

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

sdk/ios/ai-agents.mdx#L49

Did you really mean 'receiverUid'?
text: "What's the weather today?",
receiverType: .user

Check warning on line 51 in sdk/ios/ai-agents.mdx

View check run for this annotation

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

sdk/ios/ai-agents.mdx#L51

Did you really mean 'receiverType'?
)

CometChat.sendTextMessage(message: textMessage) { sentMessage in
Expand All @@ -64,7 +64,7 @@

When a user sends a text message to an Agent:
1. The platform starts a run and streams real-time events via `AIAssistantEventsDelegate`
2. After the run completes, persisted Agentic Messages arrive via `CometChatMessageDelegate`

Check warning on line 67 in sdk/ios/ai-agents.mdx

View check run for this annotation

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

sdk/ios/ai-agents.mdx#L67

Did you really mean 'Agentic'?

### Real-time Events

Expand Down Expand Up @@ -96,7 +96,7 @@

class AIAssistantEventHandler: AIAssistantEventsDelegate {

private let sdkStreamListenerId = "unique_listener_id"

Check warning on line 99 in sdk/ios/ai-agents.mdx

View check run for this annotation

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

sdk/ios/ai-agents.mdx#L99

Did you really mean 'unique_listener_id'?

func addListener() {
CometChat.addAIAssistantListener(sdkStreamListenerId, self)
Expand Down Expand Up @@ -151,7 +151,7 @@
</Tab>
</Tabs>

### Agentic Messages

Check warning on line 154 in sdk/ios/ai-agents.mdx

View check run for this annotation

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

sdk/ios/ai-agents.mdx#L154

Did you really mean 'Agentic'?

After the run completes, these messages arrive via `CometChatMessageDelegate`:

Expand All @@ -166,7 +166,7 @@
```swift
import CometChatSDK

let listenerId = "unique_listener_id"

Check warning on line 169 in sdk/ios/ai-agents.mdx

View check run for this annotation

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

sdk/ios/ai-agents.mdx#L169

Did you really mean 'listenerId'?

class MessageHandler: CometChatMessageDelegate {

Expand Down Expand Up @@ -237,7 +237,7 @@

<CardGroup cols={2}>
<Card title="AI Chatbots" icon="robot" href="/ai-chatbots/overview">
Set up AI-powered chatbots for automated conversations

Check warning on line 240 in sdk/ios/ai-agents.mdx

View check run for this annotation

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

sdk/ios/ai-agents.mdx#L240

Did you really mean 'chatbots'?
</Card>
<Card title="AI Moderation" icon="shield-check" href="/sdk/ios/ai-moderation">
Automatically moderate messages with AI
Expand Down
4 changes: 2 additions & 2 deletions sdk/ios/all-real-time-delegates-listeners.mdx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: "All Real Time Delegates (Listeners)"
description: "Complete reference for all CometChat iOS SDK real-time delegates including User, Group, Message, and Call listeners."
title: "Real-time delegates in the CometChat iOS SDK"
description: "Reference for CometChat iOS SDK real-time delegates including user, group, message, call, and AI assistant listeners for handling live chat events."
---

<Accordion title="AI Integration Quick Reference">
Expand Down Expand Up @@ -95,13 +95,13 @@

| Method | Information |
| ------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------- |
| **onGroupMemberJoined(action:** [`Action`](/sdk/reference/messages#action)**, joinedUser:** [`User`](/sdk/reference/entities#user)**, joinedGroup:** [`Group`](/sdk/reference/entities#group)**)** | This method is triggered when a user joins any group. All the members present in the group will receive this event. |

Check warning on line 98 in sdk/ios/all-real-time-delegates-listeners.mdx

View check run for this annotation

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

sdk/ios/all-real-time-delegates-listeners.mdx#L98

Did you really mean 'joinedUser'?

Check warning on line 98 in sdk/ios/all-real-time-delegates-listeners.mdx

View check run for this annotation

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

sdk/ios/all-real-time-delegates-listeners.mdx#L98

Did you really mean 'joinedGroup'?
| **onGroupMemberLeft(action:** [`Action`](/sdk/reference/messages#action)**, leftUser:** [`User`](/sdk/reference/entities#user)**, leftGroup:** [`Group`](/sdk/reference/entities#group)**)** | This method is triggered when a user who was a member of any group leaves the group. All the members of the group receive this event. |

Check warning on line 99 in sdk/ios/all-real-time-delegates-listeners.mdx

View check run for this annotation

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

sdk/ios/all-real-time-delegates-listeners.mdx#L99

Did you really mean 'leftUser'?

Check warning on line 99 in sdk/ios/all-real-time-delegates-listeners.mdx

View check run for this annotation

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

sdk/ios/all-real-time-delegates-listeners.mdx#L99

Did you really mean 'leftGroup'?
| **onGroupMemberKicked(action:** [`Action`](/sdk/reference/messages#action)**, kickedUser:** [`User`](/sdk/reference/entities#user)**, kickedBy:** [`User`](/sdk/reference/entities#user)**, kickedFrom:** [`Group`](/sdk/reference/entities#group)**)** | This method is triggered when a user is kicked from a group. All the members including the user receive this event |

Check warning on line 100 in sdk/ios/all-real-time-delegates-listeners.mdx

View check run for this annotation

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

sdk/ios/all-real-time-delegates-listeners.mdx#L100

Did you really mean 'kickedUser'?

Check warning on line 100 in sdk/ios/all-real-time-delegates-listeners.mdx

View check run for this annotation

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

sdk/ios/all-real-time-delegates-listeners.mdx#L100

Did you really mean 'kickedBy'?

Check warning on line 100 in sdk/ios/all-real-time-delegates-listeners.mdx

View check run for this annotation

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

sdk/ios/all-real-time-delegates-listeners.mdx#L100

Did you really mean 'kickedFrom'?
| **onGroupMemberBanned(action:** [`Action`](/sdk/reference/messages#action)**, bannedUser:** [`User`](/sdk/reference/entities#user)**, bannedBy:** [`User`](/sdk/reference/entities#user)**, bannedFrom:** [`Group`](/sdk/reference/entities#group)**)** | This method is triggered when a user is banned from a group. All the members including the user receive this event |

Check warning on line 101 in sdk/ios/all-real-time-delegates-listeners.mdx

View check run for this annotation

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

sdk/ios/all-real-time-delegates-listeners.mdx#L101

Did you really mean 'bannedUser'?

Check warning on line 101 in sdk/ios/all-real-time-delegates-listeners.mdx

View check run for this annotation

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

sdk/ios/all-real-time-delegates-listeners.mdx#L101

Did you really mean 'bannedBy'?

Check warning on line 101 in sdk/ios/all-real-time-delegates-listeners.mdx

View check run for this annotation

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

sdk/ios/all-real-time-delegates-listeners.mdx#L101

Did you really mean 'bannedFrom'?
| **onGroupMemberUnbanned(action:** [`Action`](/sdk/reference/messages#action)**, unbannedUser:** [`User`](/sdk/reference/entities#user)**, unbannedBy:** [`User`](/sdk/reference/entities#user)**, unbannedFrom:** [`Group`](/sdk/reference/entities#group)**)** | This method is triggered when a user is banned from a group. All the members of the group receive this event. |

Check warning on line 102 in sdk/ios/all-real-time-delegates-listeners.mdx

View check run for this annotation

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

sdk/ios/all-real-time-delegates-listeners.mdx#L102

Did you really mean 'unbannedUser'?

Check warning on line 102 in sdk/ios/all-real-time-delegates-listeners.mdx

View check run for this annotation

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

sdk/ios/all-real-time-delegates-listeners.mdx#L102

Did you really mean 'unbannedBy'?

Check warning on line 102 in sdk/ios/all-real-time-delegates-listeners.mdx

View check run for this annotation

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

sdk/ios/all-real-time-delegates-listeners.mdx#L102

Did you really mean 'unbannedFrom'?
| **onGroupMemberScopeChanged(action:** [`Action`](/sdk/reference/messages#action)**, updatedBy:** [`User`](/sdk/reference/entities#user)**, updatedUser:** [`User`](/sdk/reference/entities#user)**, scopeChangedTo: String, scopeChangedFrom: String, group:** [`Group`](/sdk/reference/entities#group)**)** | This method is triggered when the scope of any Group Member has been changed. All the members that are a part of that group receive this event |

Check warning on line 103 in sdk/ios/all-real-time-delegates-listeners.mdx

View check run for this annotation

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

sdk/ios/all-real-time-delegates-listeners.mdx#L103

Did you really mean 'updatedBy'?

Check warning on line 103 in sdk/ios/all-real-time-delegates-listeners.mdx

View check run for this annotation

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

sdk/ios/all-real-time-delegates-listeners.mdx#L103

Did you really mean 'updatedUser'?
| **onMemberAddedToGroup(action:** [`Action`](/sdk/reference/messages#action)**, addedby:** [`User`](/sdk/reference/entities#user)**, userAdded:** [`User`](/sdk/reference/entities#user)**, addedTo:** [`Group`](/sdk/reference/entities#group)**)** | This method is triggered when a user is added to any group. All the members including the user himself receive this event. |

Check warning on line 104 in sdk/ios/all-real-time-delegates-listeners.mdx

View check run for this annotation

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

sdk/ios/all-real-time-delegates-listeners.mdx#L104

Did you really mean 'addedby'?

Check warning on line 104 in sdk/ios/all-real-time-delegates-listeners.mdx

View check run for this annotation

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

sdk/ios/all-real-time-delegates-listeners.mdx#L104

Did you really mean 'userAdded'?

Check warning on line 104 in sdk/ios/all-real-time-delegates-listeners.mdx

View check run for this annotation

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

sdk/ios/all-real-time-delegates-listeners.mdx#L104

Did you really mean 'addedTo'?

You can receive live events related to groups. In order to receive group events, you must add protocol conformance `CometChatGroupDelegate` as shown below:

Expand All @@ -114,23 +114,23 @@
print("\\(joinedUser.name) joined the group \\(joinedGroup.name).")
}

func onGroupMemberLeft(action: ActionMessage, leftUser: User, leftGroup: Group) {

Check warning on line 117 in sdk/ios/all-real-time-delegates-listeners.mdx

View check run for this annotation

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

sdk/ios/all-real-time-delegates-listeners.mdx#L117

Did you really mean 'leftUser'?

Check warning on line 117 in sdk/ios/all-real-time-delegates-listeners.mdx

View check run for this annotation

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

sdk/ios/all-real-time-delegates-listeners.mdx#L117

Did you really mean 'leftGroup'?
print("\\(leftUser.name) left the group \\(leftGroup.name).")
}

func onGroupMemberKicked(action: ActionMessage, kickedUser: User, kickedBy: User, kickedFrom: Group) {

Check warning on line 121 in sdk/ios/all-real-time-delegates-listeners.mdx

View check run for this annotation

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

sdk/ios/all-real-time-delegates-listeners.mdx#L121

Did you really mean 'kickedUser'?

Check warning on line 121 in sdk/ios/all-real-time-delegates-listeners.mdx

View check run for this annotation

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

sdk/ios/all-real-time-delegates-listeners.mdx#L121

Did you really mean 'kickedBy'?

Check warning on line 121 in sdk/ios/all-real-time-delegates-listeners.mdx

View check run for this annotation

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

sdk/ios/all-real-time-delegates-listeners.mdx#L121

Did you really mean 'kickedFrom'?
print("\\(kickedUser.name) kicked from the group \\(kickedFrom.name) by \\(kickedBy.name).")
}

func onGroupMemberBanned(action: ActionMessage, bannedUser: User, bannedBy: User, bannedFrom: Group) {

Check warning on line 125 in sdk/ios/all-real-time-delegates-listeners.mdx

View check run for this annotation

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

sdk/ios/all-real-time-delegates-listeners.mdx#L125

Did you really mean 'bannedUser'?

Check warning on line 125 in sdk/ios/all-real-time-delegates-listeners.mdx

View check run for this annotation

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

sdk/ios/all-real-time-delegates-listeners.mdx#L125

Did you really mean 'bannedBy'?

Check warning on line 125 in sdk/ios/all-real-time-delegates-listeners.mdx

View check run for this annotation

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

sdk/ios/all-real-time-delegates-listeners.mdx#L125

Did you really mean 'bannedFrom'?
print("\\(bannedUser.name) banned from the group \\(bannedFrom.name) by \\(bannedBy.name).")
}

func onGroupMemberUnbanned(action: ActionMessage, unbannedUser: User, unbannedBy: User, unbannedFrom: Group) {

Check warning on line 129 in sdk/ios/all-real-time-delegates-listeners.mdx

View check run for this annotation

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

sdk/ios/all-real-time-delegates-listeners.mdx#L129

Did you really mean 'unbannedUser'?

Check warning on line 129 in sdk/ios/all-real-time-delegates-listeners.mdx

View check run for this annotation

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

sdk/ios/all-real-time-delegates-listeners.mdx#L129

Did you really mean 'unbannedBy'?

Check warning on line 129 in sdk/ios/all-real-time-delegates-listeners.mdx

View check run for this annotation

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

sdk/ios/all-real-time-delegates-listeners.mdx#L129

Did you really mean 'unbannedFrom'?
print("\\(unbannedUser.name) unbanned from the group \\(unbannedFrom.name) by \\(unbannedBy.name).")
}

func onGroupMemberScopeChanged(action: ActionMessage, scopeChangeduser: User, scopeChangedBy: User, scopeChangedTo: String, scopeChangedFrom: String, group: Group) {

Check warning on line 133 in sdk/ios/all-real-time-delegates-listeners.mdx

View check run for this annotation

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

sdk/ios/all-real-time-delegates-listeners.mdx#L133

Did you really mean 'scopeChangeduser'?
print("\\(scopeChangedUser.name) scope changed from \\(scopeChangedFrom) to \\(scopeChangedTo) by \\(scopeChangedBy.name) in the group \\(group.name).")
}
}
Expand Down Expand Up @@ -199,8 +199,8 @@
| **onTextMessageReceived(textMessage:** [`TextMessage`](/sdk/reference/messages#textmessage)**)** | This event is triggered when a Text Message is received. |
| **onMediaMessageReceived(mediaMessage:** [`MediaMessage`](/sdk/reference/messages#mediamessage)**)** | This event is triggered when a Media Message is received. |
| **onCustomMessageReceived(customMessage:** [`CustomMessage`](/sdk/reference/messages#custommessage)**)** | This event is triggered when a Custom Message is received. |
| **onTypingStarted(_ typingDetails:** [`TypingIndicator`](/sdk/reference/auxiliary#typingindicator)**)** | This event is triggered when a user starts typing in a user/group conversation. |

Check warning on line 202 in sdk/ios/all-real-time-delegates-listeners.mdx

View check run for this annotation

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

sdk/ios/all-real-time-delegates-listeners.mdx#L202

Did you really mean 'typingDetails'?
| **onTypingEnded(_ typingDetails:** [`TypingIndicator`](/sdk/reference/auxiliary#typingindicator)**)** | This event is triggered when a user stops typing in a user/group conversation. |

Check warning on line 203 in sdk/ios/all-real-time-delegates-listeners.mdx

View check run for this annotation

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

sdk/ios/all-real-time-delegates-listeners.mdx#L203

Did you really mean 'typingDetails'?
| **onTransisentMessageReceived(_ message:** [`TransientMessage`](/sdk/reference/auxiliary#transientmessage)**)** | This event is triggered when a transient message is received. |
| **onMessagesDelivered(receipt:** [`MessageReceipt`](/sdk/reference/auxiliary#messagereceipt)**)** | This event is triggered when a set of messages are marked as delivered for any particular conversation. |
| **onMessagesRead(receipt:** [`MessageReceipt`](/sdk/reference/auxiliary#messagereceipt)**)** | This event is triggered when a set of messages are marked as read for any particular conversation. |
Expand Down Expand Up @@ -244,11 +244,11 @@
print("Message deleted successfully.")
}

func onTypingStarted(_ typingDetails: TypingIndicator) {

Check warning on line 247 in sdk/ios/all-real-time-delegates-listeners.mdx

View check run for this annotation

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

sdk/ios/all-real-time-delegates-listeners.mdx#L247

Did you really mean 'typingDetails'?
print("Typing started received successfully")
}

func onTypingEnded(_ typingDetails: TypingIndicator) {

Check warning on line 251 in sdk/ios/all-real-time-delegates-listeners.mdx

View check run for this annotation

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

sdk/ios/all-real-time-delegates-listeners.mdx#L251

Did you really mean 'typingDetails'?
print("Typing ended received successfully")
}

Expand Down
4 changes: 2 additions & 2 deletions sdk/ios/authentication-overview.mdx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: "Authentication"
title: "Authentication in the CometChat iOS SDK"
sidebarTitle: "Authentication"
description: "Create users, log in with Auth Key or Auth Token, check login status, and log out using the CometChat iOS SDK."
description: "Create users, log in with an Auth Key or Auth Token, check login status, and log out using the CometChat iOS SDK for secure chat session management."
---

{/* TL;DR for Agents and Quick Reference */}
Expand Down Expand Up @@ -34,7 +34,7 @@
```

**Create users via:** [Dashboard](https://app.cometchat.com) (testing) | [REST API](https://api-explorer.cometchat.com/reference/creates-user) (production)
**Test UIDs:** `cometchat-uid-1` through `cometchat-uid-5`

Check warning on line 37 in sdk/ios/authentication-overview.mdx

View check run for this annotation

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

sdk/ios/authentication-overview.mdx#L37

Did you really mean 'UIDs'?
</Accordion>

After [initializing](/sdk/ios/setup) the SDK, the next step is to authenticate your user. CometChat provides two login methods — Auth Key for quick development, and Auth Token for production — both accessed through the `login()` method.
Expand Down Expand Up @@ -65,7 +65,7 @@

A user must exist in CometChat before they can log in.

- **During development:** Create users from the [CometChat Dashboard](https://app.cometchat.com). Five test users are already available with UIDs `cometchat-uid-1` through `cometchat-uid-5`.

Check warning on line 68 in sdk/ios/authentication-overview.mdx

View check run for this annotation

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

sdk/ios/authentication-overview.mdx#L68

Did you really mean 'UIDs'?
- **In production:** Call the [Create User REST API](https://api-explorer.cometchat.com/reference/creates-user) when a user signs up in your app.

You can also create users from the client side using `createUser()` (development only):
Expand All @@ -73,13 +73,13 @@
<Tabs>
<Tab title="Swift">
```swift
let authKey = "AUTH_KEY"

Check warning on line 76 in sdk/ios/authentication-overview.mdx

View check run for this annotation

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

sdk/ios/authentication-overview.mdx#L76

Did you really mean 'authKey'?
let uid = "user1"

Check warning on line 77 in sdk/ios/authentication-overview.mdx

View check run for this annotation

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

sdk/ios/authentication-overview.mdx#L77

Did you really mean 'uid'?
let name = "Kevin"

let newUser = User(uid: uid, name: name)

Check warning on line 80 in sdk/ios/authentication-overview.mdx

View check run for this annotation

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

sdk/ios/authentication-overview.mdx#L80

Did you really mean 'newUser'?

Check warning on line 80 in sdk/ios/authentication-overview.mdx

View check run for this annotation

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

sdk/ios/authentication-overview.mdx#L80

Did you really mean 'uid'?

CometChat.createUser(user: newUser, apiKey: authKey, onSuccess: { (user) in

Check warning on line 82 in sdk/ios/authentication-overview.mdx

View check run for this annotation

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

sdk/ios/authentication-overview.mdx#L82

Did you really mean 'newUser'?

Check warning on line 82 in sdk/ios/authentication-overview.mdx

View check run for this annotation

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

sdk/ios/authentication-overview.mdx#L82

Did you really mean 'apiKey'?

Check warning on line 82 in sdk/ios/authentication-overview.mdx

View check run for this annotation

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

sdk/ios/authentication-overview.mdx#L82

Did you really mean 'authKey'?

Check warning on line 82 in sdk/ios/authentication-overview.mdx

View check run for this annotation

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

sdk/ios/authentication-overview.mdx#L82

Did you really mean 'onSuccess'?
print("User created: \(user.stringValue())")
}) { (error) in
print("Error: \(String(describing: error?.description))")
Expand Down Expand Up @@ -127,11 +127,11 @@
<Tabs>
<Tab title="Swift">
```swift
let uid = "cometchat-uid-1"

Check warning on line 130 in sdk/ios/authentication-overview.mdx

View check run for this annotation

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

sdk/ios/authentication-overview.mdx#L130

Did you really mean 'uid'?
let authKey = "AUTH_KEY"

Check warning on line 131 in sdk/ios/authentication-overview.mdx

View check run for this annotation

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

sdk/ios/authentication-overview.mdx#L131

Did you really mean 'authKey'?

if CometChat.getLoggedInUser() == nil {
CometChat.login(UID: uid, authKey: authKey, onSuccess: { (user) in

Check warning on line 134 in sdk/ios/authentication-overview.mdx

View check run for this annotation

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

sdk/ios/authentication-overview.mdx#L134

Did you really mean 'authKey'?
print("Login successful: " + user.stringValue())
}) { (error) in
print("Login failed with error: " + error.errorDescription)
Expand Down Expand Up @@ -172,10 +172,10 @@
<Tabs>
<Tab title="Swift">
```swift
let authToken = "AUTH_TOKEN"

Check warning on line 175 in sdk/ios/authentication-overview.mdx

View check run for this annotation

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

sdk/ios/authentication-overview.mdx#L175

Did you really mean 'authToken'?

if CometChat.getLoggedInUser() == nil {
CometChat.login(authToken: authToken, onSuccess: { (user) in

Check warning on line 178 in sdk/ios/authentication-overview.mdx

View check run for this annotation

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

sdk/ios/authentication-overview.mdx#L178

Did you really mean 'authToken'?
print("Login successful: " + user.stringValue())
}) { (error) in
print("Login failed with error: " + error.errorDescription)
Expand Down
4 changes: 2 additions & 2 deletions sdk/ios/campaigns.mdx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: "Campaigns"
description: "CometChat Campaigns SDK APIs — fetching feed items, managing engagement state, reporting interactions, and receiving real-time notifications."
title: "Campaigns in the CometChat iOS SDK"
description: "Deliver targeted in-app notifications on iOS with CometChat Campaigns using Card Schema JSON, real-time delivery delegates, engagement state, and unread counts."
---

CometChat Campaigns lets you deliver targeted, rich notifications to users via an in-app notification feed. Each notification is a Card Schema JSON — a structured layout rendered natively by the CometChat Cards library. The SDK provides APIs to fetch feed items, listen for real-time delivery, mark items as read/delivered, report engagement, and retrieve unread counts.
Expand Down Expand Up @@ -183,7 +183,7 @@
| NotificationFeedItem | A single notification in the feed. Contains Card Schema JSON in its `content` field, a category for filtering, timestamps, and metadata. |
| NotificationCategory | A category label used for filter chips (e.g., "Promotions", "Updates"). |
| Card Schema JSON | The fully rendered card layout (images, text, buttons) inside `NotificationFeedItem.content`. Passed directly to the CometChat Cards renderer. |
| PushNotification | Represents a campaign push notification payload received via APNs. |

Check warning on line 186 in sdk/ios/campaigns.mdx

View check run for this annotation

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

sdk/ios/campaigns.mdx#L186

Did you really mean 'APNs'?

---

Expand All @@ -196,7 +196,7 @@
1. Fetch feed items via `NotificationFeedRequest`
2. For each item, extract `item.content` — this is the Card Schema JSON
3. Pass to the Cards renderer (`CometChatCardView`)
4. The renderer produces a native UIKit view from the JSON

Check warning on line 199 in sdk/ios/campaigns.mdx

View check run for this annotation

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

sdk/ios/campaigns.mdx#L199

Did you really mean 'UIKit'?

### Card Schema JSON Structure

Expand All @@ -209,7 +209,7 @@
{ "type": "button", "id": "btn_1", "label": "Shop Now", "action": { "type": "openUrl", "url": "https://..." } }
],
"style": { "background": {"light": "#FFFFFF", "dark": "#1E1E1E"}, "borderRadius": 12, "padding": 16 },
"fallbackText": "Flash Sale! Shop Now: https://..."

Check warning on line 212 in sdk/ios/campaigns.mdx

View check run for this annotation

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

sdk/ios/campaigns.mdx#L212

Did you really mean 'fallbackText'?
}
```

Expand Down Expand Up @@ -237,8 +237,8 @@
| ------ | ---- | ------- | ----------- |
| `set(limit:)` | `Int` | 20 | Items per page. |
| `set(readState:)` | `FeedReadState` | All | Filter by `.read` or `.unread`. Omit for all. |
| `set(category:)` | `String` | nil | Filter by category name. Sent as `templateCategory` query param. If `categoryId` is also set, `categoryId` takes priority. |

Check warning on line 240 in sdk/ios/campaigns.mdx

View check run for this annotation

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

sdk/ios/campaigns.mdx#L240

Did you really mean 'param'?
| `set(categoryId:)` | `String` | nil | Filter by category ID. Sent as `templateCategory` query param. Takes priority over `category` if both are set. |

Check warning on line 241 in sdk/ios/campaigns.mdx

View check run for this annotation

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

sdk/ios/campaigns.mdx#L241

Did you really mean 'param'?
| `set(channelId:)` | `String` | nil | Filter by channel. |
| `set(tags:)` | `[String]` | nil | Filter by tags (comma-joined). |
| `set(dateFrom:)` | `String` | nil | ISO 8601 date — items sent on or after. |
Expand Down Expand Up @@ -410,11 +410,11 @@

## Push Notification Tracking

When a campaign push notification arrives via APNs, use these methods to report delivery and click engagement.

Check warning on line 413 in sdk/ios/campaigns.mdx

View check run for this annotation

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

sdk/ios/campaigns.mdx#L413

Did you really mean 'APNs'?

### Setting Up Notification Service Extension

1. In Xcode: **File → New → Target** → select **Notification Service Extension**.

Check warning on line 417 in sdk/ios/campaigns.mdx

View check run for this annotation

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

sdk/ios/campaigns.mdx#L417

Did you really mean 'Xcode'?
2. Enable **App Groups** on both your main app target and the extension target with the same group ID (e.g., `group.com.yourapp.cometchat`).
3. Add `CometChatSDK` as a dependency to the extension target.

Expand Down
4 changes: 2 additions & 2 deletions sdk/ios/launch-call-screen-on-tap-of-push-notification.mdx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: "Launch Call Screen On Tap Of Push Notification"
description: "Guide to launching the incoming call screen from UI Kit when user taps a call push notification."
title: "Launch call screen from a push notification on iOS"
description: "Launch the CometChat incoming call screen from the iOS UI Kit when a user taps a VoIP push notification, including CallKit and payload handling."
---

<Accordion title="AI Integration Quick Reference">
Expand Down Expand Up @@ -35,13 +35,13 @@
<Tab title="Swift">
```swift
func userNotificationCenter(_ center: UNUserNotificationCenter,
didReceive response: UNNotificationResponse,

Check warning on line 38 in sdk/ios/launch-call-screen-on-tap-of-push-notification.mdx

View check run for this annotation

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

sdk/ios/launch-call-screen-on-tap-of-push-notification.mdx#L38

Did you really mean 'didReceive'?
withCompletionHandler completionHandler: @escaping () -> Void) {

Check warning on line 39 in sdk/ios/launch-call-screen-on-tap-of-push-notification.mdx

View check run for this annotation

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

sdk/ios/launch-call-screen-on-tap-of-push-notification.mdx#L39

Did you really mean 'completionHandler'?

if let userInfo = response.notification.request.content.userInfo as? [String : Any], let messageObject = userInfo["message"] as? [String:Any] {
print("didReceive: \(userInfo)")
if let baseMessage = CometChat.processMessage(messageObject).0 {

Check warning on line 43 in sdk/ios/launch-call-screen-on-tap-of-push-notification.mdx

View check run for this annotation

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

sdk/ios/launch-call-screen-on-tap-of-push-notification.mdx#L43

Did you really mean 'baseMessage'?
switch baseMessage.messageCategory {

Check warning on line 44 in sdk/ios/launch-call-screen-on-tap-of-push-notification.mdx

View check run for this annotation

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

sdk/ios/launch-call-screen-on-tap-of-push-notification.mdx#L44

Did you really mean 'baseMessage'?
case .message:
print("Message Object Received: \(String(describing: (baseMessage as? TextMessage)?.stringValue()))")

Expand Down Expand Up @@ -105,7 +105,7 @@
```swift
if let call = baseMessage as? Call {
DispatchQueue.main.asyncAfter(deadline: .now() + 0.5) {
NotificationCenter.default.post(name: NSNotification.Name(rawValue: "didReceivedIncomingCall"), object: nil, userInfo: ["call":call])

Check warning on line 108 in sdk/ios/launch-call-screen-on-tap-of-push-notification.mdx

View check run for this annotation

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

sdk/ios/launch-call-screen-on-tap-of-push-notification.mdx#L108

Did you really mean 'NSNotification'?
}
}
```
Expand Down
4 changes: 2 additions & 2 deletions sdk/ios/message-structure-and-hierarchy.mdx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: "Message Structure And Hierarchy"
description: "Understand CometChat iOS SDK message categories, message types, base messages, and message hierarchy for chat apps."
title: "Message structure and hierarchy in the iOS SDK"
description: "Understand CometChat iOS SDK message categories, types, base messages, and the message class hierarchy for text, media, custom, card, and call messages."
---

<Accordion title="AI Integration Quick Reference">
Expand Down Expand Up @@ -53,7 +53,7 @@

Action messages are system-generated messages. Messages belonging to the `action` category can further be classified into one of the below types:

1. groupMember - action performed on a group member.

Check warning on line 56 in sdk/ios/message-structure-and-hierarchy.mdx

View check run for this annotation

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

sdk/ios/message-structure-and-hierarchy.mdx#L56

Did you really mean 'groupMember'?
2. message - action performed on a message.

Action messages hold another property called `action` which actually determine the action that has been performed For the type `groupMember` the action can be either one of the below:
Expand All @@ -64,7 +64,7 @@
4. banned - when a group member is banned from the group
5. unbanned - when a group member is unbanned from the group
6. added - when a user is added to the group
7. scopeChanged - When the scope of a group member is changed.

Check warning on line 67 in sdk/ios/message-structure-and-hierarchy.mdx

View check run for this annotation

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

sdk/ios/message-structure-and-hierarchy.mdx#L67

Did you really mean 'scopeChanged'?

For the type `message`, the action can be either one of the below:

Expand Down
4 changes: 2 additions & 2 deletions sdk/ios/overview.mdx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: "iOS SDK"
title: "CometChat iOS SDK overview"
sidebarTitle: "Overview"
description: "Add real-time chat, voice, and video to iOS apps with the CometChat SDK, including users, groups, messages, and calls."
description: "Add real-time chat, voice, and video calling to iOS apps with the CometChat SDK, covering users, groups, messages, conversations, and AI agent integration."
---

{/* TL;DR for Agents and Quick Reference */}
Expand Down Expand Up @@ -34,7 +34,7 @@
```

**Credentials:** App ID, Region, Auth Key from [CometChat Dashboard](https://app.cometchat.com)
**Test UIDs:** `cometchat-uid-1` through `cometchat-uid-5`

Check warning on line 37 in sdk/ios/overview.mdx

View check run for this annotation

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

sdk/ios/overview.mdx#L37

Did you really mean 'UIDs'?
</Accordion>

The CometChat iOS SDK lets you add real-time messaging, voice, and video calling to any iOS application — Swift or Objective-C.
Expand All @@ -43,7 +43,7 @@

| Requirement | Minimum Version |
|-------------|-----------------|
| Xcode | 12 |

Check warning on line 46 in sdk/ios/overview.mdx

View check run for this annotation

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

sdk/ios/overview.mdx#L46

Did you really mean 'Xcode'?
| iOS | 11 |

## Getting Started
Expand Down
4 changes: 2 additions & 2 deletions sdk/ios/receive-message.mdx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: "Receive Messages"
title: "Receive messages with the CometChat iOS SDK"
sidebarTitle: "Receive Messages"
description: "Receive real-time messages, fetch unread messages, and retrieve message history using the CometChat iOS SDK."
description: "Receive real-time messages, fetch unread messages, retrieve conversation history, and handle card messages from AI agents with the CometChat iOS SDK."
---

<Accordion title="AI Integration Quick Reference">
Expand Down
4 changes: 2 additions & 2 deletions sdk/ios/send-message.mdx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: "Send Messages"
title: "Send messages with the CometChat iOS SDK"
sidebarTitle: "Send Messages"
description: "Send CometChat text, media, and custom messages to users and groups with the iOS SDK using success and error callbacks."
description: "Send CometChat text, media, custom, and interactive messages to users and groups from your iOS app, using success and error callbacks in Swift and Objective-C."
---

<Accordion title="AI Integration Quick Reference">
Expand Down Expand Up @@ -37,9 +37,9 @@
let receiverID = "cometchat-uid-2"
let text = "Hello"

let textMessage = TextMessage(receiverUid: receiverID, text: text, receiverType: .user)

Check warning on line 40 in sdk/ios/send-message.mdx

View check run for this annotation

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

sdk/ios/send-message.mdx#L40

Did you really mean 'textMessage'?

Check warning on line 40 in sdk/ios/send-message.mdx

View check run for this annotation

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

sdk/ios/send-message.mdx#L40

Did you really mean 'receiverType'?

CometChat.sendTextMessage(message: textMessage, onSuccess: { (message) in

Check warning on line 42 in sdk/ios/send-message.mdx

View check run for this annotation

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

sdk/ios/send-message.mdx#L42

Did you really mean 'textMessage'?

Check warning on line 42 in sdk/ios/send-message.mdx

View check run for this annotation

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

sdk/ios/send-message.mdx#L42

Did you really mean 'onSuccess'?
print("TextMessage sent successfully. " + message.stringValue())
}) { (error) in
print("TextMessage sending failed with error: " + error!.errorDescription);
Expand All @@ -65,9 +65,9 @@
let receiverID = "cometchat-guid-102"
let text = "Hello"

let textMessage = TextMessage(receiverUid: receiverID, text: text, receiverType: .group)

Check warning on line 68 in sdk/ios/send-message.mdx

View check run for this annotation

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

sdk/ios/send-message.mdx#L68

Did you really mean 'textMessage'?

Check warning on line 68 in sdk/ios/send-message.mdx

View check run for this annotation

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

sdk/ios/send-message.mdx#L68

Did you really mean 'receiverType'?

CometChat.sendTextMessage(message: textMessage, onSuccess: { (message) in

Check warning on line 70 in sdk/ios/send-message.mdx

View check run for this annotation

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

sdk/ios/send-message.mdx#L70

Did you really mean 'textMessage'?

Check warning on line 70 in sdk/ios/send-message.mdx

View check run for this annotation

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

sdk/ios/send-message.mdx#L70

Did you really mean 'onSuccess'?
print("TextMessage sent successfully. " + message.stringValue())
}) { (error) in
print("TextMessage sending failed with error: " + error!.errorDescription);
Expand Down Expand Up @@ -113,8 +113,8 @@
</Tab>
<Tab title="Objective-C">
```objc
NSDictionary * metadata = @{@"latitude":@"50.6192171633316",@"longitude":@"-72.68182268750002"};

Check warning on line 116 in sdk/ios/send-message.mdx

View check run for this annotation

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

sdk/ios/send-message.mdx#L116

Did you really mean 'NSDictionary'?
[textMessage setMetaData:metadata];

Check warning on line 117 in sdk/ios/send-message.mdx

View check run for this annotation

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

sdk/ios/send-message.mdx#L117

Did you really mean 'textMessage'?
```
</Tab>
</Tabs>
Expand Down Expand Up @@ -146,12 +146,12 @@
<Tabs>
<Tab title="Swift">
```swift
let receiverid = "cometchat-uid-2"

Check warning on line 149 in sdk/ios/send-message.mdx

View check run for this annotation

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

sdk/ios/send-message.mdx#L149

Did you really mean 'receiverid'?
let mediaUrl = "file:///Library/Developer/CoreSimulator/.../image.jpg"

Check warning on line 150 in sdk/ios/send-message.mdx

View check run for this annotation

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

sdk/ios/send-message.mdx#L150

Did you really mean 'mediaUrl'?

let mediaMessage = MediaMessage(receiverUid: receiverid, fileurl: mediaUrl, messageType: .image, receiverType: .user)

Check warning on line 152 in sdk/ios/send-message.mdx

View check run for this annotation

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

sdk/ios/send-message.mdx#L152

Did you really mean 'mediaMessage'?

Check warning on line 152 in sdk/ios/send-message.mdx

View check run for this annotation

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

sdk/ios/send-message.mdx#L152

Did you really mean 'receiverid'?

Check warning on line 152 in sdk/ios/send-message.mdx

View check run for this annotation

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

sdk/ios/send-message.mdx#L152

Did you really mean 'fileurl'?

Check warning on line 152 in sdk/ios/send-message.mdx

View check run for this annotation

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

sdk/ios/send-message.mdx#L152

Did you really mean 'mediaUrl'?

Check warning on line 152 in sdk/ios/send-message.mdx

View check run for this annotation

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

sdk/ios/send-message.mdx#L152

Did you really mean 'messageType'?

Check warning on line 152 in sdk/ios/send-message.mdx

View check run for this annotation

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

sdk/ios/send-message.mdx#L152

Did you really mean 'receiverType'?

CometChat.sendMediaMessage(message: mediaMessage, onSuccess: { (message) in

Check warning on line 154 in sdk/ios/send-message.mdx

View check run for this annotation

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

sdk/ios/send-message.mdx#L154

Did you really mean 'mediaMessage'?

Check warning on line 154 in sdk/ios/send-message.mdx

View check run for this annotation

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

sdk/ios/send-message.mdx#L154

Did you really mean 'onSuccess'?
print("MediaMessage sent successfully. " + message.stringValue())
}) { (error) in
print("MediaMessage sending failed with error: " + error.errorDescription);
Expand Down Expand Up @@ -248,12 +248,12 @@
<Tabs>
<Tab title="Swift (User)">
```swift
let receiverid = "cometchat-uid-2"

Check warning on line 251 in sdk/ios/send-message.mdx

View check run for this annotation

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

sdk/ios/send-message.mdx#L251

Did you really mean 'receiverid'?
let customData: [String: Any] = ["customKey": "customData"]

Check warning on line 252 in sdk/ios/send-message.mdx

View check run for this annotation

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

sdk/ios/send-message.mdx#L252

Did you really mean 'customData'?

Check warning on line 252 in sdk/ios/send-message.mdx

View check run for this annotation

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

sdk/ios/send-message.mdx#L252

Did you really mean 'customKey'?

Check warning on line 252 in sdk/ios/send-message.mdx

View check run for this annotation

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

sdk/ios/send-message.mdx#L252

Did you really mean 'customData'?

let customMessage = CustomMessage(receiverUid: receiverid, receiverType: .user, customData: customData, type: "Custom Type")

Check warning on line 254 in sdk/ios/send-message.mdx

View check run for this annotation

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

sdk/ios/send-message.mdx#L254

Did you really mean 'customMessage'?

Check warning on line 254 in sdk/ios/send-message.mdx

View check run for this annotation

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

sdk/ios/send-message.mdx#L254

Did you really mean 'receiverid'?

Check warning on line 254 in sdk/ios/send-message.mdx

View check run for this annotation

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

sdk/ios/send-message.mdx#L254

Did you really mean 'receiverType'?

Check warning on line 254 in sdk/ios/send-message.mdx

View check run for this annotation

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

sdk/ios/send-message.mdx#L254

Did you really mean 'customData'?

CometChat.sendCustomMessage(message: customMessage, onSuccess: { (message) in

Check warning on line 256 in sdk/ios/send-message.mdx

View check run for this annotation

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

sdk/ios/send-message.mdx#L256

Did you really mean 'customMessage'?

Check warning on line 256 in sdk/ios/send-message.mdx

View check run for this annotation

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

sdk/ios/send-message.mdx#L256

Did you really mean 'onSuccess'?
print("CustomMessage sent successfully. " + message.stringValue())
}) { (error) in
print("CustomMessage sending failed with error: " + error!.errorDescription);
Expand Down Expand Up @@ -330,7 +330,7 @@
```swift
let card = cardMessage.getCard() // raw card schema/payload
let text = cardMessage.getText() // optional text shown alongside the card
let fallbackText = cardMessage.getFallbackText() // shown when the card cannot be rendered

Check warning on line 333 in sdk/ios/send-message.mdx

View check run for this annotation

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

sdk/ios/send-message.mdx#L333

Did you really mean 'fallbackText'?
let tags = cardMessage.getTags() // tags associated with the message
```
</Tab>
Expand Down
4 changes: 2 additions & 2 deletions sdk/javascript/ai-agents.mdx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: "AI Agents"
description: "Handle CometChat AI Agent events, tool calls, and agent messages in JavaScript apps."
title: "AI Agents in the CometChat JavaScript SDK"
description: "Handle CometChat AI Agent events, tool calls, streaming responses, card messages, and agent-generated messages in your JavaScript and TypeScript apps."
---

## AI Agents Overview
Expand All @@ -14,7 +14,7 @@
When a user sends a text message to an Agent:

1. The platform starts a run and streams real-time events via `AIAssistantListener`
2. After the run completes, persisted Agentic Messages arrive via `MessageListener`

Check warning on line 17 in sdk/javascript/ai-agents.mdx

View check run for this annotation

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

sdk/javascript/ai-agents.mdx#L17

Did you really mean 'Agentic'?

### Real-time Events

Expand Down Expand Up @@ -67,7 +67,7 @@
<Tabs>
<Tab title="TypeScript">
```ts
const listnerId: string = "unique_listener_id";

Check warning on line 70 in sdk/javascript/ai-agents.mdx

View check run for this annotation

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

sdk/javascript/ai-agents.mdx#L70

Did you really mean 'listnerId'?

Check warning on line 70 in sdk/javascript/ai-agents.mdx

View check run for this annotation

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

sdk/javascript/ai-agents.mdx#L70

Did you really mean 'unique_listener_id'?

// Adding the AIAssistantListener
CometChat.addAIAssistantListener(listnerId, {
Expand All @@ -84,7 +84,7 @@

<Tab title="JavaScript">
```ts
const listnerId: string = "unique_listener_id";

Check warning on line 87 in sdk/javascript/ai-agents.mdx

View check run for this annotation

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

sdk/javascript/ai-agents.mdx#L87

Did you really mean 'listnerId'?

Check warning on line 87 in sdk/javascript/ai-agents.mdx

View check run for this annotation

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

sdk/javascript/ai-agents.mdx#L87

Did you really mean 'unique_listener_id'?

// Adding the AIAssistantListener
CometChat.addAIAssistantListener(listnerId, {
Expand Down Expand Up @@ -113,7 +113,7 @@
- Text Message End: The agent reply is complete.
- Run Finished: The run is finalized; persisted messages will follow.

### Agentic Messages

Check warning on line 116 in sdk/javascript/ai-agents.mdx

View check run for this annotation

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

sdk/javascript/ai-agents.mdx#L116

Did you really mean 'Agentic'?

After the run completes, these messages arrive via `MessageListener`:

Expand All @@ -123,7 +123,7 @@
| `AIToolResultMessage` | The final output of a tool call |
| `AIToolArgumentMessage` | The arguments passed to a tool |

Each message type extends [`BaseMessage`](/sdk/reference/messages#basemessage) and has a typed data accessor:

Check warning on line 126 in sdk/javascript/ai-agents.mdx

View check run for this annotation

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

sdk/javascript/ai-agents.mdx#L126

Did you really mean 'accessor'?

| Message Type | Data Getter | Data Properties |
| ----------------------- | ------------------------------ | ------------------------------------------------------------- |
Expand Down Expand Up @@ -198,7 +198,7 @@

<Warning>
Always remove listeners when they're no longer needed (e.g., on component
unmount or page navigation). Failing to remove listeners can cause memory

Check warning on line 201 in sdk/javascript/ai-agents.mdx

View check run for this annotation

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

sdk/javascript/ai-agents.mdx#L201

Did you really mean 'unmount'?
leaks and duplicate event handling.
</Warning>

Expand All @@ -208,7 +208,7 @@

<CardGroup cols={2}>
<Card title="AI Chatbots" icon="robot" href="/ai-chatbots/overview">
Set up AI-powered chatbots for automated conversations

Check warning on line 211 in sdk/javascript/ai-agents.mdx

View check run for this annotation

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

sdk/javascript/ai-agents.mdx#L211

Did you really mean 'chatbots'?
</Card>
<Card
title="AI Moderation"
Expand Down
4 changes: 2 additions & 2 deletions sdk/javascript/all-real-time-listeners.mdx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: "All Real Time Listeners"
description: "Use CometChat real-time listeners for user presence, groups, messages, calls, AI assistant events, and ongoing calls."
title: "Real-time listeners in the JavaScript SDK"
description: "Use CometChat JavaScript SDK real-time listeners for user presence, groups, messages, calls, card messages, and AI assistant streaming events."
---

CometChat provides 4 listeners viz.
Expand Down Expand Up @@ -34,9 +34,9 @@
/* when someuser/friend comes online, user will be received here */
console.log("On User Online:", { onlineUser });
},
onUserOffline: (offlineUser: CometChat.User) => {

Check warning on line 37 in sdk/javascript/all-real-time-listeners.mdx

View check run for this annotation

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

sdk/javascript/all-real-time-listeners.mdx#L37

Did you really mean 'offlineUser'?
/* when someuser/friend went offline, user will be received here */
console.log("On User Offline:", { offlineUser });

Check warning on line 39 in sdk/javascript/all-real-time-listeners.mdx

View check run for this annotation

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

sdk/javascript/all-real-time-listeners.mdx#L39

Did you really mean 'offlineUser'?
},
})
);
Expand Down Expand Up @@ -91,13 +91,13 @@

| Method | Information |
| ------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------- |
| **onGroupMemberJoined(action: CometChat.Action, joinedUser: CometChat.User, joinedGroup: CometChat.Group)** | This method is triggered when a user joins any group. All the members present in the group will receive this event. |

Check warning on line 94 in sdk/javascript/all-real-time-listeners.mdx

View check run for this annotation

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

sdk/javascript/all-real-time-listeners.mdx#L94

Did you really mean 'joinedUser'?

Check warning on line 94 in sdk/javascript/all-real-time-listeners.mdx

View check run for this annotation

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

sdk/javascript/all-real-time-listeners.mdx#L94

Did you really mean 'joinedGroup'?
| **onGroupMemberLeft(action: CometChat.Action, leftUser: CometChat.User, leftGroup: CometChat.Group)** | This method is triggered when a user who was a member of any group leaves the group. All the members of the group receive this event. |

Check warning on line 95 in sdk/javascript/all-real-time-listeners.mdx

View check run for this annotation

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

sdk/javascript/all-real-time-listeners.mdx#L95

Did you really mean 'leftUser'?

Check warning on line 95 in sdk/javascript/all-real-time-listeners.mdx

View check run for this annotation

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

sdk/javascript/all-real-time-listeners.mdx#L95

Did you really mean 'leftGroup'?
| **onGroupMemberKicked(action: CometChat.Action, kickedUser: CometChat.User, kickedBy: CometChat.User, kickedFrom: CometChat.Group)** | This method is triggered when a user is kicked from a group. All the members including the user receive this event |

Check warning on line 96 in sdk/javascript/all-real-time-listeners.mdx

View check run for this annotation

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

sdk/javascript/all-real-time-listeners.mdx#L96

Did you really mean 'kickedUser'?

Check warning on line 96 in sdk/javascript/all-real-time-listeners.mdx

View check run for this annotation

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

sdk/javascript/all-real-time-listeners.mdx#L96

Did you really mean 'kickedBy'?

Check warning on line 96 in sdk/javascript/all-real-time-listeners.mdx

View check run for this annotation

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

sdk/javascript/all-real-time-listeners.mdx#L96

Did you really mean 'kickedFrom'?
| **onGroupMemberBanned(action: CometChat.Action, bannedUser: CometChat.User, bannedBy: CometChat.User, bannedFrom: CometChat.Group)** | This method is triggered when a user is banned from a group. All the members including the user receive this event |

Check warning on line 97 in sdk/javascript/all-real-time-listeners.mdx

View check run for this annotation

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

sdk/javascript/all-real-time-listeners.mdx#L97

Did you really mean 'bannedUser'?

Check warning on line 97 in sdk/javascript/all-real-time-listeners.mdx

View check run for this annotation

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

sdk/javascript/all-real-time-listeners.mdx#L97

Did you really mean 'bannedBy'?

Check warning on line 97 in sdk/javascript/all-real-time-listeners.mdx

View check run for this annotation

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

sdk/javascript/all-real-time-listeners.mdx#L97

Did you really mean 'bannedFrom'?
| **onGroupMemberUnbanned(action: CometChat.Action, unbannedUser: CometChat.User, unbannedBy: CometChat.User, unbannedFrom: CometChat.Group)** | This method is triggered when a user is banned from a group. All the members of the group receive this event. |

Check warning on line 98 in sdk/javascript/all-real-time-listeners.mdx

View check run for this annotation

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

sdk/javascript/all-real-time-listeners.mdx#L98

Did you really mean 'unbannedUser'?

Check warning on line 98 in sdk/javascript/all-real-time-listeners.mdx

View check run for this annotation

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

sdk/javascript/all-real-time-listeners.mdx#L98

Did you really mean 'unbannedBy'?

Check warning on line 98 in sdk/javascript/all-real-time-listeners.mdx

View check run for this annotation

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

sdk/javascript/all-real-time-listeners.mdx#L98

Did you really mean 'unbannedFrom'?
| **onGroupMemberScopeChanged(action: CometChat.Action, changedUser: CometChat.User, newScope: string, oldScope: string, changedGroup: CometChat.Group)** | This method is triggered when the scope of any Group Member has been changed. All the members that are a part of that group receive this event |

Check warning on line 99 in sdk/javascript/all-real-time-listeners.mdx

View check run for this annotation

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

sdk/javascript/all-real-time-listeners.mdx#L99

Did you really mean 'changedUser'?

Check warning on line 99 in sdk/javascript/all-real-time-listeners.mdx

View check run for this annotation

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

sdk/javascript/all-real-time-listeners.mdx#L99

Did you really mean 'newScope'?

Check warning on line 99 in sdk/javascript/all-real-time-listeners.mdx

View check run for this annotation

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

sdk/javascript/all-real-time-listeners.mdx#L99

Did you really mean 'oldScope'?

Check warning on line 99 in sdk/javascript/all-real-time-listeners.mdx

View check run for this annotation

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

sdk/javascript/all-real-time-listeners.mdx#L99

Did you really mean 'changedGroup'?
| **onMemberAddedToGroup(action: CometChat.Action, userAdded: CometChat.User, addedBy: CometChat.User, addedTo: CometChat.Group)** | This method is triggered when a user is added to any group. All the members including the user himself receive this event. |

Check warning on line 100 in sdk/javascript/all-real-time-listeners.mdx

View check run for this annotation

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

sdk/javascript/all-real-time-listeners.mdx#L100

Did you really mean 'userAdded'?

Check warning on line 100 in sdk/javascript/all-real-time-listeners.mdx

View check run for this annotation

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

sdk/javascript/all-real-time-listeners.mdx#L100

Did you really mean 'addedBy'?

Check warning on line 100 in sdk/javascript/all-real-time-listeners.mdx

View check run for this annotation

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

sdk/javascript/all-real-time-listeners.mdx#L100

Did you really mean 'addedTo'?

To add the `GroupListener`:

Expand All @@ -116,76 +116,76 @@
},
onGroupMemberLeft: (
message: CometChat.Action,
leftUser: CometChat.User,

Check warning on line 119 in sdk/javascript/all-real-time-listeners.mdx

View check run for this annotation

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

sdk/javascript/all-real-time-listeners.mdx#L119

Did you really mean 'leftUser'?
leftGroup: CometChat.Group

Check warning on line 120 in sdk/javascript/all-real-time-listeners.mdx

View check run for this annotation

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

sdk/javascript/all-real-time-listeners.mdx#L120

Did you really mean 'leftGroup'?
) => {
console.log("onGroupMemberLeft", { message, leftUser, leftGroup });

Check warning on line 122 in sdk/javascript/all-real-time-listeners.mdx

View check run for this annotation

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

sdk/javascript/all-real-time-listeners.mdx#L122

Did you really mean 'leftUser'?

Check warning on line 122 in sdk/javascript/all-real-time-listeners.mdx

View check run for this annotation

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

sdk/javascript/all-real-time-listeners.mdx#L122

Did you really mean 'leftGroup'?
},
onGroupMemberKicked: (
message: CometChat.Action,
kickedUser: CometChat.User,

Check warning on line 126 in sdk/javascript/all-real-time-listeners.mdx

View check run for this annotation

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

sdk/javascript/all-real-time-listeners.mdx#L126

Did you really mean 'kickedUser'?
kickedBy: CometChat.User,

Check warning on line 127 in sdk/javascript/all-real-time-listeners.mdx

View check run for this annotation

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

sdk/javascript/all-real-time-listeners.mdx#L127

Did you really mean 'kickedBy'?
kickedFrom: CometChat.Group

Check warning on line 128 in sdk/javascript/all-real-time-listeners.mdx

View check run for this annotation

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

sdk/javascript/all-real-time-listeners.mdx#L128

Did you really mean 'kickedFrom'?
) => {
console.log("onGroupMemberKicked", {
message,
kickedUser,

Check warning on line 132 in sdk/javascript/all-real-time-listeners.mdx

View check run for this annotation

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

sdk/javascript/all-real-time-listeners.mdx#L132

Did you really mean 'kickedUser'?
kickedBy,

Check warning on line 133 in sdk/javascript/all-real-time-listeners.mdx

View check run for this annotation

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

sdk/javascript/all-real-time-listeners.mdx#L133

Did you really mean 'kickedBy'?
kickedFrom,

Check warning on line 134 in sdk/javascript/all-real-time-listeners.mdx

View check run for this annotation

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

sdk/javascript/all-real-time-listeners.mdx#L134

Did you really mean 'kickedFrom'?
});
},
onGroupMemberBanned: (
message: CometChat.Action,
bannedUser: CometChat.User,

Check warning on line 139 in sdk/javascript/all-real-time-listeners.mdx

View check run for this annotation

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

sdk/javascript/all-real-time-listeners.mdx#L139

Did you really mean 'bannedUser'?
bannedBy: CometChat.User,

Check warning on line 140 in sdk/javascript/all-real-time-listeners.mdx

View check run for this annotation

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

sdk/javascript/all-real-time-listeners.mdx#L140

Did you really mean 'bannedBy'?
bannedFrom: CometChat.Group

Check warning on line 141 in sdk/javascript/all-real-time-listeners.mdx

View check run for this annotation

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

sdk/javascript/all-real-time-listeners.mdx#L141

Did you really mean 'bannedFrom'?
) => {
console.log("onGroupMemberBanned", {
message,
bannedUser,

Check warning on line 145 in sdk/javascript/all-real-time-listeners.mdx

View check run for this annotation

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

sdk/javascript/all-real-time-listeners.mdx#L145

Did you really mean 'bannedUser'?
bannedBy,

Check warning on line 146 in sdk/javascript/all-real-time-listeners.mdx

View check run for this annotation

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

sdk/javascript/all-real-time-listeners.mdx#L146

Did you really mean 'bannedBy'?
bannedFrom,

Check warning on line 147 in sdk/javascript/all-real-time-listeners.mdx

View check run for this annotation

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

sdk/javascript/all-real-time-listeners.mdx#L147

Did you really mean 'bannedFrom'?
});
},
onGroupMemberUnbanned: (
message: CometChat.Action,
unbannedUser: CometChat.User,

Check warning on line 152 in sdk/javascript/all-real-time-listeners.mdx

View check run for this annotation

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

sdk/javascript/all-real-time-listeners.mdx#L152

Did you really mean 'unbannedUser'?
unbannedBy: CometChat.User,

Check warning on line 153 in sdk/javascript/all-real-time-listeners.mdx

View check run for this annotation

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

sdk/javascript/all-real-time-listeners.mdx#L153

Did you really mean 'unbannedBy'?
unbannedFrom: CometChat.Group

Check warning on line 154 in sdk/javascript/all-real-time-listeners.mdx

View check run for this annotation

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

sdk/javascript/all-real-time-listeners.mdx#L154

Did you really mean 'unbannedFrom'?
) => {
console.log("onGroupMemberUnbanned", {
message,
unbannedUser,

Check warning on line 158 in sdk/javascript/all-real-time-listeners.mdx

View check run for this annotation

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

sdk/javascript/all-real-time-listeners.mdx#L158

Did you really mean 'unbannedUser'?
unbannedBy,

Check warning on line 159 in sdk/javascript/all-real-time-listeners.mdx

View check run for this annotation

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

sdk/javascript/all-real-time-listeners.mdx#L159

Did you really mean 'unbannedBy'?
unbannedFrom,

Check warning on line 160 in sdk/javascript/all-real-time-listeners.mdx

View check run for this annotation

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

sdk/javascript/all-real-time-listeners.mdx#L160

Did you really mean 'unbannedFrom'?
});
},
onGroupMemberScopeChanged: (
message: CometChat.Action,
changedUser: CometChat.User,

Check warning on line 165 in sdk/javascript/all-real-time-listeners.mdx

View check run for this annotation

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

sdk/javascript/all-real-time-listeners.mdx#L165

Did you really mean 'changedUser'?
newScope: string,

Check warning on line 166 in sdk/javascript/all-real-time-listeners.mdx

View check run for this annotation

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

sdk/javascript/all-real-time-listeners.mdx#L166

Did you really mean 'newScope'?
oldScope: string,

Check warning on line 167 in sdk/javascript/all-real-time-listeners.mdx

View check run for this annotation

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

sdk/javascript/all-real-time-listeners.mdx#L167

Did you really mean 'oldScope'?
changedGroup: CometChat.Group

Check warning on line 168 in sdk/javascript/all-real-time-listeners.mdx

View check run for this annotation

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

sdk/javascript/all-real-time-listeners.mdx#L168

Did you really mean 'changedGroup'?
) => {
console.log("onGroupMemberScopeChanged", {
message,
changedUser,

Check warning on line 172 in sdk/javascript/all-real-time-listeners.mdx

View check run for this annotation

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

sdk/javascript/all-real-time-listeners.mdx#L172

Did you really mean 'changedUser'?
newScope,

Check warning on line 173 in sdk/javascript/all-real-time-listeners.mdx

View check run for this annotation

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

sdk/javascript/all-real-time-listeners.mdx#L173

Did you really mean 'newScope'?
oldScope,

Check warning on line 174 in sdk/javascript/all-real-time-listeners.mdx

View check run for this annotation

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

sdk/javascript/all-real-time-listeners.mdx#L174

Did you really mean 'oldScope'?
changedGroup,

Check warning on line 175 in sdk/javascript/all-real-time-listeners.mdx

View check run for this annotation

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

sdk/javascript/all-real-time-listeners.mdx#L175

Did you really mean 'changedGroup'?
});
},
onMemberAddedToGroup: (
message: CometChat.Action,
userAdded: CometChat.User,

Check warning on line 180 in sdk/javascript/all-real-time-listeners.mdx

View check run for this annotation

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

sdk/javascript/all-real-time-listeners.mdx#L180

Did you really mean 'userAdded'?
addedby: CometChat.User,

Check warning on line 181 in sdk/javascript/all-real-time-listeners.mdx

View check run for this annotation

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

sdk/javascript/all-real-time-listeners.mdx#L181

Did you really mean 'addedby'?
addedTo: CometChat.Group

Check warning on line 182 in sdk/javascript/all-real-time-listeners.mdx

View check run for this annotation

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

sdk/javascript/all-real-time-listeners.mdx#L182

Did you really mean 'addedTo'?
) => {
console.log("onMemberAddedToGroup", {
message,
userAdded,

Check warning on line 186 in sdk/javascript/all-real-time-listeners.mdx

View check run for this annotation

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

sdk/javascript/all-real-time-listeners.mdx#L186

Did you really mean 'userAdded'?
addedby,

Check warning on line 187 in sdk/javascript/all-real-time-listeners.mdx

View check run for this annotation

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

sdk/javascript/all-real-time-listeners.mdx#L187

Did you really mean 'addedby'?
addedTo,

Check warning on line 188 in sdk/javascript/all-real-time-listeners.mdx

View check run for this annotation

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

sdk/javascript/all-real-time-listeners.mdx#L188

Did you really mean 'addedTo'?
});
},
})
Expand Down Expand Up @@ -323,23 +323,23 @@
onTextMessageReceived: (textMessage: CometChat.TextMessage) => {
console.log("Text message received successfully", textMessage);
},
onMediaMessageReceived: (mediaMessage: CometChat.MediaMessage) => {

Check warning on line 326 in sdk/javascript/all-real-time-listeners.mdx

View check run for this annotation

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

sdk/javascript/all-real-time-listeners.mdx#L326

Did you really mean 'mediaMessage'?
console.log("Media message received successfully", mediaMessage);

Check warning on line 327 in sdk/javascript/all-real-time-listeners.mdx

View check run for this annotation

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

sdk/javascript/all-real-time-listeners.mdx#L327

Did you really mean 'mediaMessage'?
},
onCustomMessageReceived: (customMessage: CometChat.CustomMessage) => {

Check warning on line 329 in sdk/javascript/all-real-time-listeners.mdx

View check run for this annotation

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

sdk/javascript/all-real-time-listeners.mdx#L329

Did you really mean 'customMessage'?
console.log("Custom message received successfully", customMessage);

Check warning on line 330 in sdk/javascript/all-real-time-listeners.mdx

View check run for this annotation

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

sdk/javascript/all-real-time-listeners.mdx#L330

Did you really mean 'customMessage'?
},
onMessagesDelivered: (messageReceipt: CometChat.MessageReceipt) => {

Check warning on line 332 in sdk/javascript/all-real-time-listeners.mdx

View check run for this annotation

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

sdk/javascript/all-real-time-listeners.mdx#L332

Did you really mean 'messageReceipt'?
console.log("Message Delivered", messageReceipt);

Check warning on line 333 in sdk/javascript/all-real-time-listeners.mdx

View check run for this annotation

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

sdk/javascript/all-real-time-listeners.mdx#L333

Did you really mean 'messageReceipt'?
},
onMessagesRead: (messageReceipt: CometChat.MessageReceipt) => {

Check warning on line 335 in sdk/javascript/all-real-time-listeners.mdx

View check run for this annotation

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

sdk/javascript/all-real-time-listeners.mdx#L335

Did you really mean 'messageReceipt'?
console.log("Message Read", messageReceipt);

Check warning on line 336 in sdk/javascript/all-real-time-listeners.mdx

View check run for this annotation

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

sdk/javascript/all-real-time-listeners.mdx#L336

Did you really mean 'messageReceipt'?
},
onTypingStarted: (typingIndicator: CometChat.TypingIndicator) => {

Check warning on line 338 in sdk/javascript/all-real-time-listeners.mdx

View check run for this annotation

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

sdk/javascript/all-real-time-listeners.mdx#L338

Did you really mean 'typingIndicator'?
console.log("Typing Started", typingIndicator);

Check warning on line 339 in sdk/javascript/all-real-time-listeners.mdx

View check run for this annotation

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

sdk/javascript/all-real-time-listeners.mdx#L339

Did you really mean 'typingIndicator'?
},
onTypingEnded: (typingIndicator: CometChat.TypingIndicator) => {
console.log("Typing Ended", typingIndicator);

Check warning on line 342 in sdk/javascript/all-real-time-listeners.mdx

View check run for this annotation

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

sdk/javascript/all-real-time-listeners.mdx#L342

Did you really mean 'typingIndicator'?
},
onMessageDeleted: (message: CometChat.BaseMessage) => {
console.log("Message Delted", message);
Expand All @@ -360,10 +360,10 @@
console.log("Message Moderated", message);
},
onMessagesDeliveredToAll: (messageReceipt: CometChat.MessageReceipt) => {
console.log("Message Delivered to All", messageReceipt);

Check warning on line 363 in sdk/javascript/all-real-time-listeners.mdx

View check run for this annotation

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

sdk/javascript/all-real-time-listeners.mdx#L363

Did you really mean 'messageReceipt'?
},
onMessagesReadByAll: (messageReceipt: CometChat.MessageReceipt) => {
console.log("Message Read by All", messageReceipt);

Check warning on line 366 in sdk/javascript/all-real-time-listeners.mdx

View check run for this annotation

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

sdk/javascript/all-real-time-listeners.mdx#L366

Did you really mean 'messageReceipt'?
},
onAIAssistantMessageReceived: (message: CometChat.AIAssistantMessage) => {
console.log("AI Assistant message received", message);
Expand Down Expand Up @@ -695,7 +695,7 @@
| `event.user.name` | `string` | Name of the user who started recording |
| `event.user.uid` | `string` | UID of the user who started recording |

**`onRecordingStopped()`**, **`onCallEnded()`**, **`onSessionTimeout()`**, **`onCallEndButtonPressed()`**, **`onScreenShareStarted()`**, **`onScreenShareStopped()`** — receive no arguments.

Check warning on line 698 in sdk/javascript/all-real-time-listeners.mdx

View check run for this annotation

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

sdk/javascript/all-real-time-listeners.mdx#L698

Did you really mean 'listenerId'?

<Tabs>
<Tab title="TypeScript">
Expand All @@ -707,7 +707,7 @@
console.log("User joined:", user);
},
onUserLeft: (user: any) => {
console.log("User left:", user);

Check warning on line 710 in sdk/javascript/all-real-time-listeners.mdx

View check run for this annotation

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

sdk/javascript/all-real-time-listeners.mdx#L710

Did you really mean 'onError'?
},
onCallEnded: () => {
console.log("Call ended");
Expand Down Expand Up @@ -773,15 +773,15 @@
const listenerID: string = "UNIQUE_LISTENER_ID";
CometChat.addLoginListener(
listenerID,
new CometChat.LoginListener({

Check warning on line 776 in sdk/javascript/all-real-time-listeners.mdx

View check run for this annotation

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

sdk/javascript/all-real-time-listeners.mdx#L776

Did you really mean 'loginFailure'?
loginSuccess: (user: CometChat.User) => {
console.log("LoginListener :: loginSuccess", user);

Check warning on line 778 in sdk/javascript/all-real-time-listeners.mdx

View check run for this annotation

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

sdk/javascript/all-real-time-listeners.mdx#L778

Did you really mean 'loginFailure'?

Check warning on line 778 in sdk/javascript/all-real-time-listeners.mdx

View check run for this annotation

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

sdk/javascript/all-real-time-listeners.mdx#L778

Did you really mean 'logoutSuccess'?
},
loginFailure: (error: CometChat.CometChatException) => {

Check warning on line 780 in sdk/javascript/all-real-time-listeners.mdx

View check run for this annotation

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

sdk/javascript/all-real-time-listeners.mdx#L780

Did you really mean 'logoutSuccess'?
console.log("LoginListener :: loginFailure", error);

Check warning on line 781 in sdk/javascript/all-real-time-listeners.mdx

View check run for this annotation

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

sdk/javascript/all-real-time-listeners.mdx#L781

Did you really mean 'logoutFailure'?
},
logoutSuccess: () => {
console.log("LoginListener :: logoutSuccess");

Check warning on line 784 in sdk/javascript/all-real-time-listeners.mdx

View check run for this annotation

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

sdk/javascript/all-real-time-listeners.mdx#L784

Did you really mean 'logoutFailure'?
},
logoutFailure: (error: CometChat.CometChatException) => {
console.log("LoginListener :: logoutFailure", error);
Expand Down Expand Up @@ -836,10 +836,10 @@
```typescript
const listenerID: string = "UNIQUE_LISTENER_ID";
CometChat.addConnectionListener(
listenerID,

Check warning on line 839 in sdk/javascript/all-real-time-listeners.mdx

View check run for this annotation

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

sdk/javascript/all-real-time-listeners.mdx#L839

Did you really mean 'inConnecting'?
new CometChat.ConnectionListener({
onConnected: () => {
console.log("ConnectionListener :: connected");

Check warning on line 842 in sdk/javascript/all-real-time-listeners.mdx

View check run for this annotation

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

sdk/javascript/all-real-time-listeners.mdx#L842

Did you really mean 'onDisconnected'?
},
inConnecting: () => {
console.log("ConnectionListener :: connecting");
Expand All @@ -858,10 +858,10 @@
```javascript
const listenerID = "UNIQUE_LISTENER_ID";
CometChat.addConnectionListener(
listenerID,

Check warning on line 861 in sdk/javascript/all-real-time-listeners.mdx

View check run for this annotation

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

sdk/javascript/all-real-time-listeners.mdx#L861

Did you really mean 'inConnecting'?
new CometChat.ConnectionListener({
onConnected: () => {
console.log("ConnectionListener :: connected");

Check warning on line 864 in sdk/javascript/all-real-time-listeners.mdx

View check run for this annotation

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

sdk/javascript/all-real-time-listeners.mdx#L864

Did you really mean 'onDisconnected'?
},
inConnecting: () => {
console.log("ConnectionListener :: connecting");
Expand Down
4 changes: 2 additions & 2 deletions sdk/javascript/card-messages.mdx
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
---
title: "Card Messages"
description: "Receive and render rich card messages with the CometChat JavaScript SDK."
title: "Card Messages in the CometChat JavaScript SDK"
description: "Receive and render rich, receive-only Card Messages in JavaScript with standalone cards, inline AI assistant elements, and real-time card streaming events."
---

Card messages let your app display rich, structured content — such as product cards, confirmations, or AI-generated summaries — inside a conversation. In the JavaScript SDK, card support is **receive-only**: the SDK deserializes incoming cards and hands you their raw payload through typed accessors, and your app is responsible for turning that payload into UI.

Check warning on line 6 in sdk/javascript/card-messages.mdx

View check run for this annotation

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

sdk/javascript/card-messages.mdx#L6

Did you really mean 'deserializes'?

Check warning on line 6 in sdk/javascript/card-messages.mdx

View check run for this annotation

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

sdk/javascript/card-messages.mdx#L6

Did you really mean 'accessors'?

The body of a card is **Card Schema JSON** — the same structured layout used by [Campaigns notification feeds](/sdk/javascript/campaigns). Cards are authored server-side (they cannot be composed or sent from the SDK) via the [Platform (REST) API](/rest-api/messages/send-message) or the **Dashboard Bubble Builder**, and delivered to clients like any other message.

<Note>
The SDK never interprets the body of a card — every accessor returns the raw

Check warning on line 11 in sdk/javascript/card-messages.mdx

View check run for this annotation

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

sdk/javascript/card-messages.mdx#L11

Did you really mean 'accessor'?
Card Schema JSON exactly as it was sent. Drawing it is your app's
responsibility: pass that JSON to the **CometChat Cards** renderer for your
framework.
Expand All @@ -33,14 +33,14 @@

## Standalone Card Messages

A standalone card arrives as a message whose category is `card` (its type is `text`). The SDK deserializes it into a [`CardMessage`](/sdk/reference/messages#cardmessage) and delivers it through the **`onCardMessageReceived`** callback of the [`MessageListener`](/sdk/javascript/all-real-time-listeners#message-listener).

Check warning on line 36 in sdk/javascript/card-messages.mdx

View check run for this annotation

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

sdk/javascript/card-messages.mdx#L36

Did you really mean 'deserializes'?

<Note>
Branch on `getCategory() === "card"` to identify a card message —
`getType()` returns `"text"`, the same as a plain text message.
</Note>

`CardMessage` extends [`BaseMessage`](/sdk/reference/messages#basemessage), so all the usual metadata (`getSender()`, `getReceiver()`, `getSentAt()`, `getConversationId()`, …) is available. It adds these card-specific accessors:

Check warning on line 43 in sdk/javascript/card-messages.mdx

View check run for this annotation

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

sdk/javascript/card-messages.mdx#L43

Did you really mean 'accessors'?

| Getter | Return Type | Description |
| ------------------- | -------------------- | --------------------------------------------------------------------------------- |
Expand Down Expand Up @@ -288,7 +288,7 @@
// Pass cardPayload to your card renderer.
break;
}
case "card_end":

Check warning on line 291 in sdk/javascript/card-messages.mdx

View check run for this annotation

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

sdk/javascript/card-messages.mdx#L291

Did you really mean 'card_end'?
console.log("Card generation ended:", event.getCardId());
break;
default:
Expand Down
4 changes: 2 additions & 2 deletions sdk/javascript/message-structure-and-hierarchy.mdx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: "Message"
title: "Message structure and hierarchy in JavaScript SDK"
sidebarTitle: "Message Structure And Hierarchy"
description: "Understand CometChat JavaScript SDK message categories, types, and object hierarchy."
description: "Understand CometChat JavaScript SDK message categories, types, and the object hierarchy for text, media, custom, card, action, and call messages."
---

The below diagram helps you better understand the various message categories and types that a CometChat message can belong to.
Expand Down Expand Up @@ -41,7 +41,7 @@
}
break;
case CometChat.CATEGORY_CUSTOM:
const customMsg = message as CometChat.CustomMessage;

Check warning on line 44 in sdk/javascript/message-structure-and-hierarchy.mdx

View check run for this annotation

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

sdk/javascript/message-structure-and-hierarchy.mdx#L44

Did you really mean 'customMsg'?
console.log("Custom type:", type, "data:", customMsg.getData());
break;
case CometChat.CATEGORY_ACTION:
Expand Down
4 changes: 2 additions & 2 deletions sdk/javascript/send-message.mdx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: "Send A Message"
description: "Send text, media, custom, and interactive chat messages with the CometChat JavaScript SDK."
title: "Send messages with the CometChat JavaScript SDK"
description: "Send text, media, custom, and interactive chat messages to users and groups with the CometChat JavaScript SDK, including metadata and delivery callbacks."
---

Using CometChat, you can send three types of messages:
Expand All @@ -20,12 +20,12 @@
<Tab title="TypeScript (User)">
```typescript
let receiverID: string = "UID",
messageText: string = "Hello world!",

Check warning on line 23 in sdk/javascript/send-message.mdx

View check run for this annotation

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

sdk/javascript/send-message.mdx#L23

Did you really mean 'messageText'?
receiverType: string = CometChat.RECEIVER_TYPE.USER,

Check warning on line 24 in sdk/javascript/send-message.mdx

View check run for this annotation

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

sdk/javascript/send-message.mdx#L24

Did you really mean 'receiverType'?
textMessage: CometChat.TextMessage = new CometChat.TextMessage(

Check warning on line 25 in sdk/javascript/send-message.mdx

View check run for this annotation

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

sdk/javascript/send-message.mdx#L25

Did you really mean 'textMessage'?
receiverID,
messageText,

Check warning on line 27 in sdk/javascript/send-message.mdx

View check run for this annotation

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

sdk/javascript/send-message.mdx#L27

Did you really mean 'messageText'?
receiverType

Check warning on line 28 in sdk/javascript/send-message.mdx

View check run for this annotation

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

sdk/javascript/send-message.mdx#L28

Did you really mean 'receiverType'?
);

CometChat.sendMessage(textMessage).then(
Expand Down Expand Up @@ -66,12 +66,12 @@
```javascript
try {
const receiverID = "UID";
const messageText = "Hello world!";

Check warning on line 69 in sdk/javascript/send-message.mdx

View check run for this annotation

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

sdk/javascript/send-message.mdx#L69

Did you really mean 'messageText'?
const receiverType = CometChat.RECEIVER_TYPE.USER;

Check warning on line 70 in sdk/javascript/send-message.mdx

View check run for this annotation

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

sdk/javascript/send-message.mdx#L70

Did you really mean 'receiverType'?
const textMessage = new CometChat.TextMessage(

Check warning on line 71 in sdk/javascript/send-message.mdx

View check run for this annotation

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

sdk/javascript/send-message.mdx#L71

Did you really mean 'textMessage'?
receiverID,
messageText,

Check warning on line 73 in sdk/javascript/send-message.mdx

View check run for this annotation

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

sdk/javascript/send-message.mdx#L73

Did you really mean 'messageText'?
receiverType

Check warning on line 74 in sdk/javascript/send-message.mdx

View check run for this annotation

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

sdk/javascript/send-message.mdx#L74

Did you really mean 'receiverType'?
);

const message = await CometChat.sendMessage(textMessage);
Expand Down Expand Up @@ -114,7 +114,7 @@
let textMessage = new CometChat.TextMessage(
receiverID,
messageText,
receiverType

Check warning on line 117 in sdk/javascript/send-message.mdx

View check run for this annotation

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

sdk/javascript/send-message.mdx#L117

Did you really mean 'receiverType'?
);

CometChat.sendMessage(textMessage).then(
Expand Down Expand Up @@ -162,15 +162,15 @@
<Tab title="TypeScript (User)">
```typescript
let receiverID: string = "UID",
messageType: string = CometChat.MESSAGE_TYPE.IMAGE,

Check warning on line 165 in sdk/javascript/send-message.mdx

View check run for this annotation

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

sdk/javascript/send-message.mdx#L165

Did you really mean 'messageType'?
receiverType: string = CometChat.RECEIVER_TYPE.USER,

Check warning on line 166 in sdk/javascript/send-message.mdx

View check run for this annotation

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

sdk/javascript/send-message.mdx#L166

Did you really mean 'receiverType'?
file: File = (document.getElementById("img_file") as HTMLInputElement).files![0];

let mediaMessage: CometChat.MediaMessage = new CometChat.MediaMessage(

Check warning on line 169 in sdk/javascript/send-message.mdx

View check run for this annotation

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

sdk/javascript/send-message.mdx#L169

Did you really mean 'mediaMessage'?
receiverID,
file,
messageType,

Check warning on line 172 in sdk/javascript/send-message.mdx

View check run for this annotation

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

sdk/javascript/send-message.mdx#L172

Did you really mean 'messageType'?
receiverType

Check warning on line 173 in sdk/javascript/send-message.mdx

View check run for this annotation

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

sdk/javascript/send-message.mdx#L173

Did you really mean 'receiverType'?
);

CometChat.sendMediaMessage(mediaMessage).then(
Expand Down Expand Up @@ -214,15 +214,15 @@
<Tab title="TypeScript (Group)">
```typescript
let receiverID: string = "GUID",
messageType: string = CometChat.MESSAGE_TYPE.IMAGE,

Check warning on line 217 in sdk/javascript/send-message.mdx

View check run for this annotation

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

sdk/javascript/send-message.mdx#L217

Did you really mean 'messageType'?
receiverType: string = CometChat.RECEIVER_TYPE.GROUP,
file: File = (document.getElementById("img_file") as HTMLInputElement).files![0];

let mediaMessage: CometChat.MediaMessage = new CometChat.MediaMessage(

Check warning on line 221 in sdk/javascript/send-message.mdx

View check run for this annotation

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

sdk/javascript/send-message.mdx#L221

Did you really mean 'mediaMessage'?
receiverID,
file,
messageType,

Check warning on line 224 in sdk/javascript/send-message.mdx

View check run for this annotation

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

sdk/javascript/send-message.mdx#L224

Did you really mean 'messageType'?
receiverType

Check warning on line 225 in sdk/javascript/send-message.mdx

View check run for this annotation

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

sdk/javascript/send-message.mdx#L225

Did you really mean 'receiverType'?
);

CometChat.sendMediaMessage(mediaMessage).then(
Expand Down Expand Up @@ -273,12 +273,12 @@
<Tab title="TypeScript (User)">
```typescript
let receiverID: string = "UID",
messageType: string = CometChat.MESSAGE_TYPE.IMAGE,

Check warning on line 276 in sdk/javascript/send-message.mdx

View check run for this annotation

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

sdk/javascript/send-message.mdx#L276

Did you really mean 'messageType'?
receiverType: string = CometChat.RECEIVER_TYPE.USER,
mediaMessage: CometChat.MediaMessage = new CometChat.MediaMessage(

Check warning on line 278 in sdk/javascript/send-message.mdx

View check run for this annotation

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

sdk/javascript/send-message.mdx#L278

Did you really mean 'mediaMessage'?
receiverID,
"",
messageType,

Check warning on line 281 in sdk/javascript/send-message.mdx

View check run for this annotation

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

sdk/javascript/send-message.mdx#L281

Did you really mean 'messageType'?
receiverType
);

Expand Down Expand Up @@ -341,12 +341,12 @@
<Tab title="TypeScript (Group)">
```typescript
let receiverID: string = "GUID",
messageType: string = CometChat.MESSAGE_TYPE.IMAGE,

Check warning on line 344 in sdk/javascript/send-message.mdx

View check run for this annotation

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

sdk/javascript/send-message.mdx#L344

Did you really mean 'messageType'?
receiverType: string = CometChat.RECEIVER_TYPE.GROUP,
mediaMessage: CometChat.MediaMessage = new CometChat.MediaMessage(

Check warning on line 346 in sdk/javascript/send-message.mdx

View check run for this annotation

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

sdk/javascript/send-message.mdx#L346

Did you really mean 'mediaMessage'?
receiverID,
"",
messageType,

Check warning on line 349 in sdk/javascript/send-message.mdx

View check run for this annotation

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

sdk/javascript/send-message.mdx#L349

Did you really mean 'messageType'?
receiverType
);

Expand Down Expand Up @@ -428,7 +428,7 @@
```typescript mediaMessage.setCaption("Check out this photo!"); ```
</Tab>
<Tab title="JavaScript">
```javascript mediaMessage.setCaption("Check out this photo!"); ```

Check warning on line 431 in sdk/javascript/send-message.mdx

View check run for this annotation

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

sdk/javascript/send-message.mdx#L431

Did you really mean 'mediaMessage'?
</Tab>
</Tabs>

Expand Down Expand Up @@ -465,7 +465,7 @@
const userType = CometChat.RECEIVER_TYPE.USER;
const mediaMessage = new MediaMessage(UID, files, fileType, userType);
</script>
</body>

Check warning on line 468 in sdk/javascript/send-message.mdx

View check run for this annotation

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

sdk/javascript/send-message.mdx#L468

Did you really mean 'messageType'?
</html>
```

Expand All @@ -474,12 +474,12 @@
</Tabs>

<Tabs>
<Tab title="TypeScript (User)">

Check warning on line 477 in sdk/javascript/send-message.mdx

View check run for this annotation

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

sdk/javascript/send-message.mdx#L477

Did you really mean 'receiverType'?
```typescript
let receiverID: string = "UID",
messageType: string = CometChat.MESSAGE_TYPE.FILE,
receiverType: string = CometChat.RECEIVER_TYPE.USER,
files: FileList = (document.getElementById("img_file") as HTMLInputElement).files!;

Check warning on line 482 in sdk/javascript/send-message.mdx

View check run for this annotation

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

sdk/javascript/send-message.mdx#L482

Did you really mean 'messageType'?

Check warning on line 482 in sdk/javascript/send-message.mdx

View check run for this annotation

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

sdk/javascript/send-message.mdx#L482

Did you really mean 'receiverType'?

let mediaMessage: CometChat.MediaMessage = new CometChat.MediaMessage(
receiverID,
Expand Down Expand Up @@ -517,7 +517,7 @@
console.log("Media message sent successfully", message);
},
(error) => {
console.log("Media message sending failed with error", error);

Check warning on line 520 in sdk/javascript/send-message.mdx

View check run for this annotation

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

sdk/javascript/send-message.mdx#L520

Did you really mean 'messageType'?
}
);
````
Expand All @@ -529,7 +529,7 @@
let receiverID: string = "GUID",
messageType: string = CometChat.MESSAGE_TYPE.FILE,
receiverType: string = CometChat.RECEIVER_TYPE.GROUP,
files: FileList = (document.getElementById("img_file") as HTMLInputElement).files!;

Check warning on line 532 in sdk/javascript/send-message.mdx

View check run for this annotation

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

sdk/javascript/send-message.mdx#L532

Did you really mean 'messageType'?

Check warning on line 532 in sdk/javascript/send-message.mdx

View check run for this annotation

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

sdk/javascript/send-message.mdx#L532

Did you really mean 'receiverType'?

let mediaMessage: CometChat.MediaMessage = new CometChat.MediaMessage(
receiverID,
Expand Down Expand Up @@ -574,7 +574,7 @@
);
````

</Tab>

Check warning on line 577 in sdk/javascript/send-message.mdx

View check run for this annotation

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

sdk/javascript/send-message.mdx#L577

Did you really mean 'messageType'?

</Tabs>

Expand All @@ -585,7 +585,7 @@
```typescript
let receiverID: string = "UID",
messageType: string = CometChat.MESSAGE_TYPE.IMAGE,
receiverType: string = CometChat.RECEIVER_TYPE.USER,

Check warning on line 588 in sdk/javascript/send-message.mdx

View check run for this annotation

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

sdk/javascript/send-message.mdx#L588

Did you really mean 'messageType'?
mediaMessage: CometChat.MediaMessage = new CometChat.MediaMessage(
receiverID,
"",
Expand Down Expand Up @@ -662,7 +662,7 @@
console.log("Media message sent successfully", message);
},
(error) => {
console.log("Media message sending failed with error", error);

Check warning on line 665 in sdk/javascript/send-message.mdx

View check run for this annotation

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

sdk/javascript/send-message.mdx#L665

Did you really mean 'messageType'?
}
);
````
Expand All @@ -673,7 +673,7 @@
```typescript
let receiverID: string = "GUID",
messageType: string = CometChat.MESSAGE_TYPE.IMAGE,
receiverType: string = CometChat.RECEIVER_TYPE.GROUP,

Check warning on line 676 in sdk/javascript/send-message.mdx

View check run for this annotation

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

sdk/javascript/send-message.mdx#L676

Did you really mean 'messageType'?
mediaMessage: CometChat.MediaMessage = new CometChat.MediaMessage(
receiverID,
"",
Expand Down Expand Up @@ -761,19 +761,19 @@

## Custom Message

Send structured data that doesn't fit text or media categories — like location coordinates, polls, or game moves.

Check warning on line 764 in sdk/javascript/send-message.mdx

View check run for this annotation

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

sdk/javascript/send-message.mdx#L764

Did you really mean 'customData'?

<Tabs>
<Tab title="TypeScript (User)">
```typescript
let receiverID: string = "UID",

Check warning on line 769 in sdk/javascript/send-message.mdx

View check run for this annotation

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

sdk/javascript/send-message.mdx#L769

Did you really mean 'customType'?
customData: Object = {
latitude: "50.6192171633316",
longitude: "-72.68182268750002",

Check warning on line 772 in sdk/javascript/send-message.mdx

View check run for this annotation

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

sdk/javascript/send-message.mdx#L772

Did you really mean 'customMessage'?
},
customType: string = "location",
receiverType: string = CometChat.RECEIVER_TYPE.USER,

Check warning on line 775 in sdk/javascript/send-message.mdx

View check run for this annotation

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

sdk/javascript/send-message.mdx#L775

Did you really mean 'customType'?
customMessage: CometChat.CustomMessage = new CometChat.CustomMessage(

Check warning on line 776 in sdk/javascript/send-message.mdx

View check run for this annotation

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

sdk/javascript/send-message.mdx#L776

Did you really mean 'customData'?
receiverID,
receiverType,
customType,
Expand Down Expand Up @@ -814,7 +814,7 @@
console.log("Custom message sent successfully", message);
},
(error) => {
console.log("Custom message sending failed with error", error);

Check warning on line 817 in sdk/javascript/send-message.mdx

View check run for this annotation

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

sdk/javascript/send-message.mdx#L817

Did you really mean 'customData'?
}
);
````
Expand All @@ -823,14 +823,14 @@

<Tab title="TypeScript (Group)">
```typescript
let receiverID: string = "GUID",

Check warning on line 826 in sdk/javascript/send-message.mdx

View check run for this annotation

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

sdk/javascript/send-message.mdx#L826

Did you really mean 'customType'?
customData: Object = {
latitude: "50.6192171633316",
longitude: "-72.68182268750002",

Check warning on line 829 in sdk/javascript/send-message.mdx

View check run for this annotation

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

sdk/javascript/send-message.mdx#L829

Did you really mean 'customMessage'?
},
customType: string = "location",
receiverType: string = CometChat.RECEIVER_TYPE.GROUP,

Check warning on line 832 in sdk/javascript/send-message.mdx

View check run for this annotation

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

sdk/javascript/send-message.mdx#L832

Did you really mean 'customType'?
customMessage: CometChat.CustomMessage = new CometChat.CustomMessage(

Check warning on line 833 in sdk/javascript/send-message.mdx

View check run for this annotation

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

sdk/javascript/send-message.mdx#L833

Did you really mean 'customData'?
receiverID,
receiverType,
customType,
Expand Down
4 changes: 2 additions & 2 deletions sdk/react-native/ai-agents.mdx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: "AI Agents"
title: "AI Agents in the CometChat React Native SDK"
sidebarTitle: "AI Agents"
description: "Integrate AI Agents into your React Native app using the CometChat SDK, including real-time event streaming and agentic message handling."
description: "Integrate AI Agents into your React Native app with the CometChat SDK, including real-time event streaming, tool calls, and agentic message handling."

Check warning on line 4 in sdk/react-native/ai-agents.mdx

View check run for this annotation

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

sdk/react-native/ai-agents.mdx#L4

Did you really mean 'agentic'?
---

<Accordion title="AI Integration Quick Reference">
Expand Down Expand Up @@ -43,7 +43,7 @@

When a user sends a text message to an Agent:
1. The platform starts a run and streams real-time events via `AIAssistantListener`
2. After the run completes, persisted Agentic Messages arrive via `MessageListener`

Check warning on line 46 in sdk/react-native/ai-agents.mdx

View check run for this annotation

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

sdk/react-native/ai-agents.mdx#L46

Did you really mean 'Agentic'?

### Real-time Events
Events are received via the **`onAIAssistantEventReceived`** method of the **`AIAssistantListener`** class as [`AIAssistantBaseEvent`](/sdk/reference/messages#aiassistantbaseevent) objects, in this general order:
Expand Down Expand Up @@ -98,7 +98,7 @@
<Tabs>
<Tab title="TypeScript">
```ts
const listnerId: string = "unique_listener_id";

Check warning on line 101 in sdk/react-native/ai-agents.mdx

View check run for this annotation

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

sdk/react-native/ai-agents.mdx#L101

Did you really mean 'listnerId'?

Check warning on line 101 in sdk/react-native/ai-agents.mdx

View check run for this annotation

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

sdk/react-native/ai-agents.mdx#L101

Did you really mean 'unique_listener_id'?

// Adding the AIAssistantListener
CometChat.addAIAssistantListener(listnerId, {
Expand All @@ -114,7 +114,7 @@

<Tab title="JavaScript">
```js
const listnerId = "unique_listener_id";

Check warning on line 117 in sdk/react-native/ai-agents.mdx

View check run for this annotation

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

sdk/react-native/ai-agents.mdx#L117

Did you really mean 'listnerId'?

Check warning on line 117 in sdk/react-native/ai-agents.mdx

View check run for this annotation

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

sdk/react-native/ai-agents.mdx#L117

Did you really mean 'unique_listener_id'?

// Adding the AIAssistantListener
CometChat.addAIAssistantListener(listnerId, {
Expand All @@ -131,7 +131,7 @@
</Tabs>

<Warning>
Always remove AI Assistant listeners when the component unmounts to prevent memory leaks.

Check warning on line 134 in sdk/react-native/ai-agents.mdx

View check run for this annotation

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

sdk/react-native/ai-agents.mdx#L134

Did you really mean 'unmounts'?
```javascript
CometChat.removeAIAssistantListener("unique_listener_id");
```
Expand All @@ -155,7 +155,7 @@

When the agent generates a card, the run emits a card cycle (`Card Start` → `Card` → `Card End`). All three are `AIAssistantBaseEvent` subclasses delivered through the same `onAIAssistantEventReceived` callback — no separate listener is required.

| Class | Event type (`getType()`) | Getters |

Check warning on line 158 in sdk/react-native/ai-agents.mdx

View check run for this annotation

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

sdk/react-native/ai-agents.mdx#L158

Did you really mean 'Getters'?
|-------|--------------------------|---------|
| `AIAssistantCardStartedEvent` | `card_start` | `getCardId()`, `getExecutionText()`, `getStreamMessageId()` |
| `AIAssistantCardReceivedEvent` | `card` | `getCardId()`, `getCard()`, `getStreamMessageId()` |
Expand Down Expand Up @@ -204,7 +204,7 @@

</Tabs>

### Agentic Messages

Check warning on line 207 in sdk/react-native/ai-agents.mdx

View check run for this annotation

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

sdk/react-native/ai-agents.mdx#L207

Did you really mean 'Agentic'?

After the run completes, these messages arrive via `MessageListener`:

Expand All @@ -214,7 +214,7 @@
| `AIToolResultMessage` | The final output of a tool call |
| `AIToolArgumentMessage` | The arguments passed to a tool |

Each message type extends [`BaseMessage`](/sdk/reference/messages#basemessage) and has a typed data accessor:

Check warning on line 217 in sdk/react-native/ai-agents.mdx

View check run for this annotation

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

sdk/react-native/ai-agents.mdx#L217

Did you really mean 'accessor'?

| Message Type | Data Getter | Data Properties |
|--------------|-------------|-----------------|
Expand Down Expand Up @@ -279,7 +279,7 @@
</Tabs>

<Warning>
Always remove listeners when they're no longer needed (e.g., on component unmount or page navigation). Failing to remove listeners can cause memory leaks and duplicate event handling.

Check warning on line 282 in sdk/react-native/ai-agents.mdx

View check run for this annotation

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

sdk/react-native/ai-agents.mdx#L282

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

### AIAssistantMessage Elements
Expand All @@ -291,7 +291,7 @@
| Method | Return Type | Description |
|--------|-------------|-------------|
| `getType()` | `string` | The block type, e.g. `"text"` or `"card"`. Determines the shape of `getData()`. |
| `getData()` | `string \| object` | The block's raw body. `"text"` → `string`; `"card"` → `{ card, cardId }`; other types → raw JSON value. The SDK never interprets this — it returns the value as-is. |

Check warning on line 294 in sdk/react-native/ai-agents.mdx

View check run for this annotation

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

sdk/react-native/ai-agents.mdx#L294

Did you really mean 'cardId'?

<Tabs>
<Tab title="TypeScript">
Expand Down
4 changes: 2 additions & 2 deletions sdk/react-native/campaigns.mdx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: "Campaigns"
description: "Fetch notification feed items, listen for real-time delivery, mark items as read/delivered, report engagement, and track push notifications using the CometChat React Native SDK."
title: "Campaigns in the CometChat React Native SDK"
description: "Deliver targeted in-app notifications in React Native with CometChat Campaigns, using Card Schema JSON, real-time delivery listeners, and engagement APIs."
---

CometChat Campaigns lets you deliver targeted, rich notifications to users via an in-app notification feed. Each notification is a **Card Schema JSON** — a structured layout rendered natively by the CometChat Cards library.
Expand Down Expand Up @@ -47,7 +47,7 @@
{ "type": "button", "id": "btn_1", "label": "Shop Now", "action": { "type": "openUrl", "url": "https://..." } }
],
"style": { "background": {"light": "#FFFFFF", "dark": "#1E1E1E"}, "borderRadius": 12, "padding": 16 },
"fallbackText": "Flash Sale! Shop Now: https://..."

Check warning on line 50 in sdk/react-native/campaigns.mdx

View check run for this annotation

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

sdk/react-native/campaigns.mdx#L50

Did you really mean 'fallbackText'?
}
```

Expand Down Expand Up @@ -153,7 +153,7 @@
<Tabs>
<Tab title="JavaScript">
```javascript
const categoriesRequest = new CometChat.NotificationCategoriesRequestBuilder()

Check warning on line 156 in sdk/react-native/campaigns.mdx

View check run for this annotation

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

sdk/react-native/campaigns.mdx#L156

Did you really mean 'categoriesRequest'?
.setLimit(50)
.build();

Expand Down Expand Up @@ -389,7 +389,7 @@
<Tabs>
<Tab title="JavaScript">
```javascript
const pushNotification = new CometChat.PushNotification(pushPayloadJson);

Check warning on line 392 in sdk/react-native/campaigns.mdx

View check run for this annotation

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

sdk/react-native/campaigns.mdx#L392

Did you really mean 'pushNotification'?

CometChat.markPushNotificationDelivered(pushNotification).then(
() => { /* Success */ },
Expand Down Expand Up @@ -485,10 +485,10 @@
// Open URL in browser
break;
case "chatWithUser":
// Navigate to chat with event.params.uid

Check warning on line 488 in sdk/react-native/campaigns.mdx

View check run for this annotation

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

sdk/react-native/campaigns.mdx#L488

Did you really mean 'uid'?
break;
case "chatWithGroup":
// Navigate to group chat with event.params.guid

Check warning on line 491 in sdk/react-native/campaigns.mdx

View check run for this annotation

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

sdk/react-native/campaigns.mdx#L491

Did you really mean 'guid'?
break;
}
}}
Expand All @@ -509,15 +509,15 @@

| Action Type | Parameters | Description |
| --- | --- | --- |
| `openUrl` | url, openIn | Open a URL in browser or webview |

Check warning on line 512 in sdk/react-native/campaigns.mdx

View check run for this annotation

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

sdk/react-native/campaigns.mdx#L512

Did you really mean 'openIn'?

Check warning on line 512 in sdk/react-native/campaigns.mdx

View check run for this annotation

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

sdk/react-native/campaigns.mdx#L512

Did you really mean 'webview'?
| `chatWithUser` | uid | Navigate to 1:1 chat |
| `chatWithGroup` | guid | Navigate to group chat |
| `sendMessage` | text, receiverUid, receiverGuid | Send a text message |

Check warning on line 515 in sdk/react-native/campaigns.mdx

View check run for this annotation

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

sdk/react-native/campaigns.mdx#L515

Did you really mean 'receiverUid'?

Check warning on line 515 in sdk/react-native/campaigns.mdx

View check run for this annotation

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

sdk/react-native/campaigns.mdx#L515

Did you really mean 'receiverGuid'?
| `copyToClipboard` | value | Copy text to clipboard |
| `downloadFile` | url, filename | Download a file |
| `initiateCall` | callType (audio/video), uid, guid | Start a call |

Check warning on line 518 in sdk/react-native/campaigns.mdx

View check run for this annotation

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

sdk/react-native/campaigns.mdx#L518

Did you really mean 'callType'?

Check warning on line 518 in sdk/react-native/campaigns.mdx

View check run for this annotation

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

sdk/react-native/campaigns.mdx#L518

Did you really mean 'uid'?

Check warning on line 518 in sdk/react-native/campaigns.mdx

View check run for this annotation

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

sdk/react-native/campaigns.mdx#L518

Did you really mean 'guid'?
| `apiCall` | url, method, headers, body | Make an HTTP request |
| `customCallback` | callbackId, payload | App-specific logic |

Check warning on line 520 in sdk/react-native/campaigns.mdx

View check run for this annotation

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

sdk/react-native/campaigns.mdx#L520

Did you really mean 'callbackId'?

---

Expand Down
2 changes: 1 addition & 1 deletion sdk/react-native/message-structure-and-hierarchy.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: "Message Structure and Hierarchy"
title: "Message structure and hierarchy in React Native SDK"
sidebarTitle: "Message Structure"
description: "Understand the message categories, types, and hierarchy in the CometChat React Native SDK including text, media, custom, card, action, and call messages."
---
Expand Down Expand Up @@ -53,7 +53,7 @@
}
break;
case CometChat.CATEGORY_CUSTOM:
const customMsg = message as CometChat.CustomMessage;

Check warning on line 56 in sdk/react-native/message-structure-and-hierarchy.mdx

View check run for this annotation

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

sdk/react-native/message-structure-and-hierarchy.mdx#L56

Did you really mean 'customMsg'?
console.log("Custom type:", type, "data:", customMsg.getData());
break;
case CometChat.CATEGORY_ACTION:
Expand Down
4 changes: 2 additions & 2 deletions sdk/react-native/real-time-listeners.mdx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: "All Real Time Listeners"
description: "Complete reference for all CometChat real-time listeners in the React Native SDK including User, Group, Message, and Call listeners."
title: "Real-time listeners in the CometChat React Native SDK"
description: "Reference for all CometChat real-time listeners in the React Native SDK, including User, Group, Message, Call, and AI Assistant event listeners."
---

<Accordion title="AI Integration Quick Reference">
Expand Down Expand Up @@ -46,10 +46,10 @@
2. Handle events in the callback methods
3. Remove the listener with `removeXListener()` when it's no longer needed

Each listener ID must be unique. Re-registering with the same ID replaces the previous listener. Always remove listeners on component unmount to prevent memory leaks.

Check warning on line 49 in sdk/react-native/real-time-listeners.mdx

View check run for this annotation

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

sdk/react-native/real-time-listeners.mdx#L49

Did you really mean 'unmount'?

<Warning>
Always remove listeners when they're no longer needed (e.g., on component unmount). Failing to remove listeners can cause memory leaks and duplicate event handling. For React Native, use `useEffect` cleanup functions to handle listener removal automatically.

Check warning on line 52 in sdk/react-native/real-time-listeners.mdx

View check run for this annotation

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

sdk/react-native/real-time-listeners.mdx#L52

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

CometChat provides 4 listeners viz.
Expand Down Expand Up @@ -80,8 +80,8 @@
onUserOnline: (onlineUser: CometChat.User) => {
console.log("On User Online:", { onlineUser });
},
onUserOffline: (offlineUser: CometChat.User) => {

Check warning on line 83 in sdk/react-native/real-time-listeners.mdx

View check run for this annotation

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

sdk/react-native/real-time-listeners.mdx#L83

Did you really mean 'offlineUser'?
console.log("On User Offline:", { offlineUser });

Check warning on line 84 in sdk/react-native/real-time-listeners.mdx

View check run for this annotation

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

sdk/react-native/real-time-listeners.mdx#L84

Did you really mean 'offlineUser'?
},
})
);
Expand Down Expand Up @@ -136,13 +136,13 @@

| Method | Information |
| ------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------- |
| **onGroupMemberJoined(action: [CometChat.Action](/sdk/reference/messages#action), joinedUser: [CometChat.User](/sdk/reference/entities#user), joinedGroup: [CometChat.Group](/sdk/reference/entities#group))** | This method is triggered when a user joins any group. All the members present in the group will receive this event. |

Check warning on line 139 in sdk/react-native/real-time-listeners.mdx

View check run for this annotation

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

sdk/react-native/real-time-listeners.mdx#L139

Did you really mean 'joinedUser'?

Check warning on line 139 in sdk/react-native/real-time-listeners.mdx

View check run for this annotation

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

sdk/react-native/real-time-listeners.mdx#L139

Did you really mean 'joinedGroup'?
| **onGroupMemberLeft(action: [CometChat.Action](/sdk/reference/messages#action), leftUser: [CometChat.User](/sdk/reference/entities#user), leftGroup: [CometChat.Group](/sdk/reference/entities#group))** | This method is triggered when a user who was a member of any group leaves the group. All the members of the group receive this event. |

Check warning on line 140 in sdk/react-native/real-time-listeners.mdx

View check run for this annotation

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

sdk/react-native/real-time-listeners.mdx#L140

Did you really mean 'leftUser'?

Check warning on line 140 in sdk/react-native/real-time-listeners.mdx

View check run for this annotation

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

sdk/react-native/real-time-listeners.mdx#L140

Did you really mean 'leftGroup'?
| **onGroupMemberKicked(action: [CometChat.Action](/sdk/reference/messages#action), kickedUser: [CometChat.User](/sdk/reference/entities#user), kickedBy: [CometChat.User](/sdk/reference/entities#user), kickedFrom: [CometChat.Group](/sdk/reference/entities#group))** | This method is triggered when a user is kicked from a group. All the members including the user receive this event |

Check warning on line 141 in sdk/react-native/real-time-listeners.mdx

View check run for this annotation

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

sdk/react-native/real-time-listeners.mdx#L141

Did you really mean 'kickedUser'?

Check warning on line 141 in sdk/react-native/real-time-listeners.mdx

View check run for this annotation

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

sdk/react-native/real-time-listeners.mdx#L141

Did you really mean 'kickedBy'?

Check warning on line 141 in sdk/react-native/real-time-listeners.mdx

View check run for this annotation

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

sdk/react-native/real-time-listeners.mdx#L141

Did you really mean 'kickedFrom'?
| **onGroupMemberBanned(action: [CometChat.Action](/sdk/reference/messages#action), bannedUser: [CometChat.User](/sdk/reference/entities#user), bannedBy: [CometChat.User](/sdk/reference/entities#user), bannedFrom: [CometChat.Group](/sdk/reference/entities#group))** | This method is triggered when a user is banned from a group. All the members including the user receive this event |

Check warning on line 142 in sdk/react-native/real-time-listeners.mdx

View check run for this annotation

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

sdk/react-native/real-time-listeners.mdx#L142

Did you really mean 'bannedUser'?

Check warning on line 142 in sdk/react-native/real-time-listeners.mdx

View check run for this annotation

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

sdk/react-native/real-time-listeners.mdx#L142

Did you really mean 'bannedBy'?

Check warning on line 142 in sdk/react-native/real-time-listeners.mdx

View check run for this annotation

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

sdk/react-native/real-time-listeners.mdx#L142

Did you really mean 'bannedFrom'?
| **onGroupMemberUnbanned(action: [CometChat.Action](/sdk/reference/messages#action), unbannedUser: [CometChat.User](/sdk/reference/entities#user), unbannedBy: [CometChat.User](/sdk/reference/entities#user), unbannedFrom: [CometChat.Group](/sdk/reference/entities#group))** | This method is triggered when a user is unbanned from a group. All the members of the group receive this event. |

Check warning on line 143 in sdk/react-native/real-time-listeners.mdx

View check run for this annotation

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

sdk/react-native/real-time-listeners.mdx#L143

Did you really mean 'unbannedUser'?

Check warning on line 143 in sdk/react-native/real-time-listeners.mdx

View check run for this annotation

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

sdk/react-native/real-time-listeners.mdx#L143

Did you really mean 'unbannedBy'?

Check warning on line 143 in sdk/react-native/real-time-listeners.mdx

View check run for this annotation

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

sdk/react-native/real-time-listeners.mdx#L143

Did you really mean 'unbannedFrom'?
| **onGroupMemberScopeChanged(action: [CometChat.Action](/sdk/reference/messages#action), changedUser: [CometChat.User](/sdk/reference/entities#user), newScope: string, oldScope: string, changedGroup: [CometChat.Group](/sdk/reference/entities#group))** | This method is triggered when the scope of any Group Member has been changed. All the members that are a part of that group receive this event |

Check warning on line 144 in sdk/react-native/real-time-listeners.mdx

View check run for this annotation

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

sdk/react-native/real-time-listeners.mdx#L144

Did you really mean 'changedUser'?

Check warning on line 144 in sdk/react-native/real-time-listeners.mdx

View check run for this annotation

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

sdk/react-native/real-time-listeners.mdx#L144

Did you really mean 'newScope'?

Check warning on line 144 in sdk/react-native/real-time-listeners.mdx

View check run for this annotation

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

sdk/react-native/real-time-listeners.mdx#L144

Did you really mean 'oldScope'?

Check warning on line 144 in sdk/react-native/real-time-listeners.mdx

View check run for this annotation

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

sdk/react-native/real-time-listeners.mdx#L144

Did you really mean 'changedGroup'?
| **onMemberAddedToGroup(action: [CometChat.Action](/sdk/reference/messages#action), userAdded: [CometChat.User](/sdk/reference/entities#user), addedBy: [CometChat.User](/sdk/reference/entities#user), addedTo: [CometChat.Group](/sdk/reference/entities#group))** | This method is triggered when a user is added to any group. All the members including the user himself receive this event. |

Check warning on line 145 in sdk/react-native/real-time-listeners.mdx

View check run for this annotation

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

sdk/react-native/real-time-listeners.mdx#L145

Did you really mean 'userAdded'?

Check warning on line 145 in sdk/react-native/real-time-listeners.mdx

View check run for this annotation

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

sdk/react-native/real-time-listeners.mdx#L145

Did you really mean 'addedBy'?

Check warning on line 145 in sdk/react-native/real-time-listeners.mdx

View check run for this annotation

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

sdk/react-native/real-time-listeners.mdx#L145

Did you really mean 'addedTo'?

To add the `GroupListener`:

Expand All @@ -161,76 +161,76 @@
},
onGroupMemberLeft: (
message: CometChat.Action,
leftUser: CometChat.User,

Check warning on line 164 in sdk/react-native/real-time-listeners.mdx

View check run for this annotation

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

sdk/react-native/real-time-listeners.mdx#L164

Did you really mean 'leftUser'?
leftGroup: CometChat.Group

Check warning on line 165 in sdk/react-native/real-time-listeners.mdx

View check run for this annotation

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

sdk/react-native/real-time-listeners.mdx#L165

Did you really mean 'leftGroup'?
) => {
console.log("onGroupMemberLeft", { message, leftUser, leftGroup });

Check warning on line 167 in sdk/react-native/real-time-listeners.mdx

View check run for this annotation

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

sdk/react-native/real-time-listeners.mdx#L167

Did you really mean 'leftUser'?

Check warning on line 167 in sdk/react-native/real-time-listeners.mdx

View check run for this annotation

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

sdk/react-native/real-time-listeners.mdx#L167

Did you really mean 'leftGroup'?
},
onGroupMemberKicked: (
message: CometChat.Action,
kickedUser: CometChat.User,

Check warning on line 171 in sdk/react-native/real-time-listeners.mdx

View check run for this annotation

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

sdk/react-native/real-time-listeners.mdx#L171

Did you really mean 'kickedUser'?
kickedBy: CometChat.User,

Check warning on line 172 in sdk/react-native/real-time-listeners.mdx

View check run for this annotation

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

sdk/react-native/real-time-listeners.mdx#L172

Did you really mean 'kickedBy'?
kickedFrom: CometChat.Group

Check warning on line 173 in sdk/react-native/real-time-listeners.mdx

View check run for this annotation

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

sdk/react-native/real-time-listeners.mdx#L173

Did you really mean 'kickedFrom'?
) => {
console.log("onGroupMemberKicked", {
message,
kickedUser,

Check warning on line 177 in sdk/react-native/real-time-listeners.mdx

View check run for this annotation

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

sdk/react-native/real-time-listeners.mdx#L177

Did you really mean 'kickedUser'?
kickedBy,

Check warning on line 178 in sdk/react-native/real-time-listeners.mdx

View check run for this annotation

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

sdk/react-native/real-time-listeners.mdx#L178

Did you really mean 'kickedBy'?
kickedFrom,

Check warning on line 179 in sdk/react-native/real-time-listeners.mdx

View check run for this annotation

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

sdk/react-native/real-time-listeners.mdx#L179

Did you really mean 'kickedFrom'?
});
},
onGroupMemberBanned: (
message: CometChat.Action,
bannedUser: CometChat.User,

Check warning on line 184 in sdk/react-native/real-time-listeners.mdx

View check run for this annotation

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

sdk/react-native/real-time-listeners.mdx#L184

Did you really mean 'bannedUser'?
bannedBy: CometChat.User,

Check warning on line 185 in sdk/react-native/real-time-listeners.mdx

View check run for this annotation

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

sdk/react-native/real-time-listeners.mdx#L185

Did you really mean 'bannedBy'?
bannedFrom: CometChat.Group

Check warning on line 186 in sdk/react-native/real-time-listeners.mdx

View check run for this annotation

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

sdk/react-native/real-time-listeners.mdx#L186

Did you really mean 'bannedFrom'?
) => {
console.log("onGroupMemberBanned", {
message,
bannedUser,

Check warning on line 190 in sdk/react-native/real-time-listeners.mdx

View check run for this annotation

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

sdk/react-native/real-time-listeners.mdx#L190

Did you really mean 'bannedUser'?
bannedBy,

Check warning on line 191 in sdk/react-native/real-time-listeners.mdx

View check run for this annotation

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

sdk/react-native/real-time-listeners.mdx#L191

Did you really mean 'bannedBy'?
bannedFrom,

Check warning on line 192 in sdk/react-native/real-time-listeners.mdx

View check run for this annotation

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

sdk/react-native/real-time-listeners.mdx#L192

Did you really mean 'bannedFrom'?
});
},
onGroupMemberUnbanned: (
message: CometChat.Action,
unbannedUser: CometChat.User,

Check warning on line 197 in sdk/react-native/real-time-listeners.mdx

View check run for this annotation

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

sdk/react-native/real-time-listeners.mdx#L197

Did you really mean 'unbannedUser'?
unbannedBy: CometChat.User,

Check warning on line 198 in sdk/react-native/real-time-listeners.mdx

View check run for this annotation

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

sdk/react-native/real-time-listeners.mdx#L198

Did you really mean 'unbannedBy'?
unbannedFrom: CometChat.Group

Check warning on line 199 in sdk/react-native/real-time-listeners.mdx

View check run for this annotation

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

sdk/react-native/real-time-listeners.mdx#L199

Did you really mean 'unbannedFrom'?
) => {
console.log("onGroupMemberUnbanned", {
message,
unbannedUser,

Check warning on line 203 in sdk/react-native/real-time-listeners.mdx

View check run for this annotation

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

sdk/react-native/real-time-listeners.mdx#L203

Did you really mean 'unbannedUser'?
unbannedBy,

Check warning on line 204 in sdk/react-native/real-time-listeners.mdx

View check run for this annotation

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

sdk/react-native/real-time-listeners.mdx#L204

Did you really mean 'unbannedBy'?
unbannedFrom,

Check warning on line 205 in sdk/react-native/real-time-listeners.mdx

View check run for this annotation

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

sdk/react-native/real-time-listeners.mdx#L205

Did you really mean 'unbannedFrom'?
});
},
onGroupMemberScopeChanged: (
message: CometChat.Action,
changedUser: CometChat.User,

Check warning on line 210 in sdk/react-native/real-time-listeners.mdx

View check run for this annotation

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

sdk/react-native/real-time-listeners.mdx#L210

Did you really mean 'changedUser'?
newScope: string,

Check warning on line 211 in sdk/react-native/real-time-listeners.mdx

View check run for this annotation

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

sdk/react-native/real-time-listeners.mdx#L211

Did you really mean 'newScope'?
oldScope: string,

Check warning on line 212 in sdk/react-native/real-time-listeners.mdx

View check run for this annotation

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

sdk/react-native/real-time-listeners.mdx#L212

Did you really mean 'oldScope'?
changedGroup: CometChat.Group

Check warning on line 213 in sdk/react-native/real-time-listeners.mdx

View check run for this annotation

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

sdk/react-native/real-time-listeners.mdx#L213

Did you really mean 'changedGroup'?
) => {
console.log("onGroupMemberScopeChanged", {
message,
changedUser,

Check warning on line 217 in sdk/react-native/real-time-listeners.mdx

View check run for this annotation

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

sdk/react-native/real-time-listeners.mdx#L217

Did you really mean 'changedUser'?
newScope,

Check warning on line 218 in sdk/react-native/real-time-listeners.mdx

View check run for this annotation

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

sdk/react-native/real-time-listeners.mdx#L218

Did you really mean 'newScope'?
oldScope,

Check warning on line 219 in sdk/react-native/real-time-listeners.mdx

View check run for this annotation

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

sdk/react-native/real-time-listeners.mdx#L219

Did you really mean 'oldScope'?
changedGroup,

Check warning on line 220 in sdk/react-native/real-time-listeners.mdx

View check run for this annotation

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

sdk/react-native/real-time-listeners.mdx#L220

Did you really mean 'changedGroup'?
});
},
onMemberAddedToGroup: (
message: CometChat.Action,
userAdded: CometChat.User,

Check warning on line 225 in sdk/react-native/real-time-listeners.mdx

View check run for this annotation

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

sdk/react-native/real-time-listeners.mdx#L225

Did you really mean 'userAdded'?
addedby: CometChat.User,

Check warning on line 226 in sdk/react-native/real-time-listeners.mdx

View check run for this annotation

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

sdk/react-native/real-time-listeners.mdx#L226

Did you really mean 'addedby'?
addedTo: CometChat.Group

Check warning on line 227 in sdk/react-native/real-time-listeners.mdx

View check run for this annotation

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

sdk/react-native/real-time-listeners.mdx#L227

Did you really mean 'addedTo'?
) => {
console.log("onMemberAddedToGroup", {
message,
userAdded,

Check warning on line 231 in sdk/react-native/real-time-listeners.mdx

View check run for this annotation

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

sdk/react-native/real-time-listeners.mdx#L231

Did you really mean 'userAdded'?
addedby,

Check warning on line 232 in sdk/react-native/real-time-listeners.mdx

View check run for this annotation

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

sdk/react-native/real-time-listeners.mdx#L232

Did you really mean 'addedby'?
addedTo,

Check warning on line 233 in sdk/react-native/real-time-listeners.mdx

View check run for this annotation

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

sdk/react-native/real-time-listeners.mdx#L233

Did you really mean 'addedTo'?
});
},
})
Expand Down Expand Up @@ -364,23 +364,23 @@
onTextMessageReceived: (textMessage: CometChat.TextMessage) => {
console.log("Text message received successfully", textMessage);
},
onMediaMessageReceived: (mediaMessage: CometChat.MediaMessage) => {

Check warning on line 367 in sdk/react-native/real-time-listeners.mdx

View check run for this annotation

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

sdk/react-native/real-time-listeners.mdx#L367

Did you really mean 'mediaMessage'?
console.log("Media message received successfully", mediaMessage);

Check warning on line 368 in sdk/react-native/real-time-listeners.mdx

View check run for this annotation

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

sdk/react-native/real-time-listeners.mdx#L368

Did you really mean 'mediaMessage'?
},
onCustomMessageReceived: (customMessage: CometChat.CustomMessage) => {

Check warning on line 370 in sdk/react-native/real-time-listeners.mdx

View check run for this annotation

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

sdk/react-native/real-time-listeners.mdx#L370

Did you really mean 'customMessage'?
console.log("Custom message received successfully", customMessage);

Check warning on line 371 in sdk/react-native/real-time-listeners.mdx

View check run for this annotation

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

sdk/react-native/real-time-listeners.mdx#L371

Did you really mean 'customMessage'?
},
onMessagesDelivered: (messageReceipt: CometChat.MessageReceipt) => {

Check warning on line 373 in sdk/react-native/real-time-listeners.mdx

View check run for this annotation

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

sdk/react-native/real-time-listeners.mdx#L373

Did you really mean 'messageReceipt'?
console.log("Message Delivered", messageReceipt);

Check warning on line 374 in sdk/react-native/real-time-listeners.mdx

View check run for this annotation

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

sdk/react-native/real-time-listeners.mdx#L374

Did you really mean 'messageReceipt'?
},
onMessagesRead: (messageReceipt: CometChat.MessageReceipt) => {
console.log("Message Read", messageReceipt);

Check warning on line 377 in sdk/react-native/real-time-listeners.mdx

View check run for this annotation

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

sdk/react-native/real-time-listeners.mdx#L377

Did you really mean 'messageReceipt'?
},
onTypingStarted: (typingIndicator: CometChat.TypingIndicator) => {

Check warning on line 379 in sdk/react-native/real-time-listeners.mdx

View check run for this annotation

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

sdk/react-native/real-time-listeners.mdx#L379

Did you really mean 'typingIndicator'?
console.log("Typing Started", typingIndicator);

Check warning on line 380 in sdk/react-native/real-time-listeners.mdx

View check run for this annotation

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

sdk/react-native/real-time-listeners.mdx#L380

Did you really mean 'typingIndicator'?
},
onTypingEnded: (typingIndicator: CometChat.TypingIndicator) => {
console.log("Typing Ended", typingIndicator);

Check warning on line 383 in sdk/react-native/real-time-listeners.mdx

View check run for this annotation

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

sdk/react-native/real-time-listeners.mdx#L383

Did you really mean 'typingIndicator'?
},
onMessageDeleted: (message: CometChat.BaseMessage) => {
console.log("Message Deleted", message);
Expand All @@ -403,8 +403,8 @@
onMessageReactionRemoved: (reaction: CometChat.ReactionEvent) => {
console.log("Message Reaction removed", reaction);
},
onCardMessageReceived: (cardMessage: CometChat.CardMessage) => {

Check warning on line 406 in sdk/react-native/real-time-listeners.mdx

View check run for this annotation

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

sdk/react-native/real-time-listeners.mdx#L406

Did you really mean 'cardMessage'?
console.log("Card message received", cardMessage);

Check warning on line 407 in sdk/react-native/real-time-listeners.mdx

View check run for this annotation

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

sdk/react-native/real-time-listeners.mdx#L407

Did you really mean 'cardMessage'?
},
})
);
Expand Down
4 changes: 2 additions & 2 deletions sdk/react-native/receive-messages.mdx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: "Receive Messages"
title: "Receive messages with the React Native SDK"
sidebarTitle: "Receive Messages"
description: "Receive real-time messages, fetch unread messages, retrieve message history, search messages, and get unread counts using the CometChat React Native SDK."
description: "Receive real-time messages, fetch unread messages, retrieve conversation history, search messages, and get unread counts with the CometChat React Native SDK."
---

<Accordion title="AI Integration Quick Reference">
Expand Down Expand Up @@ -39,10 +39,10 @@
onTextMessageReceived: (textMessage: CometChat.TextMessage) => {
console.log("Text message received successfully", textMessage);
},
onMediaMessageReceived: (mediaMessage: CometChat.MediaMessage) => {

Check warning on line 42 in sdk/react-native/receive-messages.mdx

View check run for this annotation

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

sdk/react-native/receive-messages.mdx#L42

Did you really mean 'mediaMessage'?
console.log("Media message received successfully", mediaMessage);
},
onCustomMessageReceived: (customMessage: CometChat.CustomMessage) => {

Check warning on line 45 in sdk/react-native/receive-messages.mdx

View check run for this annotation

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

sdk/react-native/receive-messages.mdx#L45

Did you really mean 'customMessage'?
console.log("Custom message received successfully", customMessage);
},
})
Expand Down Expand Up @@ -83,7 +83,7 @@
```

<Warning>
Always remove listeners when they're no longer needed (e.g., on component unmount). Failing to do so can cause memory leaks and duplicate event handling.

Check warning on line 86 in sdk/react-native/receive-messages.mdx

View check run for this annotation

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

sdk/react-native/receive-messages.mdx#L86

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

<Warning>
Expand Down Expand Up @@ -137,9 +137,9 @@
```typescript
let UID: string = "UID";
let limit: number = 30;
let latestId: number = await CometChat.getLastDeliveredMessageId();

Check warning on line 140 in sdk/react-native/receive-messages.mdx

View check run for this annotation

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

sdk/react-native/receive-messages.mdx#L140

Did you really mean 'latestId'?

let messagesRequest: CometChat.MessagesRequest =

Check warning on line 142 in sdk/react-native/receive-messages.mdx

View check run for this annotation

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

sdk/react-native/receive-messages.mdx#L142

Did you really mean 'messagesRequest'?
new CometChat.MessagesRequestBuilder()
.setUID(UID)
.setMessageId(latestId)
Expand Down Expand Up @@ -194,7 +194,7 @@
let UID: string = "UID";
let limit: number = 30;

let messagesRequest: CometChat.MessagesRequest =

Check warning on line 197 in sdk/react-native/receive-messages.mdx

View check run for this annotation

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

sdk/react-native/receive-messages.mdx#L197

Did you really mean 'messagesRequest'?
new CometChat.MessagesRequestBuilder()
.setUID(UID)
.setUnread(true)
Expand Down Expand Up @@ -250,7 +250,7 @@
let UID: string = "UID";
let limit: number = 30;

let messagesRequest: CometChat.MessagesRequest =

Check warning on line 253 in sdk/react-native/receive-messages.mdx

View check run for this annotation

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

sdk/react-native/receive-messages.mdx#L253

Did you really mean 'messagesRequest'?
new CometChat.MessagesRequestBuilder()
.setUID(UID)
.setLimit(limit)
Expand Down Expand Up @@ -301,9 +301,9 @@
```typescript
let UID: string = "UID";
let limit: number = 30;
let searchKeyword: string = "Hello";

Check warning on line 304 in sdk/react-native/receive-messages.mdx

View check run for this annotation

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

sdk/react-native/receive-messages.mdx#L304

Did you really mean 'searchKeyword'?

let messagesRequest: CometChat.MessagesRequest =

Check warning on line 306 in sdk/react-native/receive-messages.mdx

View check run for this annotation

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

sdk/react-native/receive-messages.mdx#L306

Did you really mean 'messagesRequest'?
new CometChat.MessagesRequestBuilder()
.setUID(UID)
.setLimit(limit)
Expand Down Expand Up @@ -493,7 +493,7 @@
<Tabs>
<Tab title="TypeScript">
```typescript
let messageId: string = "MESSAGE_ID";

Check warning on line 496 in sdk/react-native/receive-messages.mdx

View check run for this annotation

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

sdk/react-native/receive-messages.mdx#L496

Did you really mean 'messageId'?

CometChat.getMessageDetails(messageId).then(
(message: CometChat.BaseMessage) => {
Expand Down
4 changes: 2 additions & 2 deletions sdk/react-native/send-message.mdx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: "Send Messages"
title: "Send messages with the React Native SDK"
sidebarTitle: "Send Messages"
description: "Send CometChat text, media, and custom messages to users and groups in React Native apps with message types and metadata."
description: "Send text, media, custom, interactive, and card messages to users and groups in your React Native app using the CometChat SDK, with metadata support."
---

<Accordion title="AI Integration Quick Reference">
Expand Down Expand Up @@ -32,12 +32,12 @@
<Tab title="TypeScript (User)">
```typescript
let receiverID: string = "UID",
messageText: string = "Hello world!",

Check warning on line 35 in sdk/react-native/send-message.mdx

View check run for this annotation

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

sdk/react-native/send-message.mdx#L35

Did you really mean 'messageText'?
receiverType: string = CometChat.RECEIVER_TYPE.USER,

Check warning on line 36 in sdk/react-native/send-message.mdx

View check run for this annotation

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

sdk/react-native/send-message.mdx#L36

Did you really mean 'receiverType'?
textMessage: CometChat.TextMessage = new CometChat.TextMessage(

Check warning on line 37 in sdk/react-native/send-message.mdx

View check run for this annotation

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

sdk/react-native/send-message.mdx#L37

Did you really mean 'textMessage'?
receiverID,
messageText,

Check warning on line 39 in sdk/react-native/send-message.mdx

View check run for this annotation

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

sdk/react-native/send-message.mdx#L39

Did you really mean 'messageText'?
receiverType

Check warning on line 40 in sdk/react-native/send-message.mdx

View check run for this annotation

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

sdk/react-native/send-message.mdx#L40

Did you really mean 'receiverType'?
);

CometChat.sendMessage(textMessage).then(
Expand Down Expand Up @@ -77,12 +77,12 @@
```javascript
try {
const receiverID = "UID";
const messageText = "Hello world!";

Check warning on line 80 in sdk/react-native/send-message.mdx

View check run for this annotation

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

sdk/react-native/send-message.mdx#L80

Did you really mean 'messageText'?
const receiverType = CometChat.RECEIVER_TYPE.USER;

Check warning on line 81 in sdk/react-native/send-message.mdx

View check run for this annotation

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

sdk/react-native/send-message.mdx#L81

Did you really mean 'receiverType'?
const textMessage = new CometChat.TextMessage(

Check warning on line 82 in sdk/react-native/send-message.mdx

View check run for this annotation

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

sdk/react-native/send-message.mdx#L82

Did you really mean 'textMessage'?
receiverID,
messageText,

Check warning on line 84 in sdk/react-native/send-message.mdx

View check run for this annotation

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

sdk/react-native/send-message.mdx#L84

Did you really mean 'messageText'?
receiverType

Check warning on line 85 in sdk/react-native/send-message.mdx

View check run for this annotation

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

sdk/react-native/send-message.mdx#L85

Did you really mean 'receiverType'?
);

const message = await CometChat.sendMessage(textMessage);
Expand Down Expand Up @@ -123,7 +123,7 @@
let textMessage = new CometChat.TextMessage(
receiverID,
messageText,
receiverType

Check warning on line 126 in sdk/react-native/send-message.mdx

View check run for this annotation

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

sdk/react-native/send-message.mdx#L126

Did you really mean 'receiverType'?
);

CometChat.sendMessage(textMessage).then(
Expand Down Expand Up @@ -178,12 +178,12 @@
<Tab title="TypeScript (User)">
```typescript
let receiverID: string = "UID",
messageType: string = CometChat.MESSAGE_TYPE.IMAGE,

Check warning on line 181 in sdk/react-native/send-message.mdx

View check run for this annotation

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

sdk/react-native/send-message.mdx#L181

Did you really mean 'messageType'?
receiverType: string = CometChat.RECEIVER_TYPE.USER,

Check warning on line 182 in sdk/react-native/send-message.mdx

View check run for this annotation

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

sdk/react-native/send-message.mdx#L182

Did you really mean 'receiverType'?
mediaMessage: CometChat.MediaMessage = new CometChat.MediaMessage(

Check warning on line 183 in sdk/react-native/send-message.mdx

View check run for this annotation

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

sdk/react-native/send-message.mdx#L183

Did you really mean 'mediaMessage'?
receiverID,
file,
messageType,

Check warning on line 186 in sdk/react-native/send-message.mdx

View check run for this annotation

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

sdk/react-native/send-message.mdx#L186

Did you really mean 'messageType'?
receiverType
);

Expand All @@ -207,7 +207,7 @@
receiverID,
file,
messageType,
receiverType

Check warning on line 210 in sdk/react-native/send-message.mdx

View check run for this annotation

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

sdk/react-native/send-message.mdx#L210

Did you really mean 'receiverType'?
);

CometChat.sendMediaMessage(mediaMessage).then(
Expand All @@ -224,12 +224,12 @@
<Tab title="TypeScript (Group)">
```typescript
let receiverID: string = "GUID",
messageType: string = CometChat.MESSAGE_TYPE.IMAGE,

Check warning on line 227 in sdk/react-native/send-message.mdx

View check run for this annotation

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

sdk/react-native/send-message.mdx#L227

Did you really mean 'messageType'?
receiverType: string = CometChat.RECEIVER_TYPE.GROUP,
mediaMessage: CometChat.MediaMessage = new CometChat.MediaMessage(

Check warning on line 229 in sdk/react-native/send-message.mdx

View check run for this annotation

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

sdk/react-native/send-message.mdx#L229

Did you really mean 'mediaMessage'?
receiverID,
file,
messageType,

Check warning on line 232 in sdk/react-native/send-message.mdx

View check run for this annotation

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

sdk/react-native/send-message.mdx#L232

Did you really mean 'messageType'?
receiverType
);

Expand All @@ -253,7 +253,7 @@
receiverID,
file,
messageType,
receiverType

Check warning on line 256 in sdk/react-native/send-message.mdx

View check run for this annotation

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

sdk/react-native/send-message.mdx#L256

Did you really mean 'receiverType'?
);

CometChat.sendMediaMessage(mediaMessage).then(
Expand All @@ -277,12 +277,12 @@
<Tab title="TypeScript (User)">
```typescript
let receiverID: string = "UID",
messageType: string = CometChat.MESSAGE_TYPE.IMAGE,

Check warning on line 280 in sdk/react-native/send-message.mdx

View check run for this annotation

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

sdk/react-native/send-message.mdx#L280

Did you really mean 'messageType'?
receiverType: string = CometChat.RECEIVER_TYPE.USER,
mediaMessage: CometChat.MediaMessage = new CometChat.MediaMessage(

Check warning on line 282 in sdk/react-native/send-message.mdx

View check run for this annotation

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

sdk/react-native/send-message.mdx#L282

Did you really mean 'mediaMessage'?
receiverID,
"",
messageType,

Check warning on line 285 in sdk/react-native/send-message.mdx

View check run for this annotation

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

sdk/react-native/send-message.mdx#L285

Did you really mean 'messageType'?
receiverType
);

Expand Down Expand Up @@ -316,7 +316,7 @@
receiverID,
"",
messageType,
receiverType

Check warning on line 319 in sdk/react-native/send-message.mdx

View check run for this annotation

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

sdk/react-native/send-message.mdx#L319

Did you really mean 'receiverType'?
);

let file = {
Expand All @@ -343,12 +343,12 @@
<Tab title="TypeScript (Group)">
```typescript
let receiverID: string = "GUID",
messageType: string = CometChat.MESSAGE_TYPE.IMAGE,

Check warning on line 346 in sdk/react-native/send-message.mdx

View check run for this annotation

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

sdk/react-native/send-message.mdx#L346

Did you really mean 'messageType'?
receiverType: string = CometChat.RECEIVER_TYPE.GROUP,
mediaMessage: CometChat.MediaMessage = new CometChat.MediaMessage(

Check warning on line 348 in sdk/react-native/send-message.mdx

View check run for this annotation

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

sdk/react-native/send-message.mdx#L348

Did you really mean 'mediaMessage'?
receiverID,
"",
messageType,

Check warning on line 351 in sdk/react-native/send-message.mdx

View check run for this annotation

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

sdk/react-native/send-message.mdx#L351

Did you really mean 'messageType'?
receiverType
);

Expand Down Expand Up @@ -382,7 +382,7 @@
receiverID,
"",
messageType,
receiverType

Check warning on line 385 in sdk/react-native/send-message.mdx

View check run for this annotation

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

sdk/react-native/send-message.mdx#L385

Did you really mean 'receiverType'?
);

let file = {
Expand Down Expand Up @@ -430,7 +430,7 @@
### Add Metadata and Tags

```javascript
mediaMessage.setMetadata({ location: "Paris" });

Check warning on line 433 in sdk/react-native/send-message.mdx

View check run for this annotation

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

sdk/react-native/send-message.mdx#L433

Did you really mean 'mediaMessage'?
mediaMessage.setTags(["vacation"]);
mediaMessage.setQuotedMessageId(10);
```
Expand All @@ -448,12 +448,12 @@
<Tab title="TypeScript (User)">
```typescript
let receiverID: string = "UID",
messageType: string = CometChat.MESSAGE_TYPE.FILE,

Check warning on line 451 in sdk/react-native/send-message.mdx

View check run for this annotation

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

sdk/react-native/send-message.mdx#L451

Did you really mean 'messageType'?
receiverType: string = CometChat.RECEIVER_TYPE.USER,

Check warning on line 452 in sdk/react-native/send-message.mdx

View check run for this annotation

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

sdk/react-native/send-message.mdx#L452

Did you really mean 'receiverType'?
mediaMessage: CometChat.MediaMessage = new CometChat.MediaMessage(
receiverID,
files,
messageType,

Check warning on line 456 in sdk/react-native/send-message.mdx

View check run for this annotation

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

sdk/react-native/send-message.mdx#L456

Did you really mean 'messageType'?
receiverType
);

Expand All @@ -477,7 +477,7 @@
receiverID,
files,
messageType,
receiverType

Check warning on line 480 in sdk/react-native/send-message.mdx

View check run for this annotation

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

sdk/react-native/send-message.mdx#L480

Did you really mean 'receiverType'?
);

CometChat.sendMediaMessage(mediaMessage).then(
Expand All @@ -494,12 +494,12 @@
<Tab title="TypeScript (Group)">
```typescript
let receiverID: string = "GUID",
messageType: string = CometChat.MESSAGE_TYPE.FILE,

Check warning on line 497 in sdk/react-native/send-message.mdx

View check run for this annotation

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

sdk/react-native/send-message.mdx#L497

Did you really mean 'messageType'?
receiverType: string = CometChat.RECEIVER_TYPE.GROUP,
mediaMessage: CometChat.MediaMessage = new CometChat.MediaMessage(
receiverID,
files,
messageType,

Check warning on line 502 in sdk/react-native/send-message.mdx

View check run for this annotation

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

sdk/react-native/send-message.mdx#L502

Did you really mean 'messageType'?
receiverType
);

Expand All @@ -523,7 +523,7 @@
receiverID,
files,
messageType,
receiverType

Check warning on line 526 in sdk/react-native/send-message.mdx

View check run for this annotation

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

sdk/react-native/send-message.mdx#L526

Did you really mean 'receiverType'?
);

CometChat.sendMediaMessage(mediaMessage).then(
Expand All @@ -545,12 +545,12 @@
<Tab title="TypeScript (User)">
```typescript
let receiverID: string = "UID",
messageType: string = CometChat.MESSAGE_TYPE.IMAGE,

Check warning on line 548 in sdk/react-native/send-message.mdx

View check run for this annotation

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

sdk/react-native/send-message.mdx#L548

Did you really mean 'messageType'?
receiverType: string = CometChat.RECEIVER_TYPE.USER,
mediaMessage: CometChat.MediaMessage = new CometChat.MediaMessage(
receiverID,
"",
messageType,

Check warning on line 553 in sdk/react-native/send-message.mdx

View check run for this annotation

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

sdk/react-native/send-message.mdx#L553

Did you really mean 'messageType'?
receiverType
);

Expand Down Expand Up @@ -594,7 +594,7 @@
receiverID,
"",
messageType,
receiverType

Check warning on line 597 in sdk/react-native/send-message.mdx

View check run for this annotation

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

sdk/react-native/send-message.mdx#L597

Did you really mean 'receiverType'?
);

let attachment1 = {
Expand Down Expand Up @@ -631,12 +631,12 @@
<Tab title="TypeScript (Group)">
```typescript
let receiverID: string = "GUID",
messageType: string = CometChat.MESSAGE_TYPE.IMAGE,

Check warning on line 634 in sdk/react-native/send-message.mdx

View check run for this annotation

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

sdk/react-native/send-message.mdx#L634

Did you really mean 'messageType'?
receiverType: string = CometChat.RECEIVER_TYPE.GROUP,
mediaMessage: CometChat.MediaMessage = new CometChat.MediaMessage(
receiverID,
"",
messageType,

Check warning on line 639 in sdk/react-native/send-message.mdx

View check run for this annotation

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

sdk/react-native/send-message.mdx#L639

Did you really mean 'messageType'?
receiverType
);

Expand Down Expand Up @@ -680,7 +680,7 @@
receiverID,
"",
messageType,
receiverType

Check warning on line 683 in sdk/react-native/send-message.mdx

View check run for this annotation

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

sdk/react-native/send-message.mdx#L683

Did you really mean 'receiverType'?
);

let attachment1 = {
Expand Down Expand Up @@ -724,17 +724,17 @@
<Tab title="TypeScript (User)">
```typescript
let receiverID: string = "UID",
customData: Object = {

Check warning on line 727 in sdk/react-native/send-message.mdx

View check run for this annotation

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

sdk/react-native/send-message.mdx#L727

Did you really mean 'customData'?
latitude: "50.6192171633316",
longitude: "-72.68182268750002",
},
customType: string = "location",

Check warning on line 731 in sdk/react-native/send-message.mdx

View check run for this annotation

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

sdk/react-native/send-message.mdx#L731

Did you really mean 'customType'?
receiverType: string = CometChat.RECEIVER_TYPE.USER,
customMessage: CometChat.CustomMessage = new CometChat.CustomMessage(

Check warning on line 733 in sdk/react-native/send-message.mdx

View check run for this annotation

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

sdk/react-native/send-message.mdx#L733

Did you really mean 'customMessage'?
receiverID,
receiverType,
customType,

Check warning on line 736 in sdk/react-native/send-message.mdx

View check run for this annotation

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

sdk/react-native/send-message.mdx#L736

Did you really mean 'customType'?
customData

Check warning on line 737 in sdk/react-native/send-message.mdx

View check run for this annotation

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

sdk/react-native/send-message.mdx#L737

Did you really mean 'customData'?
);

CometChat.sendCustomMessage(customMessage).then(
Expand Down Expand Up @@ -779,17 +779,17 @@
<Tab title="TypeScript (Group)">
```typescript
let receiverID: string = "GUID",
customData: Object = {

Check warning on line 782 in sdk/react-native/send-message.mdx

View check run for this annotation

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

sdk/react-native/send-message.mdx#L782

Did you really mean 'customData'?
latitude: "50.6192171633316",
longitude: "-72.68182268750002",
},
customType: string = "location",

Check warning on line 786 in sdk/react-native/send-message.mdx

View check run for this annotation

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

sdk/react-native/send-message.mdx#L786

Did you really mean 'customType'?
receiverType: string = CometChat.RECEIVER_TYPE.GROUP,
customMessage: CometChat.CustomMessage = new CometChat.CustomMessage(

Check warning on line 788 in sdk/react-native/send-message.mdx

View check run for this annotation

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

sdk/react-native/send-message.mdx#L788

Did you really mean 'customMessage'?
receiverID,
receiverType,
customType,

Check warning on line 791 in sdk/react-native/send-message.mdx

View check run for this annotation

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

sdk/react-native/send-message.mdx#L791

Did you really mean 'customType'?
customData

Check warning on line 792 in sdk/react-native/send-message.mdx

View check run for this annotation

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

sdk/react-native/send-message.mdx#L792

Did you really mean 'customData'?
);

CometChat.sendCustomMessage(customMessage).then(
Expand Down Expand Up @@ -891,7 +891,7 @@
```typescript
const card: object = cardMessage.getCard(); // raw card schema/payload
const text: string = cardMessage.getText(); // preview text for notifications and the conversation list
const fallbackText: string = cardMessage.getFallbackText(); // shown when the card cannot be rendered

Check warning on line 894 in sdk/react-native/send-message.mdx

View check run for this annotation

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

sdk/react-native/send-message.mdx#L894

Did you really mean 'fallbackText'?
const tags: Array<string> = cardMessage.getTags(); // tags associated with the message
```
</Tab>
Expand All @@ -900,7 +900,7 @@
```javascript
const card = cardMessage.getCard(); // raw card schema/payload
const text = cardMessage.getText(); // preview text for notifications and the conversation list
const fallbackText = cardMessage.getFallbackText(); // shown when the card cannot be rendered

Check warning on line 903 in sdk/react-native/send-message.mdx

View check run for this annotation

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

sdk/react-native/send-message.mdx#L903

Did you really mean 'fallbackText'?
const tags = cardMessage.getTags(); // tags associated with the message
```
</Tab>
Expand Down
4 changes: 2 additions & 2 deletions sdk/reference/messages.mdx
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
---
title: "Messages"
title: "Message class reference for CometChat SDKs"

Check warning on line 2 in sdk/reference/messages.mdx

View check run for this annotation

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

sdk/reference/messages.mdx#L2

Did you really mean 'SDKs'?
sidebarTitle: "Messages"
description: "Class reference for message objects returned by CometChat SDK methods. Covers BaseMessage and its subclasses like TextMessage."
description: "Class reference for message objects returned by CometChat SDK methods, covering BaseMessage and subclasses like TextMessage, MediaMessage, and CardMessage."
---

This page documents the message classes used across all CometChat SDKs. All message objects share the same structure regardless of platform.

Check warning on line 7 in sdk/reference/messages.mdx

View check run for this annotation

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

sdk/reference/messages.mdx#L7

Did you really mean 'SDKs'?

All properties are accessed via getter methods.

Expand All @@ -30,29 +30,29 @@
| Property | Getter | Return Type | Description |
|----------|--------|-------------|-------------|
| id | `getId()` | `number` | Unique message ID |
| conversationId | `getConversationId()` | `string` | ID of the conversation this message belongs to |

Check warning on line 33 in sdk/reference/messages.mdx

View check run for this annotation

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

sdk/reference/messages.mdx#L33

Did you really mean 'conversationId'?
| parentMessageId | `getParentMessageId()` | `number` | ID of the parent message (for threaded messages) |
| muid | `getMuid()` | `string` | Client-generated unique message ID |

Check warning on line 35 in sdk/reference/messages.mdx

View check run for this annotation

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

sdk/reference/messages.mdx#L35

Did you really mean 'muid'?
| sender | `getSender()` | `User` | Sender of the message |
| receiver | `getReceiver()` | `User` \| `Group` | Receiver of the message |
| receiverId | `getReceiverId()` | `string` | UID/GUID of the receiver |

Check warning on line 38 in sdk/reference/messages.mdx

View check run for this annotation

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

sdk/reference/messages.mdx#L38

Did you really mean 'receiverId'?
| type | `getType()` | `string` | Message type (e.g., `"text"`, `"image"`, `"file"`, `"custom"`) |
| receiverType | `getReceiverType()` | `string` | Receiver type (`"user"` or `"group"`) |

Check warning on line 40 in sdk/reference/messages.mdx

View check run for this annotation

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

sdk/reference/messages.mdx#L40

Did you really mean 'receiverType'?
| category | `getCategory()` | `MessageCategory` | Message category (e.g., `"message"`, `"action"`, `"call"`, `"custom"`) |
| sentAt | `getSentAt()` | `number` | Timestamp when the message was sent (epoch seconds) |

Check warning on line 42 in sdk/reference/messages.mdx

View check run for this annotation

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

sdk/reference/messages.mdx#L42

Did you really mean 'sentAt'?
| deliveredAt | `getDeliveredAt()` | `number` | Timestamp when the message was delivered |

Check warning on line 43 in sdk/reference/messages.mdx

View check run for this annotation

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

sdk/reference/messages.mdx#L43

Did you really mean 'deliveredAt'?
| readAt | `getReadAt()` | `number` | Timestamp when the message was read |

Check warning on line 44 in sdk/reference/messages.mdx

View check run for this annotation

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

sdk/reference/messages.mdx#L44

Did you really mean 'readAt'?
| deliveredToMeAt | `getDeliveredToMeAt()` | `number` | Timestamp when the message was delivered to the logged-in user |
| readByMeAt | `getReadByMeAt()` | `number` | Timestamp when the message was read by the logged-in user |
| editedAt | `getEditedAt()` | `number` | Timestamp when the message was edited |

Check warning on line 47 in sdk/reference/messages.mdx

View check run for this annotation

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

sdk/reference/messages.mdx#L47

Did you really mean 'editedAt'?
| editedBy | `getEditedBy()` | `string` | UID of the user who edited the message |

Check warning on line 48 in sdk/reference/messages.mdx

View check run for this annotation

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

sdk/reference/messages.mdx#L48

Did you really mean 'editedBy'?
| deletedAt | `getDeletedAt()` | `number` | Timestamp when the message was deleted |

Check warning on line 49 in sdk/reference/messages.mdx

View check run for this annotation

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

sdk/reference/messages.mdx#L49

Did you really mean 'deletedAt'?
| deletedBy | `getDeletedBy()` | `string` | UID of the user who deleted the message |

Check warning on line 50 in sdk/reference/messages.mdx

View check run for this annotation

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

sdk/reference/messages.mdx#L50

Did you really mean 'deletedBy'?
| replyCount | `getReplyCount()` | `number` | Number of replies to this message |

Check warning on line 51 in sdk/reference/messages.mdx

View check run for this annotation

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

sdk/reference/messages.mdx#L51

Did you really mean 'replyCount'?
| unreadRepliesCount | `getUnreadRepliesCount()` | `number` | Number of unread replies |
| data | `getData()` | `Object` | Raw data payload of the message |
| metadata | `getMetadata()` | `Object` | Custom metadata attached to the message |
| rawMessage | `getRawMessage()` | `Object` | Raw JSON of the message as received from the server |

Check warning on line 55 in sdk/reference/messages.mdx

View check run for this annotation

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

sdk/reference/messages.mdx#L55

Did you really mean 'rawMessage'?

### Conditional Properties

Expand All @@ -61,10 +61,10 @@
| Property | Getter | Return Type | Description |
|----------|--------|-------------|-------------|
| reactions | `getReactions()` | `ReactionCount[]` | Array of reaction counts on the message |
| mentionedUsers | `getMentionedUsers()` | `User[]` | Array of users mentioned in the message |

Check warning on line 64 in sdk/reference/messages.mdx

View check run for this annotation

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

sdk/reference/messages.mdx#L64

Did you really mean 'mentionedUsers'?
| hasMentionedMe | `hasMentionedMe()` | `boolean` | Whether the logged-in user was mentioned in the message |
| quotedMessageId | `getQuotedMessageId()` | `number` | ID of the quoted message (if this is a reply) |
| quotedMessage | `getQuotedMessage()` | `BaseMessage` | The quoted message object (if this is a reply) |

Check warning on line 67 in sdk/reference/messages.mdx

View check run for this annotation

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

sdk/reference/messages.mdx#L67

Did you really mean 'quotedMessage'?

---

Expand All @@ -81,7 +81,7 @@
| text | `getText()` | `string` | The text content of the message |
| metadata | `getMetadata()` | `Object` | Custom metadata attached to the message (includes extension data like data masking, link preview, etc.) |
| data | `getData()` | `Object` | Raw data payload including `text`, `resource`, `metadata`, `moderation`, and `entities` |
| moderationStatus | `getModerationStatus()` | `ModerationStatus` | Moderation status of the message. Returns `"unmoderated"` if not moderated. |

Check warning on line 84 in sdk/reference/messages.mdx

View check run for this annotation

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

sdk/reference/messages.mdx#L84

Did you really mean 'moderationStatus'?

### Conditional Properties

Expand Down Expand Up @@ -109,7 +109,7 @@
| url | `getURL()` | `string` | URL of the media file |
| metadata | `getMetadata()` | `Object` | Custom metadata attached to the message |
| data | `getData()` | `Object` | Raw data payload of the message |
| moderationStatus | `getModerationStatus()` | `ModerationStatus` | Moderation status of the message. Returns `"unmoderated"` if not moderated. |

Check warning on line 112 in sdk/reference/messages.mdx

View check run for this annotation

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

sdk/reference/messages.mdx#L112

Did you really mean 'moderationStatus'?

### Conditional Properties

Expand All @@ -131,11 +131,11 @@

| Property | Getter | Return Type | Description |
|----------|--------|-------------|-------------|
| customData | `getCustomData()` | `Object` | The custom data payload set by the developer |

Check warning on line 134 in sdk/reference/messages.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/reference/messages.mdx#L134

Did you really mean 'customData'?
| subType | `getSubType()` | `string` | Sub type of the custom message |
| conversationText | `getConversationText()` | `string` | Preview text displayed in the conversation list |

Check warning on line 136 in sdk/reference/messages.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/reference/messages.mdx#L136

Did you really mean 'conversationText'?
| updateConversation | `willUpdateConversation()` | `boolean` | Whether this message updates the conversation's last message |

Check warning on line 137 in sdk/reference/messages.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/reference/messages.mdx#L137

Did you really mean 'updateConversation'?
| sendNotification | `willSendNotification()` | `boolean` | Whether a push notification is sent for this message |

Check warning on line 138 in sdk/reference/messages.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/reference/messages.mdx#L138

Did you really mean 'sendNotification'?
| metadata | `getMetadata()` | `Object` | Custom metadata attached to the message |
| data | `getData()` | `Object` | Raw data payload of the message |

Expand All @@ -161,12 +161,12 @@
|----------|--------|-------------|-------------|
| action | `getAction()` | `string` | The action being performed (e.g., `"joined"`, `"left"`, `"kicked"`, `"banned"`) |
| message | `getMessage()` | `string` | The default human-readable action message |
| actionBy | `getActionBy()` | `User` \| `Group` \| `BaseMessage` | The entity that performed the action |

Check warning on line 164 in sdk/reference/messages.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/reference/messages.mdx#L164

Did you really mean 'actionBy'?
| actionOn | `getActionOn()` | `User` \| `Group` \| `BaseMessage` | The entity on which the action was performed |

Check warning on line 165 in sdk/reference/messages.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/reference/messages.mdx#L165

Did you really mean 'actionOn'?
| actionFor | `getActionFor()` | `User` \| `Group` \| `BaseMessage` | The entity for whom the action was performed |

Check warning on line 166 in sdk/reference/messages.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/reference/messages.mdx#L166

Did you really mean 'actionFor'?
| oldScope | `getOldScope()` | `string` | Previous scope of the member (for scope change actions) |

Check warning on line 167 in sdk/reference/messages.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/reference/messages.mdx#L167

Did you really mean 'oldScope'?
| newScope | `getNewScope()` | `string` | New scope of the member (for scope change actions) |

Check warning on line 168 in sdk/reference/messages.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/reference/messages.mdx#L168

Did you really mean 'newScope'?
| rawData | `getRawData()` | `Object` | Raw JSON data of the action message |

Check warning on line 169 in sdk/reference/messages.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/reference/messages.mdx#L169

Did you really mean 'rawData'?
| metadata | `getMetadata()` | `Object` | Custom metadata attached to the action message |

---
Expand All @@ -181,13 +181,13 @@

| Property | Getter | Return Type | Description |
|----------|--------|-------------|-------------|
| sessionId | `getSessionId()` | `string` | Unique session ID of the call |

Check warning on line 184 in sdk/reference/messages.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/reference/messages.mdx#L184

Did you really mean 'sessionId'?
| callInitiator | `getCallInitiator()` | [`User`](/sdk/reference/entities#user) | The user who initiated the call |

Check warning on line 185 in sdk/reference/messages.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/reference/messages.mdx#L185

Did you really mean 'callInitiator'?
| callReceiver | `getCallReceiver()` | [`User`](/sdk/reference/entities#user) \| [`Group`](/sdk/reference/entities#group) | The user or group receiving the call |

Check warning on line 186 in sdk/reference/messages.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/reference/messages.mdx#L186

Did you really mean 'callReceiver'?
| action | `getAction()` | `string` | The call action (e.g., `"initiated"`, `"ongoing"`, `"ended"`, `"cancelled"`, `"rejected"`) |
| initiatedAt | `getInitiatedAt()` | `number` | Timestamp when the call was initiated |

Check warning on line 188 in sdk/reference/messages.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/reference/messages.mdx#L188

Did you really mean 'initiatedAt'?
| joinedAt | `getJoinedAt()` | `number` | Timestamp when the call was joined |

Check warning on line 189 in sdk/reference/messages.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/reference/messages.mdx#L189

Did you really mean 'joinedAt'?
| rawData | `getRawData()` | `Object` | Raw JSON data of the call message |

Check warning on line 190 in sdk/reference/messages.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/reference/messages.mdx#L190

Did you really mean 'rawData'?
| metadata | `getMetadata()` | `Object` | Custom metadata attached to the call message |

---
Expand All @@ -202,15 +202,15 @@

| Property | Getter | Return Type | Description |
|----------|--------|-------------|-------------|
| assistantMessageData | `getAssistantMessageData()` | `AIAssistantMessageData` | The assistant message data containing runId, threadId, and text |

Check warning on line 205 in sdk/reference/messages.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/reference/messages.mdx#L205

Did you really mean 'runId'?

Check warning on line 205 in sdk/reference/messages.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/reference/messages.mdx#L205

Did you really mean 'threadId'?
| elements | `getElements()` | `AIAssistantElement[]` | Ordered content blocks of the reply (text, cards, etc.). Empty array when absent |

### AIAssistantMessageData

| Property | Getter | Return Type | Description |
|----------|--------|-------------|-------------|
| runId | `getRunId()` | `string` | The run ID of the agent execution |

Check warning on line 212 in sdk/reference/messages.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/reference/messages.mdx#L212

Did you really mean 'runId'?
| threadId | `getThreadId()` | `string` | The thread ID of the conversation |

Check warning on line 213 in sdk/reference/messages.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/reference/messages.mdx#L213

Did you really mean 'threadId'?
| text | `getText()` | `string` | The full text of the assistant's reply |

---
Expand Down Expand Up @@ -238,7 +238,7 @@
|----------|--------|-------------|-------------|
| card | `getCard()` | `Object` \| `undefined` | The raw Card Schema JSON object (`data.card`); `undefined` when absent |
| text | `getText()` | `string` | The plain-text content accompanying the card (`data.text`); used as preview text |
| fallbackText | `getFallbackText()` | `string` | Text to display when the card cannot be rendered (`card.fallbackText`) |

Check warning on line 241 in sdk/reference/messages.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/reference/messages.mdx#L241

Did you really mean 'fallbackText'?
| tags | `getTags()` | `string[]` | Tags associated with the message |

---
Expand All @@ -253,14 +253,14 @@

| Property | Getter | Return Type | Description |
|----------|--------|-------------|-------------|
| toolResultMessageData | `getToolResultMessageData()` | `AIToolResultMessageData` | The tool result data containing runId, threadId, text, and toolCallId |

Check warning on line 256 in sdk/reference/messages.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/reference/messages.mdx#L256

Did you really mean 'runId'?

Check warning on line 256 in sdk/reference/messages.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/reference/messages.mdx#L256

Did you really mean 'threadId'?

### AIToolResultMessageData

| Property | Getter | Return Type | Description |
|----------|--------|-------------|-------------|
| runId | `getRunId()` | `string` | The run ID of the agent execution |

Check warning on line 262 in sdk/reference/messages.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/reference/messages.mdx#L262

Did you really mean 'runId'?
| threadId | `getThreadId()` | `string` | The thread ID of the conversation |

Check warning on line 263 in sdk/reference/messages.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/reference/messages.mdx#L263

Did you really mean 'threadId'?
| text | `getText()` | `string` | The text output of the tool |
| toolCallId | `getToolCallId()` | `string` | The ID of the tool call this result belongs to |

Expand All @@ -276,15 +276,15 @@

| Property | Getter | Return Type | Description |
|----------|--------|-------------|-------------|
| toolArgumentMessageData | `getToolArgumentMessageData()` | `AIToolArgumentMessageData` | The tool argument data containing runId, threadId, and toolCalls |

Check warning on line 279 in sdk/reference/messages.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/reference/messages.mdx#L279

Did you really mean 'runId'?

Check warning on line 279 in sdk/reference/messages.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/reference/messages.mdx#L279

Did you really mean 'threadId'?

Check warning on line 279 in sdk/reference/messages.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/reference/messages.mdx#L279

Did you really mean 'toolCalls'?

### AIToolArgumentMessageData

| Property | Getter | Return Type | Description |
|----------|--------|-------------|-------------|
| runId | `getRunId()` | `string` | The run ID of the agent execution |

Check warning on line 285 in sdk/reference/messages.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/reference/messages.mdx#L285

Did you really mean 'runId'?
| threadId | `getThreadId()` | `string` | The thread ID of the conversation |

Check warning on line 286 in sdk/reference/messages.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/reference/messages.mdx#L286

Did you really mean 'threadId'?
| toolCalls | `getToolCalls()` | `AIToolCall[]` | Array of tool calls with their arguments |

Check warning on line 287 in sdk/reference/messages.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/reference/messages.mdx#L287

Did you really mean 'toolCalls'?

### AIToolCall

Expand All @@ -292,8 +292,8 @@
|----------|--------|-------------|-------------|
| id | `getId()` | `string` | Unique tool call ID |
| type | `getType()` | `string` | Type of the tool call |
| displayName | `getDisplayName()` | `string` | Display name of the tool |

Check warning on line 295 in sdk/reference/messages.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/reference/messages.mdx#L295

Did you really mean 'displayName'?
| executionText | `getExecutionText()` | `string` | Execution text for the tool |

Check warning on line 296 in sdk/reference/messages.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/reference/messages.mdx#L296

Did you really mean 'executionText'?
| function | `getFunction()` | `AIToolCallFunction` | The function details (name and arguments) |

### AIToolCallFunction
Expand All @@ -316,8 +316,8 @@
| Property | Getter | Return Type | Description |
|----------|--------|-------------|-------------|
| type | `getType()` | `string` | The event type identifier |
| conversationId | `getConversationId()` | `string` | The conversation ID associated with the event |

Check warning on line 319 in sdk/reference/messages.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/reference/messages.mdx#L319

Did you really mean 'conversationId'?
| messageId | `getMessageId()` | `string` | The message ID associated with the event |

Check warning on line 320 in sdk/reference/messages.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/reference/messages.mdx#L320

Did you really mean 'messageId'?
| parentMessageId | `getParentMessageId()` | `string` | The parent message ID (if in a thread) |
| data | `getData()` | `object` | Additional event-specific data |
| data.timestamp | `getTimestamp()` | `number` | Timestamp of the event |
Expand All @@ -337,8 +337,8 @@
| Property | Getter | Return Type | Description |
|----------|--------|-------------|-------------|
| streamMessageId | `getStreamMessageId()` | `string` | ID correlating the stream events for this card |
| cardId | `getCardId()` | `string` | ID of the card being generated |

Check warning on line 340 in sdk/reference/messages.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/reference/messages.mdx#L340

Did you really mean 'cardId'?
| executionText | `getExecutionText()` | `string` | Text shown while the card is being generated |

Check warning on line 341 in sdk/reference/messages.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/reference/messages.mdx#L341

Did you really mean 'executionText'?

---

Expand All @@ -353,7 +353,7 @@
| Property | Getter | Return Type | Description |
|----------|--------|-------------|-------------|
| streamMessageId | `getStreamMessageId()` | `string` | ID correlating the stream events for this card |
| cardId | `getCardId()` | `string` | ID of the card |

Check warning on line 356 in sdk/reference/messages.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/reference/messages.mdx#L356

Did you really mean 'cardId'?
| card | `getCard()` | `any` | The raw card payload to render; `undefined` when absent |

---
Expand All @@ -369,4 +369,4 @@
| Property | Getter | Return Type | Description |
|----------|--------|-------------|-------------|
| streamMessageId | `getStreamMessageId()` | `string` | ID correlating the stream events for this card |
| cardId | `getCardId()` | `string` | ID of the card that finished generating |

Check warning on line 372 in sdk/reference/messages.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/reference/messages.mdx#L372

Did you really mean 'cardId'?
4 changes: 2 additions & 2 deletions ui-kit/android/v6/call-features.mdx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: "Call"
description: "Add one-on-one and group audio/video calling to your Android app using the CometChat Calls SDK and UI Kit."
title: "Call features in the CometChat Android UI Kit v6"
description: "Add one-on-one and group audio and video calling to your Android app with the CometChat Calls SDK and UI Kit v6, including call setup and event handling."
---

<Accordion title="AI Integration Quick Reference">
Expand All @@ -8,7 +8,7 @@
| Field | Value |
| --- | --- |
| Kotlin (XML Views) | `com.cometchat:chatuikit-kotlin-android` + `com.cometchat:calls-sdk-android` |
| Jetpack Compose | `com.cometchat:chatuikit-compose-android` + `com.cometchat:calls-sdk-android` |

Check warning on line 11 in ui-kit/android/v6/call-features.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

ui-kit/android/v6/call-features.mdx#L11

Did you really mean 'Jetpack'?
| Required setup | `CometChatUIKit.init()` then `CometChatUIKit.login()` — Calls SDK must also be installed |
| Call features | Incoming Call, Outgoing Call, Call Logs, Call Buttons, Ongoing Call |
| Key components | `CometChatCallButtons`, `CometChatIncomingCall`, `CometChatOutgoingCall`, `CometChatCallLogs`, `CometChatOngoingCall` |
Expand Down
4 changes: 2 additions & 2 deletions ui-kit/android/v6/calling-integration.mdx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: "Calling Integration"
description: "Add voice and video calling to your Android UI Kit application using chatuikit-kotlin or chatuikit-jetpack."
title: "Integrate calling in the Android UI Kit v6"
description: "Add voice and video calling to your Android app using the CometChat UI Kit v6 with chatuikit-kotlin or chatuikit-jetpack, including setup and permissions."
---

## Overview
Expand Down
4 changes: 2 additions & 2 deletions ui-kit/android/v6/events.mdx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: "Events"
description: "Listen to UI Kit events for user actions, group changes, messages, and call lifecycle updates using CometChatEvents SharedFlow."
title: "Events in the CometChat Android UI Kit v6"
description: "Listen to CometChat Android UI Kit v6 events for user actions, group changes, message updates, and call lifecycle using the CometChatEvents SharedFlow."
---

<Accordion title="AI Integration Quick Reference">
Expand All @@ -8,7 +8,7 @@
| Field | Value |
| --- | --- |
| Kotlin (XML Views) | `com.cometchat:chatuikit-kotlin-android` |
| Jetpack Compose | `com.cometchat:chatuikit-compose-android` |

Check warning on line 11 in ui-kit/android/v6/events.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

ui-kit/android/v6/events.mdx#L11

Did you really mean 'Jetpack'?
| Import | `com.cometchat.uikit.core.events.CometChatEvents` |
| Event flows | `CometChatEvents.messageEvents`, `CometChatEvents.callEvents`, `CometChatEvents.conversationEvents`, `CometChatEvents.groupEvents`, `CometChatEvents.userEvents`, `CometChatEvents.uiEvents` |
| Pattern | Kotlin `SharedFlow` with sealed class event types — collect in `viewModelScope` or `lifecycleScope` |
Expand Down Expand Up @@ -76,7 +76,7 @@
<Tabs>
<Tab title="Kotlin (XML Views)">
```kotlin
// In an Activity or Fragment — use lifecycleScope

Check warning on line 79 in ui-kit/android/v6/events.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

ui-kit/android/v6/events.mdx#L79

'lifecycleScope' is repeated!

Check warning on line 79 in ui-kit/android/v6/events.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

ui-kit/android/v6/events.mdx#L79

Did you really mean 'lifecycleScope'?
lifecycleScope.launch {
CometChatEvents.messageEvents.collect { event ->
when (event) {
Expand Down Expand Up @@ -517,7 +517,7 @@
</Tab>
</Tabs>

> **About `CardActionClicked`:** The UI Kit renders card bubbles automatically (`CometChatCardBubble`) and emits this event when a user taps an action inside one — so a single subscriber handles every card action across your app. `event.message` is a `CardMessage` for standalone [card messages](/sdk/android/v5/send-message#card-message) and an `AIAssistantMessage` for cards embedded in AI agent replies. `event.actionEvent` is typed `Any`; import and cast it to `com.cometchat.cards.actions.CometChatCardActionEvent` to read its `action`, `elementId`, and `cardJson`.

Check warning on line 520 in ui-kit/android/v6/events.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

ui-kit/android/v6/events.mdx#L520

Did you really mean 'elementId'?

Check warning on line 520 in ui-kit/android/v6/events.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

ui-kit/android/v6/events.mdx#L520

Did you really mean 'cardJson'?

---

Expand All @@ -525,8 +525,8 @@

Since `SharedFlow` collection is coroutine-based, lifecycle management is handled automatically:

- In XML Views, use `lifecycleScope.launch` — the coroutine is cancelled when the lifecycle owner is destroyed.

Check warning on line 528 in ui-kit/android/v6/events.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

ui-kit/android/v6/events.mdx#L528

Did you really mean 'coroutine'?
- In Jetpack Compose, use `LaunchedEffect` — the coroutine is cancelled when the composable leaves the composition.

Check warning on line 529 in ui-kit/android/v6/events.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

ui-kit/android/v6/events.mdx#L529

Did you really mean 'Jetpack'?

Check warning on line 529 in ui-kit/android/v6/events.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

ui-kit/android/v6/events.mdx#L529

Did you really mean 'coroutine'?

Check warning on line 529 in ui-kit/android/v6/events.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

ui-kit/android/v6/events.mdx#L529

Did you really mean 'composable'?

No manual `removeListener` calls are needed, unlike the old static listener pattern.

Expand Down
2 changes: 1 addition & 1 deletion ui-kit/android/v6/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/v6/getting-started-jetpack.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

ui-kit/android/v6/getting-started-jetpack.mdx#L2

Did you really mean 'Jetpack'?
sidebarTitle: "Jetpack Compose"
description: "Step-by-step guide to integrate the CometChat Jetpack Compose UI Kit into your Android app."
description: "Step-by-step guide to integrate the CometChat Jetpack Compose UI Kit v6 into your Android app, covering install, initialization, login, and chat components."

Check warning on line 4 in ui-kit/android/v6/getting-started-jetpack.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

ui-kit/android/v6/getting-started-jetpack.mdx#L4

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/v6/getting-started-jetpack.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

ui-kit/android/v6/getting-started-jetpack.mdx#L12

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 @@ -19,7 +19,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 22 in ui-kit/android/v6/getting-started-jetpack.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

ui-kit/android/v6/getting-started-jetpack.mdx#L22

Did you really mean 'Jetpack'?

Check warning on line 22 in ui-kit/android/v6/getting-started-jetpack.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

ui-kit/android/v6/getting-started-jetpack.mdx#L22

Did you really mean 'composables'?

---

Expand All @@ -37,7 +37,7 @@
- Android Studio (Hedgehog or later recommended)
- An Android emulator or physical device running Android 9.0 (API 28) or higher
- Kotlin configured with Compose compiler plugin
- Gradle plugin 8.0+ with Kotlin DSL

Check warning on line 40 in ui-kit/android/v6/getting-started-jetpack.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

ui-kit/android/v6/getting-started-jetpack.mdx#L40

Did you really mean 'Gradle'?

<Warning>
Auth Key is for development only. In production, generate Auth Tokens server-side via the [REST API](https://api-explorer.cometchat.com/) and use `loginWithAuthToken()`. Never ship Auth Keys in client code.
Expand Down Expand Up @@ -214,7 +214,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/v6/conversation-message-view" icon="comments">
Step-by-step guide to build this layout with Jetpack Compose

Check warning on line 217 in ui-kit/android/v6/getting-started-jetpack.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

ui-kit/android/v6/getting-started-jetpack.mdx#L217

Did you really mean 'Jetpack'?
</Card>

---
Expand Down
2 changes: 1 addition & 1 deletion ui-kit/android/v6/getting-started-kotlin.mdx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: "Getting Started With Kotlin UI Kit"
sidebarTitle: "Kotlin (XML Views)"
description: "Step-by-step guide to integrate the CometChat Kotlin UI Kit with XML Views into your Android app."
description: "Step-by-step guide to integrate the CometChat Kotlin UI Kit v6 with XML Views into your Android app, covering install, initialization, login, and components."
---

<Accordion title="AI Integration Quick Reference">
Expand Down Expand Up @@ -37,7 +37,7 @@
- Android Studio installed
- An Android emulator or physical device running Android 9.0 (API 28) or higher
- Kotlin configured in your project
- Gradle plugin 8.0+ with Kotlin DSL

Check warning on line 40 in ui-kit/android/v6/getting-started-kotlin.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

ui-kit/android/v6/getting-started-kotlin.mdx#L40

Did you really mean 'Gradle'?

<Warning>
Auth Key is for development only. In production, generate Auth Tokens server-side via the [REST API](https://api-explorer.cometchat.com/) and use `loginWithAuthToken()`. Never ship Auth Keys in client code.
Expand Down
2 changes: 1 addition & 1 deletion ui-kit/android/v6/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."
description: "Install, configure, and launch the CometChat Android UI Kit v6 in your app with a choice of Kotlin XML Views or Jetpack Compose integration paths."

Check warning on line 4 in ui-kit/android/v6/getting-started.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

ui-kit/android/v6/getting-started.mdx#L4

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/v6/getting-started.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

ui-kit/android/v6/getting-started.mdx#L12

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 @@ -42,7 +42,7 @@
- Android Studio installed
- An Android emulator or physical device running Android 7.0 (API 24) or higher
- Java 8 or higher
- Gradle plugin 4.0.1 or later

Check warning on line 45 in ui-kit/android/v6/getting-started.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

ui-kit/android/v6/getting-started.mdx#L45

Did you really mean 'Gradle'?

<Warning>
Auth Key is for development only. In production, generate Auth Tokens server-side via the [REST API](https://api-explorer.cometchat.com/) and use [`loginWithAuthToken()`](/ui-kit/android/v6/methods#login-using-auth-token). Never ship Auth Keys in client code.
Expand All @@ -61,7 +61,7 @@

## Step 2 — Install Dependencies

Add the CometChat repository and dependencies to your Gradle configuration.

Check warning on line 64 in ui-kit/android/v6/getting-started.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

ui-kit/android/v6/getting-started.mdx#L64

Did you really mean 'Gradle'?

### Add the CometChat Repository

Expand Down Expand Up @@ -157,7 +157,7 @@

### Add AndroidX Support

The Jetifier tool helps migrate legacy support libraries to AndroidX. Open `gradle.properties` and verify this line is present:

Check warning on line 160 in ui-kit/android/v6/getting-started.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

ui-kit/android/v6/getting-started.mdx#L160

Did you really mean 'Jetifier'?

```properties gradle.properties
android.enableJetifier=true
Expand All @@ -174,7 +174,7 @@
Step-by-step integration using `chatuikit-kotlin` with XML layouts and ViewBinding
</Card>
<Card title="Jetpack Compose" icon="wand-magic-sparkles" href="/ui-kit/android/v6/getting-started-jetpack">
Step-by-step integration using `chatuikit-jetpack` with Composables

Check warning on line 177 in ui-kit/android/v6/getting-started.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

ui-kit/android/v6/getting-started.mdx#L177

Did you really mean 'Composables'?
</Card>
</CardGroup>

Expand Down
4 changes: 2 additions & 2 deletions ui-kit/android/v6/guide-ai-agent.mdx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: "AI Agent Integration"
title: "AI Agent integration in Android UI Kit v6"
sidebarTitle: "AI Agent Integration"
description: "Enable AI-powered conversational assistance with chat history, contextual responses, and seamless handoffs."
description: "Enable AI-powered conversational assistance in your Android app with CometChat UI Kit v6 AI Agents, supporting one-to-one and group agent conversations."
---

<Accordion title="Quick Reference">
Expand All @@ -15,7 +15,7 @@

</Accordion>

Enable intelligent conversational AI capabilities in your Android app using CometChat UIKit v6 with AI Agent integration:

Check warning on line 18 in ui-kit/android/v6/guide-ai-agent.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

ui-kit/android/v6/guide-ai-agent.mdx#L18

Did you really mean 'UIKit'?

- **AI Assistant Chat History**
- **Chat History Management**
Expand Down Expand Up @@ -178,7 +178,7 @@
</LinearLayout>
```

> **Note:** In Jetpack Compose, layout is handled declaratively in the composable function — no XML needed.

Check warning on line 181 in ui-kit/android/v6/guide-ai-agent.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

ui-kit/android/v6/guide-ai-agent.mdx#L181

Did you really mean 'Jetpack'?

Check warning on line 181 in ui-kit/android/v6/guide-ai-agent.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

ui-kit/android/v6/guide-ai-agent.mdx#L181

Did you really mean 'declaratively'?

Check warning on line 181 in ui-kit/android/v6/guide-ai-agent.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

ui-kit/android/v6/guide-ai-agent.mdx#L181

Did you really mean 'composable'?

### Step 3 — Style of Message List & Composer (XML Views only)

Expand All @@ -204,7 +204,7 @@
</style>
```

> **Jetpack Compose:** Pass a custom style object via the `style` parameter on each composable instead of XML styles.

Check warning on line 207 in ui-kit/android/v6/guide-ai-agent.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

ui-kit/android/v6/guide-ai-agent.mdx#L207

Did you really mean 'Jetpack'?

Check warning on line 207 in ui-kit/android/v6/guide-ai-agent.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

ui-kit/android/v6/guide-ai-agent.mdx#L207

Did you really mean 'composable'?

### Step 4 — Initialize click listeners

Expand Down Expand Up @@ -351,7 +351,7 @@
</LinearLayout>
```

> **Note:** In Jetpack Compose, the `CometChatAIAssistantChatHistory` composable is used directly — no XML layout needed.

Check warning on line 354 in ui-kit/android/v6/guide-ai-agent.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

ui-kit/android/v6/guide-ai-agent.mdx#L354

Did you really mean 'Jetpack'?

Check warning on line 354 in ui-kit/android/v6/guide-ai-agent.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

ui-kit/android/v6/guide-ai-agent.mdx#L354

Did you really mean 'composable'?

### Step 7 — Launching AI Chat

Expand Down
Loading
Loading