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

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions sdk/android/v5/additional-message-filtering.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
```java
String UID = "cometchat-uid-1";

MessagesRequest messagesRequest = new MessagesRequest.MessagesRequestBuilder()

Check warning on line 40 in sdk/android/v5/additional-message-filtering.mdx

View check run for this annotation

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

sdk/android/v5/additional-message-filtering.mdx#L40

Did you really mean 'messagesRequest'?
.setLimit(50)
.setUID(UID)
.build();
Expand All @@ -61,7 +61,7 @@
```kotlin
val UID = "cometchat-uid-1"

val messagesRequest = MessagesRequestBuilder()

Check warning on line 64 in sdk/android/v5/additional-message-filtering.mdx

View check run for this annotation

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

sdk/android/v5/additional-message-filtering.mdx#L64

Did you really mean 'messagesRequest'?
.setLimit(50)
.setUID(UID)
.build()
Expand Down Expand Up @@ -92,7 +92,7 @@
<Tabs>
<Tab title="Java">
```java
MessagesRequest messagesRequest = new MessagesRequest.MessagesRequestBuilder()

Check warning on line 95 in sdk/android/v5/additional-message-filtering.mdx

View check run for this annotation

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

sdk/android/v5/additional-message-filtering.mdx#L95

'messagesRequest' is repeated!

Check warning on line 95 in sdk/android/v5/additional-message-filtering.mdx

View check run for this annotation

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

sdk/android/v5/additional-message-filtering.mdx#L95

Did you really mean 'messagesRequest'?
.setUID("cometchat-uid-1")
.setLimit(50)
.build();
Expand All @@ -102,7 +102,7 @@

<Tab title="Kotlin">
```kotlin
val messagesRequest = MessagesRequestBuilder()

Check warning on line 105 in sdk/android/v5/additional-message-filtering.mdx

View check run for this annotation

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

sdk/android/v5/additional-message-filtering.mdx#L105

Did you really mean 'messagesRequest'?
.setUID("cometchat-uid-1")
.setLimit(50)
.build()
Expand All @@ -118,12 +118,12 @@

You can achieve this using the `setGUID()` method. This method takes the GUID of a group for which the conversations are to be fetched. Passing a valid GUID to this method will return all the messages that are a part of the group conversation. Please note that the logged-in user must be a member of the group to fetch the messages for that group.

MessagesRequest messagesRequest = new MessagesRequest.MessagesRequestBuilder() .setGUID("cometchat-guid-1") .setLimit(50) .build();

Check warning on line 121 in sdk/android/v5/additional-message-filtering.mdx

View check run for this annotation

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

sdk/android/v5/additional-message-filtering.mdx#L121

'messagesRequest' is repeated!

Check warning on line 121 in sdk/android/v5/additional-message-filtering.mdx

View check run for this annotation

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

sdk/android/v5/additional-message-filtering.mdx#L121

Did you really mean 'messagesRequest'?

<Tabs>
<Tab title="Java">
```java
MessagesRequest messagesRequest = new MessagesRequest.MessagesRequestBuilder()

Check warning on line 126 in sdk/android/v5/additional-message-filtering.mdx

View check run for this annotation

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

sdk/android/v5/additional-message-filtering.mdx#L126

'messagesRequest' is repeated!

Check warning on line 126 in sdk/android/v5/additional-message-filtering.mdx

View check run for this annotation

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

sdk/android/v5/additional-message-filtering.mdx#L126

Did you really mean 'messagesRequest'?
.setGUID("cometchat-guid-1")
.setLimit(50)
.build();
Expand All @@ -133,7 +133,7 @@

<Tab title="Kotlin">
```kotlin
val messagesRequest = MessagesRequestBuilder()

Check warning on line 136 in sdk/android/v5/additional-message-filtering.mdx

View check run for this annotation

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

sdk/android/v5/additional-message-filtering.mdx#L136

Did you really mean 'messagesRequest'?
.setGUID("cometchat-guid-1")
.setLimit(50)
.build()
Expand All @@ -154,7 +154,7 @@
```java
String UID = "cometchat-uid-1";

MessagesRequest messagesRequest = new MessagesRequest.MessagesRequestBuilder()

Check warning on line 157 in sdk/android/v5/additional-message-filtering.mdx

View check run for this annotation

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

sdk/android/v5/additional-message-filtering.mdx#L157

Did you really mean 'messagesRequest'?
.setMessageId(100)
.setLimit(50)
.setUID(UID)
Expand All @@ -180,7 +180,7 @@
```kotlin
val UID = "cometchat-uid-1"

val messagesRequest = MessagesRequestBuilder()

Check warning on line 183 in sdk/android/v5/additional-message-filtering.mdx

View check run for this annotation

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

sdk/android/v5/additional-message-filtering.mdx#L183

Did you really mean 'messagesRequest'?
.setMessageId(100)
.setLimit(50)
.setUID(UID)
Expand Down Expand Up @@ -217,7 +217,7 @@
```java
String UID = "cometchat-uid-1";

MessagesRequest messagesRequest = new MessagesRequest.MessagesRequestBuilder()

Check warning on line 220 in sdk/android/v5/additional-message-filtering.mdx

View check run for this annotation

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

sdk/android/v5/additional-message-filtering.mdx#L220

Did you really mean 'messagesRequest'?
.setTimestamp(1512687363)
.setLimit(50)
.setUID(UID)
Expand All @@ -243,7 +243,7 @@
```kotlin
val UID = "cometchat-uid-1"

val messagesRequest = MessagesRequestBuilder()

Check warning on line 246 in sdk/android/v5/additional-message-filtering.mdx

View check run for this annotation

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

sdk/android/v5/additional-message-filtering.mdx#L246

Did you really mean 'messagesRequest'?
.setTimestamp(1512687363)
.setLimit(50)
.setUID(UID)
Expand Down Expand Up @@ -280,7 +280,7 @@
```java
String UID = "cometchat-uid-1";

MessagesRequest messagesRequest = new MessagesRequest.MessagesRequestBuilder()

Check warning on line 283 in sdk/android/v5/additional-message-filtering.mdx

View check run for this annotation

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

sdk/android/v5/additional-message-filtering.mdx#L283

Did you really mean 'messagesRequest'?
.setUnread(true)
.setLimit(50)
.setUID(UID)
Expand All @@ -306,7 +306,7 @@
```kotlin
val UID = "cometchat-uid-1"

val messagesRequest = MessagesRequestBuilder()

Check warning on line 309 in sdk/android/v5/additional-message-filtering.mdx

View check run for this annotation

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

sdk/android/v5/additional-message-filtering.mdx#L309

Did you really mean 'messagesRequest'?
.setUnread(true)
.setLimit(50)
.setUID(UID)
Expand Down Expand Up @@ -343,7 +343,7 @@
```java
String UID = "cometchat-uid-1";

MessagesRequest messagesRequest = new MessagesRequest.MessagesRequestBuilder()

Check warning on line 346 in sdk/android/v5/additional-message-filtering.mdx

View check run for this annotation

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

sdk/android/v5/additional-message-filtering.mdx#L346

Did you really mean 'messagesRequest'?
.hideMessagesFromBlockedUsers(true)
.setUID(UID)
.setLimit(50)
Expand All @@ -369,7 +369,7 @@
```kotlin
val UID = "cometchat-uid-1"

val messagesRequest = MessagesRequestBuilder()

Check warning on line 372 in sdk/android/v5/additional-message-filtering.mdx

View check run for this annotation

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

sdk/android/v5/additional-message-filtering.mdx#L372

Did you really mean 'messagesRequest'?
.hideMessagesFromBlockedUsers(true)
.setUID(UID)
.setLimit(50)
Expand Down Expand Up @@ -406,7 +406,7 @@
```java
String UID = "cometchat-uid-1";

MessagesRequest messagesRequest = new MessagesRequest.MessagesRequestBuilder()

Check warning on line 409 in sdk/android/v5/additional-message-filtering.mdx

View check run for this annotation

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

sdk/android/v5/additional-message-filtering.mdx#L409

Did you really mean 'messagesRequest'?
.setUpdatedAfter(1514321321)
.setLimit(50)
.setUID(UID)
Expand All @@ -432,7 +432,7 @@
```kotlin
val UID = "cometchat-uid-1"

val messagesRequest = MessagesRequestBuilder()

Check warning on line 435 in sdk/android/v5/additional-message-filtering.mdx

View check run for this annotation

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

sdk/android/v5/additional-message-filtering.mdx#L435

Did you really mean 'messagesRequest'?
.setUpdatedAfter(1514321321)
.setLimit(50)
.setUID(UID)
Expand Down Expand Up @@ -462,7 +462,7 @@

*In other words, how do I fetch messages that have been updated after a particular date or time*

This can be achieved easily by setting the updatesOnly parameter to true. To do so, you can use the updatesOnly() method. This method takes a boolean input and can be used with the `setUpdatedAfter()` method to get jus the updated messages and not the messages sent/received after the specified time. This method cannot be used independently and always needs to be used with the `setUpdatedAfter()` method.

Check warning on line 465 in sdk/android/v5/additional-message-filtering.mdx

View check run for this annotation

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

sdk/android/v5/additional-message-filtering.mdx#L465

Did you really mean 'updatesOnly'?

<Note>With offline support on, this filter is answered by the server only; the cached page is empty.</Note>

Expand All @@ -471,7 +471,7 @@
```java
String UID = "cometchat-uid-1";

MessagesRequest messagesRequest = new MessagesRequest.MessagesRequestBuilder()

Check warning on line 474 in sdk/android/v5/additional-message-filtering.mdx

View check run for this annotation

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

sdk/android/v5/additional-message-filtering.mdx#L474

Did you really mean 'messagesRequest'?
.setUpdatedAfter(1514321321)
.updatesOnly(true)
.setLimit(50)
Expand Down Expand Up @@ -499,7 +499,7 @@
```kotlin
val UID = "cometchat-uid-1"

val messagesRequest = MessagesRequestBuilder()

Check warning on line 502 in sdk/android/v5/additional-message-filtering.mdx

View check run for this annotation

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

sdk/android/v5/additional-message-filtering.mdx#L502

Did you really mean 'messagesRequest'?
.setUpdatedAfter(1514321321)
.updatesOnly(true)
.setLimit(50)
Expand Down Expand Up @@ -541,7 +541,7 @@
categories.add("message");
categories.add("custom");

MessagesRequest messagesRequest = new MessagesRequest.MessagesRequestBuilder()

Check warning on line 544 in sdk/android/v5/additional-message-filtering.mdx

View check run for this annotation

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

sdk/android/v5/additional-message-filtering.mdx#L544

Did you really mean 'messagesRequest'?
.setCategories(categories)
.setLimit(50)
.setGUID(GUID)
Expand Down Expand Up @@ -573,7 +573,7 @@
categories.add("message")
categories.add("custom")

val messagesRequest = MessagesRequestBuilder()

Check warning on line 576 in sdk/android/v5/additional-message-filtering.mdx

View check run for this annotation

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

sdk/android/v5/additional-message-filtering.mdx#L576

Did you really mean 'messagesRequest'?
.setCategories(categories)
.setLimit(50)
.setUID(UID)
Expand Down Expand Up @@ -622,7 +622,7 @@
types.add("audio");
types.add("file");

MessagesRequest messagesRequest = new MessagesRequest.MessagesRequestBuilder()

Check warning on line 625 in sdk/android/v5/additional-message-filtering.mdx

View check run for this annotation

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

sdk/android/v5/additional-message-filtering.mdx#L625

Did you really mean 'messagesRequest'?
.setCategories(categories)
.setTypes(types)
.setLimit(50)
Expand Down Expand Up @@ -664,7 +664,7 @@
types.add("audio")
types.add("file")

val messagesRequest = MessagesRequestBuilder()

Check warning on line 667 in sdk/android/v5/additional-message-filtering.mdx

View check run for this annotation

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

sdk/android/v5/additional-message-filtering.mdx#L667

Did you really mean 'messagesRequest'?
.setCategories(categories)
.setTypes(types)
.setLimit(50)
Expand Down Expand Up @@ -710,7 +710,7 @@
```java
String UID = "cometchat-uid-1";

MessagesRequest messagesRequest = new MessagesRequest.MessagesRequestBuilder()

Check warning on line 713 in sdk/android/v5/additional-message-filtering.mdx

View check run for this annotation

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

sdk/android/v5/additional-message-filtering.mdx#L713

Did you really mean 'messagesRequest'?
.setLimit(50)
.setUID(UID)
.setParentMessageId(100)
Expand All @@ -735,7 +735,7 @@
<Tab title="Kotlin (User)">
```kotlin
val UID = "cometchat-uid-1"
val messagesRequest = MessagesRequestBuilder()

Check warning on line 738 in sdk/android/v5/additional-message-filtering.mdx

View check run for this annotation

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

sdk/android/v5/additional-message-filtering.mdx#L738

Did you really mean 'messagesRequest'?
.setLimit(50)
.setUID(UID)
.setParentMessageId(100)
Expand All @@ -748,7 +748,7 @@
```kotlin
val GUID = "cometchat-guid-1"

val messagesRequest = MessagesRequestBuilder()

Check warning on line 751 in sdk/android/v5/additional-message-filtering.mdx

View check run for this annotation

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

sdk/android/v5/additional-message-filtering.mdx#L751

Did you really mean 'messagesRequest'?
.setLimit(50)
.setGUID(GUID)
.setParentMessageId(100)
Expand Down Expand Up @@ -785,7 +785,7 @@
```java
String GUID = "cometchat-guid-1";

MessagesRequest messagesRequest = new MessagesRequest.MessagesRequestBuilder()

Check warning on line 788 in sdk/android/v5/additional-message-filtering.mdx

View check run for this annotation

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

sdk/android/v5/additional-message-filtering.mdx#L788

Did you really mean 'messagesRequest'?
.setLimit(50)
.hideReplies(true)
.setGUID(GUID)
Expand All @@ -811,7 +811,7 @@
```kotlin
val GUID = "cometchat-guid-1"

val messagesRequest = MessagesRequestBuilder()

Check warning on line 814 in sdk/android/v5/additional-message-filtering.mdx

View check run for this annotation

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

sdk/android/v5/additional-message-filtering.mdx#L814

Did you really mean 'messagesRequest'?
.setLimit(50)
.hideReplies(true)
.setGUID(GUID)
Expand Down Expand Up @@ -846,7 +846,7 @@
```java
String GUID = "cometchat-guid-1";

MessagesRequest messagesRequest = new MessagesRequest.MessagesRequestBuilder()

Check warning on line 849 in sdk/android/v5/additional-message-filtering.mdx

View check run for this annotation

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

sdk/android/v5/additional-message-filtering.mdx#L849

Did you really mean 'messagesRequest'?
.setLimit(50)
.setGUID(GUID)
.hideDeletedMessages(true)
Expand All @@ -872,7 +872,7 @@
```kotlin
val GUID = "cometchat-guid-1"

val messagesRequest = MessagesRequestBuilder()

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

View check run for this annotation

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

sdk/android/v5/additional-message-filtering.mdx#L875

Did you really mean 'messagesRequest'?
.setLimit(50)
.setGUID(GUID)
.hideDeletedMessages(true)
Expand Down Expand Up @@ -907,7 +907,7 @@
```java
String GUID = "cometchat-guid-1";

MessagesRequest messagesRequest = new MessagesRequest.MessagesRequestBuilder()

Check warning on line 910 in sdk/android/v5/additional-message-filtering.mdx

View check run for this annotation

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

sdk/android/v5/additional-message-filtering.mdx#L910

Did you really mean 'messagesRequest'?
.setLimit(50)
.setGUID(GUID)
.hideQuotedMessages(true)
Expand All @@ -933,7 +933,7 @@
```kotlin
val GUID = "cometchat-guid-1"

val messagesRequest = MessagesRequestBuilder()

Check warning on line 936 in sdk/android/v5/additional-message-filtering.mdx

View check run for this annotation

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

sdk/android/v5/additional-message-filtering.mdx#L936

Did you really mean 'messagesRequest'?
.setLimit(50)
.setGUID(GUID)
.hideQuotedMessages(true)
Expand Down Expand Up @@ -972,7 +972,7 @@
val tags: MutableList<String> = ArrayList()
tags.add("pinned")

val messagesRequest = MessagesRequestBuilder()

Check warning on line 975 in sdk/android/v5/additional-message-filtering.mdx

View check run for this annotation

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

sdk/android/v5/additional-message-filtering.mdx#L975

Did you really mean 'messagesRequest'?
.setLimit(50)
.setUID(UID)
.setTags(tags)
Expand Down Expand Up @@ -1007,7 +1007,7 @@
```kotlin
val UID = "cometchat-uid-1"

val messagesRequest = MessagesRequestBuilder()

Check warning on line 1010 in sdk/android/v5/additional-message-filtering.mdx

View check run for this annotation

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

sdk/android/v5/additional-message-filtering.mdx#L1010

Did you really mean 'messagesRequest'?
.setLimit(50)
.setUID(UID)
.withTags(true)
Expand Down Expand Up @@ -1050,7 +1050,7 @@
```kotlin
val UID = "cometchat-uid-1"

val messagesRequest = MessagesRequestBuilder()

Check warning on line 1053 in sdk/android/v5/additional-message-filtering.mdx

View check run for this annotation

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

sdk/android/v5/additional-message-filtering.mdx#L1053

Did you really mean 'messagesRequest'?
.setLimit(50)
.setUID(UID)
.hasLinks(true)
Expand Down Expand Up @@ -1091,7 +1091,7 @@
```kotlin
val UID = "cometchat-uid-1"

val messagesRequest = MessagesRequestBuilder()

Check warning on line 1094 in sdk/android/v5/additional-message-filtering.mdx

View check run for this annotation

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

sdk/android/v5/additional-message-filtering.mdx#L1094

Did you really mean 'messagesRequest'?
.setLimit(50)
.setUID(UID)
.hasAttachments(true)
Expand Down Expand Up @@ -1132,7 +1132,7 @@
```kotlin
val UID = "cometchat-uid-1"

val messagesRequest = MessagesRequestBuilder()

Check warning on line 1135 in sdk/android/v5/additional-message-filtering.mdx

View check run for this annotation

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

sdk/android/v5/additional-message-filtering.mdx#L1135

Did you really mean 'messagesRequest'?
.setLimit(50)
.setUID(UID)
.hasReactions(true)
Expand Down Expand Up @@ -1173,7 +1173,7 @@
```kotlin
val UID = "cometchat-uid-1"

val messagesRequest = MessagesRequestBuilder()

Check warning on line 1176 in sdk/android/v5/additional-message-filtering.mdx

View check run for this annotation

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

sdk/android/v5/additional-message-filtering.mdx#L1176

Did you really mean 'messagesRequest'?
.setLimit(50)
.setUID(UID)
.hasMentions(true)
Expand Down Expand Up @@ -1215,10 +1215,10 @@
<Tab title="Kotlin">
```kotlin
val UID = "cometchat-uid-1"
val mentionedUIDs: MutableList<String> = ArrayList()

Check warning on line 1218 in sdk/android/v5/additional-message-filtering.mdx

View check run for this annotation

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

sdk/android/v5/additional-message-filtering.mdx#L1218

Did you really mean 'mentionedUIDs'?
mentionedUIDs.add("cometchat-uid-1")

val messagesRequest = MessagesRequestBuilder()

Check warning on line 1221 in sdk/android/v5/additional-message-filtering.mdx

View check run for this annotation

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

sdk/android/v5/additional-message-filtering.mdx#L1221

Did you really mean 'messagesRequest'?
.setLimit(50)
.setUID(UID)
.setMentionedUIDs(mentionedUIDs)
Expand Down Expand Up @@ -1261,11 +1261,11 @@
<Tab title="Kotlin">
```kotlin
val UID = "cometchat-uid-1"
val attachmentTypes: MutableList<AttachmentType> = ArrayList()

Check warning on line 1264 in sdk/android/v5/additional-message-filtering.mdx

View check run for this annotation

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

sdk/android/v5/additional-message-filtering.mdx#L1264

Did you really mean 'attachmentTypes'?
attachmentTypes.add(AttachmentType.FILE)
attachmentTypes.add(AttachmentType.IMAGE)

val messagesRequest = MessagesRequestBuilder()

Check warning on line 1268 in sdk/android/v5/additional-message-filtering.mdx

View check run for this annotation

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

sdk/android/v5/additional-message-filtering.mdx#L1268

Did you really mean 'messagesRequest'?
.setLimit(50)
.setUID(UID)
.setAttachmentTypes(attachmentTypes)
Expand Down Expand Up @@ -1302,7 +1302,7 @@
```java
String GUID = "cometchat-guid-1";

MessagesRequest messagesRequest = new MessagesRequest.MessagesRequestBuilder()

Check warning on line 1305 in sdk/android/v5/additional-message-filtering.mdx

View check run for this annotation

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

sdk/android/v5/additional-message-filtering.mdx#L1305

Did you really mean 'messagesRequest'?
.setPinned(true)
.setLimit(50)
.setGUID(GUID)
Expand All @@ -1328,7 +1328,7 @@
```kotlin
val GUID = "cometchat-guid-1"

val messagesRequest = MessagesRequestBuilder()

Check warning on line 1331 in sdk/android/v5/additional-message-filtering.mdx

View check run for this annotation

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

sdk/android/v5/additional-message-filtering.mdx#L1331

Did you really mean 'messagesRequest'?
.setPinned(true)
.setLimit(50)
.setGUID(GUID)
Expand Down Expand Up @@ -1362,7 +1362,7 @@

<Tab title="Kotlin">
```kotlin
val messagesRequest = MessagesRequestBuilder()

Check warning on line 1365 in sdk/android/v5/additional-message-filtering.mdx

View check run for this annotation

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

sdk/android/v5/additional-message-filtering.mdx#L1365

Did you really mean 'messagesRequest'?
.setSaved(true)
.setLimit(50)
.build()
Expand All @@ -1372,7 +1372,7 @@

</Tabs>

For the full save workflow — saving, unsaving, limits and real-time events — see [Save A Message](/sdk/android/v5/save-message).

Check warning on line 1375 in sdk/android/v5/additional-message-filtering.mdx

View check run for this annotation

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

sdk/android/v5/additional-message-filtering.mdx#L1375

Did you really mean 'unsaving'?

## Offline Behaviour

Expand Down Expand Up @@ -1401,6 +1401,8 @@
| `setMentionedUIDs(List)` | Cached |
| `setPinned(boolean)` | Cached |
| `setSaved(boolean)` | Cached |
| `setMessageId(long)` | Cached. The server page is always shown, but it is saved to the cache only when it connects to (borders or overlaps) the cached history; this also applies to filtered and thread lists |
| `setTimestamp(long)` | Cached. The server page is always shown, but it is saved to the cache only when it connects to (borders or overlaps) the cached history; this also applies to filtered and thread lists |

`setPinned` and `setSaved` are served from separate pinned and saved stores, not the message cache, so the other filters in this table do not apply to a pinned or saved read.

Expand Down
2 changes: 1 addition & 1 deletion sdk/android/v5/block-users.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@
<Tabs>
<Tab title="Java">
```java
BlockedUsersRequest blockedUsersRequest = new BlockedUsersRequest.BlockedUsersRequestBuilder()

Check warning on line 129 in sdk/android/v5/block-users.mdx

View check run for this annotation

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

sdk/android/v5/block-users.mdx#L129

'blockedUsersRequest' is repeated!
.setLimit(10)
.build();
```
Expand All @@ -153,7 +153,7 @@
<Tabs>
<Tab title="Java">
```java
BlockedUsersRequest blockedUsersRequest = new BlockedUsersRequest.BlockedUsersRequestBuilder()

Check warning on line 156 in sdk/android/v5/block-users.mdx

View check run for this annotation

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

sdk/android/v5/block-users.mdx#L156

'blockedUsersRequest' is repeated!
.setSearchKeyword("abc")
.build();
```
Expand All @@ -180,7 +180,7 @@
<Tabs>
<Tab title="Java">
```java
BlockedUsersRequest blockedUsersRequest = new BlockedUsersRequest.BlockedUsersRequestBuilder()

Check warning on line 183 in sdk/android/v5/block-users.mdx

View check run for this annotation

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

sdk/android/v5/block-users.mdx#L183

'blockedUsersRequest' is repeated!
.setDirection(BlockedUsersRequest.DIRECTION_BLOCKED_BY_ME)
.build();
```
Expand All @@ -207,7 +207,7 @@
<Tabs>
<Tab title="Java">
```java
BlockedUsersRequest blockedUsersRequest = new BlockedUsersRequest.BlockedUsersRequestBuilder().setLimit(10).build();

Check warning on line 210 in sdk/android/v5/block-users.mdx

View check run for this annotation

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

sdk/android/v5/block-users.mdx#L210

'blockedUsersRequest' is repeated!

blockedUsersRequest.fetchNext(new CometChat.UserFetchListener() {
@Override
Expand Down Expand Up @@ -266,7 +266,7 @@

## Offline Behaviour

With offline support enabled, `BlockedUsersRequest.fetchNext()` on a `UserFetchListener` first delivers `onCachedUsers` from the SDK's own blocked-users list, which it refreshes on login and on reconnect and updates when you call `blockUsers()` or `unblockUsers()`. Then `onServerUsers` delivers the live page to reconcile by `uid`; the server page is not saved to the device. The cached page is empty when no users are blocked or when `setSearchKeyword` is set. Offline, the read ends with `onError` with code `ERROR_INTERNET_UNAVAILABLE` after the cached page. See [Show Cached Data](/sdk/android/v5/offline-cached-data).
With offline support enabled, `BlockedUsersRequest.fetchNext()` on a `UserFetchListener` first delivers `onCachedUsers` from the SDK's own blocked-users list, which it refreshes on login and on reconnect and updates when you call `blockUsers()` or `unblockUsers()`. Then `onServerUsers` delivers the live page to reconcile by `uid`; the server page is not saved to the device. The cached page is empty when no users are blocked or when `setSearchKeyword` is set. Offline, the read ends with `onError` with code `ERROR_INTERNET_UNAVAILABLE` after the cached page. A second `fetchNext()` made while the first is still loading returns an empty page at once, online or offline, without a cached page and without moving to the next page. See [Show Cached Data](/sdk/android/v5/offline-cached-data).

| Builder method | Offline |
|---|---|
Expand Down
2 changes: 1 addition & 1 deletion sdk/android/v5/delete-group.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ description: "Only a group admin can remove it, and this page shows the single p
To delete a group you need to use the `deleteGroup()` method. The user must be an **Admin** of the group they are trying to delete.

<Note>
Deleting a group needs a connection — with offline support enabled, `deleteGroup()` is **not** queued for later. After it succeeds, the group's conversation and cached messages are removed from the on-device cache when the group-deleted event arrives or at the next reconnect sync; any messages still queued to it are then reported as failed with reason `DISCARDED`. See [Send While Offline](/sdk/android/v5/offline-send).
Deleting a group needs a connection — with offline support enabled, `deleteGroup()` is **not** queued for later. After it succeeds, the SDK removes the group's conversation, messages, media, queued messages, pins and saved messages from the on-device cache; any messages still queued to it are reported as failed with reason `DISCARDED`. See [Send While Offline](/sdk/android/v5/offline-send).
</Note>

<Tabs>
Expand Down
2 changes: 1 addition & 1 deletion sdk/android/v5/offline-cached-data.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ After a successful server response, the SDK delivers the server's copy for the *

Two rules follow from this:

- **Offline, the read ends with an error.** After the cached page, a read that gets no answer because the device is offline settles with `onError`, code `ERROR_INTERNET_UNAVAILABLE`. A real server error reaches `onError` unchanged. The call always settles, as long as you wait for each fetch to return before starting the next one on the same request object.
- **Offline, the read ends with an error.** After the cached page, a read that gets no answer because the device is offline settles with `onError`, code `ERROR_INTERNET_UNAVAILABLE`. A real server error reaches `onError` unchanged. The call always settles, as long as you wait for each fetch to return before starting the next one on the same request object. On a `ConversationsRequest` or `BlockedUsersRequest`, a second `fetchNext()` made while the first is still loading returns an empty page at once, online or offline, without a cached page and without moving to the next page.
- **The server phase never fires offline.** It fires only on a genuine server response. Never treat a cached page as "end of history"; an empty cached page only means the end of the *cached* window.

<Note>
Expand Down
4 changes: 2 additions & 2 deletions sdk/android/v5/offline-enable.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -34,17 +34,17 @@
<Steps>

<Step title="Requirements">
Offline support requires CometChat Android SDK **5.1.0** or later (minSdk 21). Add or update the dependency:

Check warning on line 37 in sdk/android/v5/offline-enable.mdx

View check run for this annotation

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

sdk/android/v5/offline-enable.mdx#L37

Did you really mean 'minSdk'?

<Tabs>
<Tab title="Groovy">
```groovy
implementation "com.cometchat:chat-sdk-android:5.1.0"
implementation "com.cometchat:chat-sdk-android:5.1.2"
```
</Tab>
<Tab title="Kotlin DSL">
```kotlin
implementation("com.cometchat:chat-sdk-android:5.1.0")
implementation("com.cometchat:chat-sdk-android:5.1.2")
```
</Tab>
</Tabs>
Expand All @@ -58,14 +58,14 @@
<Tabs>
<Tab title="Java">
```java
OfflineConfig offlineConfig = new OfflineConfig.Builder()

Check warning on line 61 in sdk/android/v5/offline-enable.mdx

View check run for this annotation

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

sdk/android/v5/offline-enable.mdx#L61

'offlineConfig' is repeated!

Check warning on line 61 in sdk/android/v5/offline-enable.mdx

View check run for this annotation

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

sdk/android/v5/offline-enable.mdx#L61

Did you really mean 'offlineConfig'?
.enabled(true)
.build();
```
</Tab>
<Tab title="Kotlin">
```kotlin
val offlineConfig = OfflineConfig.Builder()

Check warning on line 68 in sdk/android/v5/offline-enable.mdx

View check run for this annotation

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

sdk/android/v5/offline-enable.mdx#L68

Did you really mean 'offlineConfig'?
.enabled(true)
.build()
```
Expand All @@ -79,7 +79,7 @@
<Tabs>
<Tab title="Java">
```java
AppSettings appSettings = new AppSettings.AppSettingsBuilder()

Check warning on line 82 in sdk/android/v5/offline-enable.mdx

View check run for this annotation

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

sdk/android/v5/offline-enable.mdx#L82

'appSettings' is repeated!

Check warning on line 82 in sdk/android/v5/offline-enable.mdx

View check run for this annotation

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

sdk/android/v5/offline-enable.mdx#L82

Did you really mean 'appSettings'?
.setRegion("REGION")
.setOfflineConfig(offlineConfig) // explicit config
// .offline(true) // shorthand: enable with defaults
Expand All @@ -88,7 +88,7 @@
</Tab>
<Tab title="Kotlin">
```kotlin
val appSettings = AppSettings.AppSettingsBuilder()

Check warning on line 91 in sdk/android/v5/offline-enable.mdx

View check run for this annotation

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

sdk/android/v5/offline-enable.mdx#L91

Did you really mean 'appSettings'?
.setRegion("REGION")
.setOfflineConfig(offlineConfig) // explicit config
// .offline(true) // shorthand: enable with defaults
Expand All @@ -108,7 +108,7 @@
<Tabs>
<Tab title="Java">
```java
CometChat.init(context, "APP_ID", appSettings, new CometChat.CallbackListener<String>() {

Check warning on line 111 in sdk/android/v5/offline-enable.mdx

View check run for this annotation

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

sdk/android/v5/offline-enable.mdx#L111

Did you really mean 'appSettings'?
@Override
public void onSuccess(String successMessage) {
Log.d(TAG, "Initialization completed successfully");
Expand Down Expand Up @@ -160,4 +160,4 @@

## Next steps

Offline support is now active for the logged-in user. Continue with [Show Cached Data](/sdk/android/v5/offline-cached-data) to adopt the new fetch listeners, and [Send While Offline](/sdk/android/v5/offline-send) for the durable outbox. Tune caps, TTLs, media, and encryption from the [Configuration & API Reference](/sdk/android/v5/offline-reference).

Check warning on line 163 in sdk/android/v5/offline-enable.mdx

View check run for this annotation

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

sdk/android/v5/offline-enable.mdx#L163

Did you really mean 'TTLs'?
2 changes: 1 addition & 1 deletion sdk/android/v5/offline-media-caching.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -25,21 +25,21 @@

// Download on demand
CometChat.downloadMedia(attachment, object : MediaCallbackListener {
override fun onSuccess(localPath: String?) { }

Check warning on line 28 in sdk/android/v5/offline-media-caching.mdx

View check run for this annotation

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

sdk/android/v5/offline-media-caching.mdx#L28

Did you really mean 'localPath'?
override fun onProgress(percent: Int) { }
override fun onError(e: CometChatException) { }
})

// Observe background (AUTO) downloads
CometChat.addMediaDownloadListener("MEDIA_LISTENER", object : MediaDownloadListener {
override fun onMediaDownloaded(messageLocalId: String?, attachmentId: String?, localPath: String?) { }

Check warning on line 35 in sdk/android/v5/offline-media-caching.mdx

View check run for this annotation

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

sdk/android/v5/offline-media-caching.mdx#L35

Did you really mean 'localPath'?
override fun onMediaDownloadFailed(messageLocalId: String?, attachmentId: String?, error: CometChatException?) { }
})
```

</Accordion>

With offline support on, the SDK can cache attachment bytes durably on the device so media stays viewable offline — even after the server's presigned URL has expired. This page covers the caching modes, what downloads automatically, how to read cached bytes, and how to download media on demand.

Check warning on line 42 in sdk/android/v5/offline-media-caching.mdx

View check run for this annotation

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

sdk/android/v5/offline-media-caching.mdx#L42

Did you really mean 'presigned'?

<Note>

Expand All @@ -61,7 +61,7 @@
<Tabs>
<Tab title="Java">
```java
OfflineConfig offlineConfig = new OfflineConfig.Builder()

Check warning on line 64 in sdk/android/v5/offline-media-caching.mdx

View check run for this annotation

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

sdk/android/v5/offline-media-caching.mdx#L64

'offlineConfig' is repeated!

Check warning on line 64 in sdk/android/v5/offline-media-caching.mdx

View check run for this annotation

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

sdk/android/v5/offline-media-caching.mdx#L64

Did you really mean 'offlineConfig'?
.enabled(true)
.mediaCaching(MediaCachingMode.AUTO)
.maxMediaCacheSize(500L * 1024 * 1024)
Expand All @@ -72,7 +72,7 @@

<Tab title="Kotlin">
```kotlin
val offlineConfig = OfflineConfig.Builder()

Check warning on line 75 in sdk/android/v5/offline-media-caching.mdx

View check run for this annotation

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

sdk/android/v5/offline-media-caching.mdx#L75

Did you really mean 'offlineConfig'?
.enabled(true)
.mediaCaching(MediaCachingMode.AUTO)
.maxMediaCacheSize(500L * 1024 * 1024)
Expand All @@ -88,7 +88,7 @@

In `AUTO` mode, media bytes are downloaded and cached automatically on the two live receive paths:

- a **realtime** media message received while connected, and

Check warning on line 91 in sdk/android/v5/offline-media-caching.mdx

View check run for this annotation

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

sdk/android/v5/offline-media-caching.mdx#L91

Did you really mean 'realtime'?
- opening a chat **online** (the server read refreshes and caches its media).

A media message that arrives through a reconnect catch-up [sync](/sdk/android/v5/offline-sync) is cached as **metadata only** and renders as a placeholder; its bytes download lazily the next time you open that chat online. This holds in both `AUTO` and `OFF`.
Expand All @@ -102,9 +102,9 @@
<Tabs>
<Tab title="Java">
```java
Attachment attachment = mediaMessage.getAttachment();

Check warning on line 105 in sdk/android/v5/offline-media-caching.mdx

View check run for this annotation

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

sdk/android/v5/offline-media-caching.mdx#L105

'attachment' is repeated!
String localPath = attachment.getLocalPath(); // non-null when bytes are cached
if (localPath != null) {

Check warning on line 107 in sdk/android/v5/offline-media-caching.mdx

View check run for this annotation

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

sdk/android/v5/offline-media-caching.mdx#L107

Did you really mean 'localPath'?
// Render directly from disk — no network fetch.
}
```
Expand Down Expand Up @@ -242,6 +242,6 @@

## Media cache size limit

Cached media bytes are bounded by `maxMediaCacheSize` (default **500 MB**; `0` means unlimited). When the cache exceeds the limit, the least recently accessed media is deleted first until it is back under budget. Media for un-sent (queued) messages is never evicted, though it still counts toward the budget; copies held for an in-progress upload are excluded from the budget. Because protected media is never evicted, the cache can briefly exceed `maxMediaCacheSize`. Bulk list loads and syncs do not refresh an item's recency.
Cached media bytes are bounded by `maxMediaCacheSize` (default **500 MB**; `0` means unlimited). When the cache exceeds the limit, the least recently accessed media is deleted first until it is back under budget. Media for un-sent (queued) messages and copies held for an in-progress upload are never evicted and do not count toward the budget. Because this protected media is never evicted, the media on disk can briefly exceed `maxMediaCacheSize`. Bulk list loads and syncs do not refresh an item's recency.

Media is stored as files in durable, backup-excluded storage; the location is not configurable. Eviction runs silently in the background — there is no cache-limit callback. To reason about size, use `CometChat.getCacheSize()` and the configured limits. See the [configuration reference](/sdk/android/v5/offline-reference) for the full set of options.
2 changes: 1 addition & 1 deletion sdk/android/v5/offline-reference.mdx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: "Offline Configuration & API Reference"
sidebarTitle: "Configuration & API Reference"
description: "A complete reference for the offline configuration options, public methods, listeners, enums, model fields, and error codes with the CometChat Android SDK."

Check warning on line 4 in sdk/android/v5/offline-reference.mdx

View check run for this annotation

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

sdk/android/v5/offline-reference.mdx#L4

Did you really mean 'enums'?
---

{/* TL;DR for Agents and Quick Reference */}
Expand Down Expand Up @@ -32,7 +32,7 @@

</Accordion>

This page is the full surface of CometChat's offline support on Android: configuration options, public methods, listeners, enums, model fields, and error codes. The minimum SDK version is **5.1.0**, and offline support is **off by default**. For task-focused guides see [Enable Offline Support](/sdk/android/v5/offline-enable), [Show Cached Data](/sdk/android/v5/offline-cached-data), [Send While Offline](/sdk/android/v5/offline-send), [Stay in Sync](/sdk/android/v5/offline-sync), [Media Caching](/sdk/android/v5/offline-media-caching), and [Encrypt the Cache](/sdk/android/v5/offline-encryption).

Check warning on line 35 in sdk/android/v5/offline-reference.mdx

View check run for this annotation

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

sdk/android/v5/offline-reference.mdx#L35

Did you really mean 'enums'?

## OfflineConfig options

Expand Down Expand Up @@ -68,7 +68,7 @@
| `retryMessage(String localMessageId, MessageSentListener)` | `void` | Retry one failed message by its local id. |
| `retryAllFailedMessages(MessageSentListener)` | `void` | Retry the failed messages whose failure was transient; permanent failures are skipped — discard them with `discardLocalMessage`. |
| `discardLocalMessage(String localMessageId, CallbackListener<String>)` | `void` | Remove one unsent message from the outbox. |
| `forceSyncNow()` | `void` | Request a catch-up sync. Silently dropped if a sync is already running or one ran within the cooldown window, and a no-op when offline is not active. Use the callback overload to learn why a sync did not start. |

Check warning on line 71 in sdk/android/v5/offline-reference.mdx

View check run for this annotation

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

sdk/android/v5/offline-reference.mdx#L71

Did you really mean 'cooldown'?
| `forceSyncNow(CallbackListener<String>)` | `void` | Same, with a callback that reports why a manual sync did not start. |
| `getSyncState()` | `SyncState` | Whether a catch-up sweep is currently running. |
| `getLastSyncTimestamp()` | `long` | Server time of the last successful sync, in epoch seconds. |
Expand Down Expand Up @@ -127,13 +127,13 @@
| `MediaDownloadListener` | `onMediaDownloaded(String messageLocalId, String attachmentId, String localPath)`, `onMediaDownloadFailed(String messageLocalId, String attachmentId, CometChatException)` |
| `MessageListener` | `onMessagesSynced(List<BaseMessage>)` (offline addition to the existing listener) |

## Enums

Check warning on line 130 in sdk/android/v5/offline-reference.mdx

View check run for this annotation

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

sdk/android/v5/offline-reference.mdx#L130

Did you really mean 'Enums'?

| Enum | Values |
|---|---|
| `MediaCachingMode` | `AUTO` (auto-download + retain received media), `OFF` (skip auto-download; metadata still cached) |
| `PendingMessageOverflowPolicy` | `DROP_OLDEST` (evict the oldest pending to admit a newer send), `REJECT_NEWEST` (reject the new send) |
| `EncryptionFailureBehavior` | `ONLINE_ONLY` (server-only; never plaintext), `PLAINTEXT_FALLBACK` (open an unencrypted cache) |

Check warning on line 136 in sdk/android/v5/offline-reference.mdx

View check run for this annotation

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

sdk/android/v5/offline-reference.mdx#L136

Did you really mean 'plaintext'?

Check warning on line 136 in sdk/android/v5/offline-reference.mdx

View check run for this annotation

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

sdk/android/v5/offline-reference.mdx#L136

Did you really mean 'unencrypted'?
| `MessageStatus` | `PENDING`, `SENDING`, `SENT`, `DELIVERED`, `READ`, `FAILED` |
| `MessageFailureReason` | `TRANSIENT` (retry likely helps), `PERMANENT` (retry won't help), `QUEUE_OVERFLOW` (evicted to admit a newer send), `QUEUE_FULL` (new send rejected, queue full), `BYTE_OVERFLOW` (media exceeded the byte cap), `DISCARDED` (removed before it could send) |
| `SyncOutcome` | `CAUGHT_UP` (gap replayed exactly), `PARTIAL` (a page was ingested but more remains) |
Expand All @@ -145,7 +145,7 @@

| Field | Type | Meaning |
|---|---|---|
| `BaseMessage.getLocalMessageId()` | `String` | SDK-generated local handle for an optimistic/offline send; the stable key to reconcile the row when the server ack arrives. `null` for messages that never went through the outbox. |

Check warning on line 148 in sdk/android/v5/offline-reference.mdx

View check run for this annotation

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

sdk/android/v5/offline-reference.mdx#L148

Did you really mean 'ack'?
| `BaseMessage.getStatus()` | `MessageStatus` | Lifecycle status of the message. |
| `BaseMessage.getFailureReason()` | `MessageFailureReason` | Why the message failed; set only while `FAILED`, otherwise `null`. |
| `Attachment.getLocalPath()` | `String` | Absolute device path to cached media bytes, or `null` when not cached. Never sent to the server. |
Expand All @@ -158,11 +158,11 @@
|---|---|
| `ERROR_INTERNET_UNAVAILABLE` | A read reached the server phase with no connection (fires after the cached page on a two-phase fetch). |
| `ERROR_OFFLINE_SYNC_IN_PROGRESS` | `forceSyncNow(callback)` was called while a sync is already running. |
| `ERROR_OFFLINE_SYNC_COOLDOWN` | `forceSyncNow(callback)` was called within the throttle cooldown. |

Check warning on line 161 in sdk/android/v5/offline-reference.mdx

View check run for this annotation

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

sdk/android/v5/offline-reference.mdx#L161

Did you really mean 'cooldown'?
| `ERROR_OFFLINE_DISABLED` | An offline-only operation was called while offline support is not active. |
| `ERROR_OFFLINE_MESSAGE_DISCARDED` | A queued message was removed before it could send. |
| `ERROR_OFFLINE_MESSAGE_IN_FLIGHT` | `retryMessage` / `discardLocalMessage` targeted a message that is still being sent. |
| `ERROR_OFFLINE_MESSAGE_NOT_FOUND` | `retryMessage` / `discardLocalMessage` found no unsent message with the given local id. |
| `ERROR_OFFLINE_MESSAGE_NOT_FOUND` | `retryMessage` / `discardLocalMessage` found no unsent message with the given local id, or the id was `null`. |
| `ERROR_OFFLINE_MESSAGE_PERSIST_FAILED` | The local cache was briefly unavailable, so `getPendingMessages`, `retryMessage`, `retryAllFailedMessages` or `discardLocalMessage` changed nothing. Try again. |
| `ERROR_PENDING_QUEUE_LIMIT` | A send was refused because the outbox is full or the media is too large; the reason is `QUEUE_FULL` or `BYTE_OVERFLOW`. |
| `ERROR_OFFLINE_MEDIA_COPY_FAILED` | A media send could not be queued because its file could not be copied; the reason is `PERMANENT`. |
Expand Down
6 changes: 3 additions & 3 deletions sdk/android/v5/offline-send.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
<Tabs>
<Tab title="Java">
```java
TextMessage textMessage = new TextMessage("UID", "Hello!", CometChatConstants.RECEIVER_TYPE_USER);

Check warning on line 58 in sdk/android/v5/offline-send.mdx

View check run for this annotation

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

sdk/android/v5/offline-send.mdx#L58

'textMessage' is repeated!

Check warning on line 58 in sdk/android/v5/offline-send.mdx

View check run for this annotation

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

sdk/android/v5/offline-send.mdx#L58

Did you really mean 'textMessage'?

CometChat.sendMessage(textMessage, new CometChat.MessageSentListener() {
@Override
Expand Down Expand Up @@ -178,7 +178,7 @@

Every message exposes its offline state. `getLocalMessageId()` returns the SDK-generated handle that is stamped at compose (while offline is running) and stays stable across the whole lifecycle — use it to retry or discard the message.

| Accessor | Type | Notes |

Check warning on line 181 in sdk/android/v5/offline-send.mdx

View check run for this annotation

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

sdk/android/v5/offline-send.mdx#L181

Did you really mean 'Accessor'?
|---|---|---|
| `getLocalMessageId()` | `String` | Client handle; present while offline is running. |
| `getStatus()` | `MessageStatus` | `PENDING`, `SENDING`, `SENT`, `DELIVERED`, `READ`, `FAILED`. |
Expand All @@ -188,11 +188,11 @@

| Reason | When |
|---|---|
| `TRANSIENT` | A temporary server error (5xx, or 429 rate-limited), no answer after 5 automatic reconnect attempts, or, with `autoSendPendingOnReconnect` off, no answer at all. Retryable. |

Check warning on line 191 in sdk/android/v5/offline-send.mdx

View check run for this annotation

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

sdk/android/v5/offline-send.mdx#L191

Did you really mean 'Retryable'?
| `PERMANENT` | The server rejected the message, or the error was not recognized. A manual retry will not help. |
| `QUEUE_FULL` | A new send was refused because the queue is full (count cap). |
| `QUEUE_OVERFLOW` | An older queued message was evicted to admit a newer one (`DROP_OLDEST` only). |
| `BYTE_OVERFLOW` | A media send was refused because caching its bytes would exceed `maxMediaCacheSize`, the budget for the whole media cache (received and queued media). |
| `BYTE_OVERFLOW` | A media send was refused because its bytes would not fit within `maxMediaCacheSize`, the budget for cached media, even after evicting the least recently used cached media. Media of queued messages does not count toward this budget. |
| `DISCARDED` | A queued message was removed before it could send: by `clearOfflineCache`, by leaving or deleting its conversation, or by logout. Reported with code `ERROR_OFFLINE_MESSAGE_DISCARDED`. (`discardLocalMessage` reports `onSuccess` instead.) |

## Inspect the Queue
Expand Down Expand Up @@ -331,13 +331,13 @@
| Error code | Reason |
|---|---|
| `ERROR_OFFLINE_MESSAGE_IN_FLIGHT` | The message is already sending (`SENDING`). |
| `ERROR_OFFLINE_MESSAGE_NOT_FOUND` | No unsent message has that id (unknown, or already sent). |
| `ERROR_OFFLINE_MESSAGE_NOT_FOUND` | No unsent message has that id (`null`, unknown, or already sent). |
| `ERROR_OFFLINE_DISABLED` | Offline support is not running. |
| `ERROR_OFFLINE_MESSAGE_PERSIST_FAILED` | The local cache was briefly unavailable. Try again. |

## Auto-send on Reconnect

By default, queued `PENDING` messages are sent automatically when the realtime connection is re-established. This is controlled by `OfflineConfig.autoSendPendingOnReconnect` (default `true`); see [Enable Offline Support](/sdk/android/v5/offline-enable) and the [reference](/sdk/android/v5/offline-reference). A queued message that keeps getting no answer is retried on each reconnect, up to 5 times, then becomes `FAILED` (`TRANSIENT`). With it off, nothing retries a queued message on reconnect — a send that gets no answer becomes `FAILED` (`TRANSIENT`), which you recover with `retryMessage`.

Check warning on line 340 in sdk/android/v5/offline-send.mdx

View check run for this annotation

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

sdk/android/v5/offline-send.mdx#L340

Did you really mean 'realtime'?

Reconnect also runs a catch-up sync for received messages — see [Stay in Sync](/sdk/android/v5/offline-sync).

Expand All @@ -350,7 +350,7 @@
| `REJECT_NEWEST` (**default**) | The new send is refused and reported with reason `QUEUE_FULL`. Nothing already queued is lost. |
| `DROP_OLDEST` | The oldest `PENDING` message is evicted to admit the new one, and reported with `onError` (code `ERROR_PENDING_QUEUE_LIMIT`, reason `QUEUE_OVERFLOW`). If there is no `PENDING` message to evict, the new send is refused with `QUEUE_FULL`. |

A media send whose bytes would push the media cache over `maxMediaCacheSize` is refused with reason `BYTE_OVERFLOW`; nothing is evicted to make room.
When a media send's bytes would push the media cache over `maxMediaCacheSize`, the SDK first evicts the least recently used cached media to make room; the send is refused with reason `BYTE_OVERFLOW` only if the file still cannot fit, and then nothing is evicted. Media of queued messages does not count toward the budget and is never evicted.

Check warning on line 353 in sdk/android/v5/offline-send.mdx

View check run for this annotation

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

sdk/android/v5/offline-send.mdx#L353

Did you really mean 'send's'?

A **refused** send (`QUEUE_FULL` / `BYTE_OVERFLOW`) is never queued, so it fires **no** `onMessagePending`; it reports `onError` with the code `ERROR_PENDING_QUEUE_LIMIT`, and the global `OfflineMessageListener` receives `onOutboxMessageFailed(message, reason)` carrying the exact reason.

Expand Down
2 changes: 1 addition & 1 deletion sdk/android/v5/overview.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@

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

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

View check run for this annotation

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

sdk/android/v5/overview.mdx#L40

Did you really mean 'Androidx'?

</Note>

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

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

View check run for this annotation

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

sdk/android/v5/overview.mdx#L51

Did you really mean 'allprojects'?
repositories {
maven {
url "https://dl.cloudsmith.io/public/cometchat/cometchat/maven/"
Expand All @@ -67,7 +67,7 @@
<Tab title="Groovy">
```groovy
dependencies {
implementation "com.cometchat:chat-sdk-android:5.1.0"
implementation "com.cometchat:chat-sdk-android:5.1.2"
}
```

Expand All @@ -77,11 +77,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 80 in sdk/android/v5/overview.mdx

View check run for this annotation

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

sdk/android/v5/overview.mdx#L80

Did you really mean 'onwards'?

</Note>

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

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

View check run for this annotation

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

sdk/android/v5/overview.mdx#L84

Did you really mean 'gradle'?

<Tabs>
<Tab title="Groovy">
Expand All @@ -103,7 +103,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 106 in sdk/android/v5/overview.mdx

View check run for this annotation

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

sdk/android/v5/overview.mdx#L106

Did you really mean 'appSettings'?

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

Expand All @@ -117,15 +117,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 120 in sdk/android/v5/overview.mdx

View check run for this annotation

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

sdk/android/v5/overview.mdx#L120

Did you really mean 'eu'?

AppSettings appSettings = new AppSettings.AppSettingsBuilder()

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

View check run for this annotation

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

sdk/android/v5/overview.mdx#L122

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

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

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

View check run for this annotation

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

sdk/android/v5/overview.mdx#L128

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

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

View check run for this annotation

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

sdk/android/v5/overview.mdx#L185

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

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

'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 190 in sdk/android/v5/overview.mdx

View check run for this annotation

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

sdk/android/v5/overview.mdx#L190

Did you really mean 'authKey'?
@Override
public void onSuccess(User user) {
Log.d("createUser", user.toString());
Expand Down Expand Up @@ -240,7 +240,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 243 in sdk/android/v5/overview.mdx

View check run for this annotation

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

sdk/android/v5/overview.mdx#L243

Did you really mean 'authKey'?

if (CometChat.getLoggedInUser() == null) {
CometChat.login(UID, authKey, new CometChat.CallbackListener <User> () {
Expand Down
6 changes: 5 additions & 1 deletion sdk/android/v5/pin-conversation.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@
<Tabs>
<Tab title="Java">
```java
ConversationsRequest conversationsRequest = new ConversationsRequest.ConversationsRequestBuilder()

Check warning on line 193 in sdk/android/v5/pin-conversation.mdx

View check run for this annotation

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

sdk/android/v5/pin-conversation.mdx#L193

'conversationsRequest' is repeated!

Check warning on line 193 in sdk/android/v5/pin-conversation.mdx

View check run for this annotation

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

sdk/android/v5/pin-conversation.mdx#L193

Did you really mean 'conversationsRequest'?
.setPinnedBy("system,me")
.setLimit(30)
.build();
Expand Down Expand Up @@ -250,13 +250,17 @@
| `isPinned()` | Returns `true` if the conversation is pinned for the logged-in user (or globally). |
| `isSystemPinned()` | Returns `true` if the conversation was pinned globally by the app (`pinnedBy` is `app_system`). |
| `getPinnedAt()` | The timestamp at which the conversation was pinned. `0` when it is not pinned. |
| `getPinnedBy()` | The `UID` of the pinner, or `app_system` for a system pin. |

Check warning on line 253 in sdk/android/v5/pin-conversation.mdx

View check run for this annotation

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

sdk/android/v5/pin-conversation.mdx#L253

Did you really mean 'pinner'?

## Real-time Conversation Pin Events

Register a `ConversationListener` to be notified when a conversation is pinned or unpinned, so your list can reorder without a refetch.

Check warning on line 257 in sdk/android/v5/pin-conversation.mdx

View check run for this annotation

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

sdk/android/v5/pin-conversation.mdx#L257

Did you really mean 'refetch'?

Your own pin or unpin fires `onConversationPinned` / `onConversationUnpinned` on the device that performed it, just before the `pinConversation()` / `unpinConversation()` success callback, so update your UI in one of the two, not both. These callbacks also fire on the user's **other** devices when a pin frame arrives there.
These callbacks fire only for pins and unpins made elsewhere, such as from the user's other devices. They do not fire on the device that performed the action: update the UI for this device's own pin or unpin in the `onSuccess` callback of `pinConversation()` / `unpinConversation()`.

<Note>
This behaviour applies from SDK 5.1.2. In 5.1.0 and 5.1.1 these callbacks also fired on the acting device. If you use the Android UI Kit, upgrade it to 6.3.0 together with SDK 5.1.2.
</Note>

<Tabs>
<Tab title="Java">
Expand Down Expand Up @@ -307,9 +311,9 @@
<Tab title="Java">
```java
int limit = CometChat.getPinConversationLimit();
int systemLimit = CometChat.getSystemPinConversationLimit();

Check warning on line 314 in sdk/android/v5/pin-conversation.mdx

View check run for this annotation

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

sdk/android/v5/pin-conversation.mdx#L314

Did you really mean 'systemLimit'?

if (limit != Settings.LIMIT_UNSPECIFIED && pinnedCount >= limit) {

Check warning on line 316 in sdk/android/v5/pin-conversation.mdx

View check run for this annotation

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

sdk/android/v5/pin-conversation.mdx#L316

Did you really mean 'pinnedCount'?
// Disable the pin control instead of letting the user hit the error
}
```
Expand Down
6 changes: 5 additions & 1 deletion sdk/android/v5/pin-message.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
<Tabs>
<Tab title="Java">
```java
long messageId = 1;

Check warning on line 52 in sdk/android/v5/pin-message.mdx

View check run for this annotation

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

sdk/android/v5/pin-message.mdx#L52

Did you really mean 'messageId'?

CometChat.pinMessage(messageId, new CometChat.CallbackListener<BaseMessage>() {
@Override
Expand Down Expand Up @@ -85,11 +85,11 @@

</Tabs>

Pinning is **idempotent**, and a message has a single pinner: re-pinning an already pinned message updates `getPinnedBy()` and `getPinnedAt()` to the most recent pinner rather than failing.

Check warning on line 88 in sdk/android/v5/pin-message.mdx

View check run for this annotation

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

sdk/android/v5/pin-message.mdx#L88

Did you really mean 'pinner'?

Check warning on line 88 in sdk/android/v5/pin-message.mdx

View check run for this annotation

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

sdk/android/v5/pin-message.mdx#L88

Did you really mean 'pinner'?

<Warning>

**A just-sent message may not be pinnable or savable yet.** On an app with moderation enabled, the server stamps a new message as moderation-pending and clears it a moment later. While it is pending, the call is rejected with `ERR_MESSAGE_NO_ACCESS` — the **same code returned for a genuine permission refusal**, so you cannot tell the two apart from the error alone.

Check warning on line 92 in sdk/android/v5/pin-message.mdx

View check run for this annotation

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

sdk/android/v5/pin-message.mdx#L92

Did you really mean 'pinnable'?

The window runs from **send**, not from the user's tap, and clears within a few seconds. Do not disable the control on this error: by the time someone opens a menu and taps, moderation has usually finished. Prefer a retry or a transient "not ready yet" message over telling the user they lack permission. Moderation is configured **per app**, so this never reproduces on an app that has it switched off. (The CometChat UI Kits already withhold the Pin/Save options on a moderation-pending, disapproved, deleted or not-yet-sent message; this only concerns custom UI built directly on the SDK.)

Expand All @@ -108,7 +108,7 @@
<Tabs>
<Tab title="Java">
```java
long messageId = 1;

Check warning on line 111 in sdk/android/v5/pin-message.mdx

View check run for this annotation

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

sdk/android/v5/pin-message.mdx#L111

Did you really mean 'messageId'?

CometChat.unpinMessage(messageId, new CometChat.CallbackListener<BaseMessage>() {
@Override
Expand Down Expand Up @@ -155,7 +155,7 @@
```java
String UID = "cometchat-uid-1";

MessagesRequest messagesRequest = new MessagesRequest.MessagesRequestBuilder()

Check warning on line 158 in sdk/android/v5/pin-message.mdx

View check run for this annotation

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

sdk/android/v5/pin-message.mdx#L158

Did you really mean 'messagesRequest'?
.setPinned(true)
.setLimit(50)
.setUID(UID)
Expand Down Expand Up @@ -215,7 +215,7 @@
```kotlin
val UID = "cometchat-uid-1"

val messagesRequest = MessagesRequest.MessagesRequestBuilder()

Check warning on line 218 in sdk/android/v5/pin-message.mdx

View check run for this annotation

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

sdk/android/v5/pin-message.mdx#L218

Did you really mean 'messagesRequest'?
.setPinned(true)
.setLimit(50)
.setUID(UID)
Expand Down Expand Up @@ -303,7 +303,7 @@

<Info>

Editing a message preserves its pin. A message stores only its most recent pinner in `getPinnedBy()`.

Check warning on line 306 in sdk/android/v5/pin-message.mdx

View check run for this annotation

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

sdk/android/v5/pin-message.mdx#L306

Did you really mean 'pinner'?

</Info>

Expand All @@ -311,7 +311,11 @@

Register a `MessageListener` and override the pin callbacks. Each event delivers the full updated `BaseMessage`, so you can directly replace the message in your list.

Your own pin or unpin fires `onMessagePinned` / `onMessageUnpinned` on the device that performed it, just before the `pinMessage()` / `unpinMessage()` success callback, so update your UI in one of the two, not both. These callbacks also fire on **other** participants' devices when a pin frame arrives there.
These callbacks fire only for pins and unpins by other users or from the user's other devices. They do not fire on the device that performed the action: update the UI for this device's own pin or unpin in the `onSuccess` callback of `pinMessage()` / `unpinMessage()`.

<Note>
This behaviour applies from SDK 5.1.2. In 5.1.0 and 5.1.1 these callbacks also fired on the acting device. If you use the Android UI Kit, upgrade it to 6.3.0 together with SDK 5.1.2.
</Note>

<Tabs>
<Tab title="Java">
Expand Down Expand Up @@ -362,9 +366,9 @@
<Tab title="Java">
```java
int limit = CometChat.getPinMessageLimit();
int systemLimit = CometChat.getSystemPinMessageLimit();

Check warning on line 369 in sdk/android/v5/pin-message.mdx

View check run for this annotation

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

sdk/android/v5/pin-message.mdx#L369

Did you really mean 'systemLimit'?

if (limit != Settings.LIMIT_UNSPECIFIED && pinnedCount >= limit) {

Check warning on line 371 in sdk/android/v5/pin-message.mdx

View check run for this annotation

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

sdk/android/v5/pin-message.mdx#L371

Did you really mean 'pinnedCount'?
// Disable the pin control instead of letting the user hit the error
}
```
Expand Down
12 changes: 6 additions & 6 deletions sdk/android/v5/real-time-listeners.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -86,27 +86,27 @@
}

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

Check warning on line 89 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#L89

Did you really mean 'leftUser'?

Check warning on line 89 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#L89

Did you really mean 'leftGroup'?
}

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

Check warning on line 93 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#L93

Did you really mean 'kickedUser'?

Check warning on line 93 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#L93

Did you really mean 'kickedBy'?

Check warning on line 93 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#L93

Did you really mean 'kickedFrom'?
}

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

Check warning on line 97 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#L97

Did you really mean 'bannedUser'?

Check warning on line 97 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#L97

Did you really mean 'bannedBy'?

Check warning on line 97 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#L97

Did you really mean 'bannedFrom'?
}

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

Check warning on line 101 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#L101

Did you really mean 'unbannedUser'?

Check warning on line 101 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#L101

Did you really mean 'unbannedBy'?

Check warning on line 101 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#L101

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 105 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#L105

Did you really mean 'updatedBy'?

Check warning on line 105 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#L105

Did you really mean 'updatedUser'?
}

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

Check warning on line 109 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#L109

Did you really mean 'addedby'?

Check warning on line 109 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#L109

Did you really mean 'userAdded'?

Check warning on line 109 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#L109

Did you really mean 'addedTo'?
}
});
```
Expand Down Expand Up @@ -183,10 +183,10 @@
| `onMessagesRead(MessageReceipt messageReceipt)` | This event is triggered when a set of messages are marked as read for any particular conversation. |
| `onMessageEdited(BaseMessage message)` | This method is triggered when a particular message has been edited in a user/group conversation. |
| `onMessageDeleted(BaseMessage message)` | This event is triggered when a particular message is deleted in a user/group conversation. |
| `onMessagePinned(BaseMessage message)` | This event is triggered when a message is pinned in a user/group conversation. |
| `onMessageUnpinned(BaseMessage message)` | This event is triggered when a message is unpinned in a user/group conversation. |
| `onMessageSaved(BaseMessage message)` | This event is triggered when the logged-in user saves a message (private — never delivered to other participants). |
| `onMessageUnsaved(BaseMessage message)` | This event is triggered when the logged-in user unsaves a message (private — never delivered to other participants). |
| `onMessagePinned(BaseMessage message)` | This event is triggered when a message is pinned in a user/group conversation (not fired on the device that performed the action). |
| `onMessageUnpinned(BaseMessage message)` | This event is triggered when a message is unpinned in a user/group conversation (not fired on the device that performed the action). |
| `onMessageSaved(BaseMessage message)` | This event is triggered when the logged-in user saves a message (private — never delivered to other participants; not fired on the device that performed the action). |
| `onMessageUnsaved(BaseMessage message)` | This event is triggered when the logged-in user unsaves a message (private — never delivered to other participants; not fired on the device that performed the action). |

Check warning on line 189 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#L189

Did you really mean 'unsaves'?
| `onInteractiveMessageReceived(InteractiveMessage message)` | This event is triggered when an Interactive Message is received. |
| `onInteractionGoalCompleted(InteractionReceipt receipt)` | This event is triggered when an interaction Goal is achieved. |
| `onTransientMessageReceived(TransientMessage transientMessage)` | This event is triggered when a Transient Message is received. |
Expand Down Expand Up @@ -219,22 +219,22 @@
}

@Override
public void onTypingStarted(TypingIndicator typingIndicator) {

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 'typingIndicator'?

}

@Override
public void onTypingEnded(TypingIndicator typingIndicator) {

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 'typingIndicator'?

}

@Override
public void onMessagesDelivered(MessageReceipt messageReceipt) {

Check warning on line 232 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#L232

Did you really mean 'messageReceipt'?

}

@Override
public void onMessagesRead(MessageReceipt messageReceipt) {

Check warning on line 237 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#L237

Did you really mean 'messageReceipt'?

}

Expand All @@ -249,28 +249,28 @@
}

@Override
public void onInteractiveMessageReceived(InteractiveMessage interactiveMessage) {

Check warning on line 252 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#L252

Did you really mean 'interactiveMessage'?

}

@Override
public void onInteractionGoalCompleted(InteractionReceipt interactionReceipt) {

Check warning on line 257 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#L257

Did you really mean 'interactionReceipt'?

}


@Override
public void onTransientMessageReceived(TransientMessage transientMessage) {

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 'transientMessage'?

}

@Override
public void onMessageReactionAdded(ReactionEvent reactionEvent) {

Check warning on line 268 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#L268

Did you really mean 'reactionEvent'?

}

@Override
public void onMessageReactionRemoved(ReactionEvent reactionEvent) {

Check warning on line 273 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#L273

Did you really mean 'reactionEvent'?

}

Expand All @@ -290,7 +290,7 @@
}

@Override
public void onCardMessageReceived(CardMessage cardMessage) {

Check warning on line 293 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#L293

Did you really mean 'cardMessage'?

}
});
Expand Down Expand Up @@ -372,8 +372,8 @@

| Method | Information |
| ------------------------------------------------- | ---------------------------------------------------------------------------- |
| `onConversationPinned(Conversation conversation)` | This event is triggered when a conversation is pinned for the logged-in user. |
| `onConversationUnpinned(Conversation conversation)` | This event is triggered when a conversation is unpinned for the logged-in user. |
| `onConversationPinned(Conversation conversation)` | This event is triggered when a conversation is pinned for the logged-in user (not fired on the device that performed the action). |
| `onConversationUnpinned(Conversation conversation)` | This event is triggered when a conversation is unpinned for the logged-in user (not fired on the device that performed the action). |

To add the `ConversationListener`, you need to use the `addConversationListener()` method provided by the `CometChat` class.

Expand Down
4 changes: 2 additions & 2 deletions sdk/android/v5/retrieve-conversations.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
<Tabs>
<Tab title="Java (Set Limit)">
```java
ConversationsRequest conversationRequest = new ConversationsRequest.ConversationsRequestBuilder()

Check warning on line 25 in sdk/android/v5/retrieve-conversations.mdx

View check run for this annotation

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

sdk/android/v5/retrieve-conversations.mdx#L25

Did you really mean 'conversationRequest'?
.setLimit(100)
.build();
```
Expand All @@ -31,7 +31,7 @@

<Tab title="Kotlin (Set Limit)">
```kotlin
val conversationRequest = ConversationsRequestBuilder()

Check warning on line 34 in sdk/android/v5/retrieve-conversations.mdx

View check run for this annotation

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

sdk/android/v5/retrieve-conversations.mdx#L34

Did you really mean 'conversationRequest'?
.setLimit(100)
.build()
```
Expand All @@ -52,7 +52,7 @@
<Tabs>
<Tab title="Java">
```java
ConversationsRequest conversationsRequest = new ConversationsRequest.ConversationsRequestBuilder()

Check warning on line 55 in sdk/android/v5/retrieve-conversations.mdx

View check run for this annotation

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

sdk/android/v5/retrieve-conversations.mdx#L55

'conversationsRequest' is repeated!

Check warning on line 55 in sdk/android/v5/retrieve-conversations.mdx

View check run for this annotation

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

sdk/android/v5/retrieve-conversations.mdx#L55

Did you really mean 'conversationsRequest'?
.setLimit(50)
.setConversationType(CometChatConstants.CONVERSATION_TYPE_USER)
.build();
Expand All @@ -62,7 +62,7 @@

<Tab title="Kotlin">
```kotlin
val conversationsRequest = ConversationsRequestBuilder()

Check warning on line 65 in sdk/android/v5/retrieve-conversations.mdx

View check run for this annotation

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

sdk/android/v5/retrieve-conversations.mdx#L65

Did you really mean 'conversationsRequest'?
.setLimit(50)
.setConversationType(CometChatConstants.CONVERSATION_TYPE_USER)
.build()
Expand All @@ -79,7 +79,7 @@
<Tabs>
<Tab title="Java">
```java
ConversationsRequest conversationsRequest = new ConversationsRequest.ConversationsRequestBuilder()

Check warning on line 82 in sdk/android/v5/retrieve-conversations.mdx

View check run for this annotation

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

sdk/android/v5/retrieve-conversations.mdx#L82

'conversationsRequest' is repeated!

Check warning on line 82 in sdk/android/v5/retrieve-conversations.mdx

View check run for this annotation

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

sdk/android/v5/retrieve-conversations.mdx#L82

Did you really mean 'conversationsRequest'?
.setLimit(50)
.withUserAndGroupTags(true)
.build();
Expand All @@ -89,7 +89,7 @@

<Tab title="Kotlin">
```kotlin
val conversationsRequest = ConversationsRequestBuilder()

Check warning on line 92 in sdk/android/v5/retrieve-conversations.mdx

View check run for this annotation

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

sdk/android/v5/retrieve-conversations.mdx#L92

Did you really mean 'conversationsRequest'?
.setLimit(50)
.withUserAndGroupTags(true)
.build()
Expand All @@ -108,7 +108,7 @@
```java
List<String> tags = new ArrayList<>();
tags.add("tag_1");
conversationsRequest = new ConversationsRequest.ConversationsRequestBuilder()

Check warning on line 111 in sdk/android/v5/retrieve-conversations.mdx

View check run for this annotation

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

sdk/android/v5/retrieve-conversations.mdx#L111

Did you really mean 'conversationsRequest'?
.setLimit(10)
.setUserTags(tags)
.build();
Expand All @@ -120,7 +120,7 @@
```kotlin
val tags: MutableList<String> = ArrayList()
tags.add("tag_1")
conversationsRequest = ConversationsRequestBuilder()

Check warning on line 123 in sdk/android/v5/retrieve-conversations.mdx

View check run for this annotation

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

sdk/android/v5/retrieve-conversations.mdx#L123

Did you really mean 'conversationsRequest'?
.setLimit(10)
.setUserTags(tags)
.build()
Expand All @@ -137,7 +137,7 @@
```java
List<String> tags = new ArrayList<>();
tags.add("tag_1");
conversationsRequest = new ConversationsRequest.ConversationsRequestBuilder()

Check warning on line 140 in sdk/android/v5/retrieve-conversations.mdx

View check run for this annotation

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

sdk/android/v5/retrieve-conversations.mdx#L140

Did you really mean 'conversationsRequest'?
.setLimit(10)
.setGroupTags(tags)
.build();
Expand All @@ -149,7 +149,7 @@
```kotlin
val tags: MutableList<String> = ArrayList()
tags.add("tag_1")
conversationsRequest = ConversationsRequestBuilder()

Check warning on line 152 in sdk/android/v5/retrieve-conversations.mdx

View check run for this annotation

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

sdk/android/v5/retrieve-conversations.mdx#L152

Did you really mean 'conversationsRequest'?
.setLimit(10)
.setGroupTags(tags)
.build()
Expand All @@ -168,7 +168,7 @@
<Tabs>
<Tab title="Java">
```java
ConversationsRequest conversationsRequest = new ConversationsRequest.ConversationsRequestBuilder()

Check warning on line 171 in sdk/android/v5/retrieve-conversations.mdx

View check run for this annotation

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

sdk/android/v5/retrieve-conversations.mdx#L171

'conversationsRequest' is repeated!

Check warning on line 171 in sdk/android/v5/retrieve-conversations.mdx

View check run for this annotation

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

sdk/android/v5/retrieve-conversations.mdx#L171

Did you really mean 'conversationsRequest'?
.setLimit(50)
.withTags(true)
.build();
Expand All @@ -178,7 +178,7 @@

<Tab title="Kotlin">
```kotlin
val conversationsRequest = ConversationsRequestBuilder()

Check warning on line 181 in sdk/android/v5/retrieve-conversations.mdx

View check run for this annotation

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

sdk/android/v5/retrieve-conversations.mdx#L181

Did you really mean 'conversationsRequest'?
.setLimit(50)
.withTags(true)
.build()
Expand All @@ -197,7 +197,7 @@
```java
List<String> tags = new ArrayList<>();
tags.add("archived");
ConversationsRequest conversationsRequest = new ConversationsRequest.ConversationsRequestBuilder()

Check warning on line 200 in sdk/android/v5/retrieve-conversations.mdx

View check run for this annotation

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

sdk/android/v5/retrieve-conversations.mdx#L200

'conversationsRequest' is repeated!

Check warning on line 200 in sdk/android/v5/retrieve-conversations.mdx

View check run for this annotation

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

sdk/android/v5/retrieve-conversations.mdx#L200

Did you really mean 'conversationsRequest'?
.setLimit(50)
.setTags(tags)
.build();
Expand All @@ -209,7 +209,7 @@
```kotlin
val tags: MutableList<String> = ArrayList()
tags.add("archived")
val conversationsRequest = ConversationsRequestBuilder()

Check warning on line 212 in sdk/android/v5/retrieve-conversations.mdx

View check run for this annotation

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

sdk/android/v5/retrieve-conversations.mdx#L212

Did you really mean 'conversationsRequest'?
.setLimit(50)
.setTags(tags)
.build()
Expand All @@ -226,7 +226,7 @@
<Tabs>
<Tab title="Java">
```java
ConversationsRequest conversationsRequest = new ConversationsRequest.ConversationsRequestBuilder()

Check warning on line 229 in sdk/android/v5/retrieve-conversations.mdx

View check run for this annotation

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

sdk/android/v5/retrieve-conversations.mdx#L229

'conversationsRequest' is repeated!

Check warning on line 229 in sdk/android/v5/retrieve-conversations.mdx

View check run for this annotation

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

sdk/android/v5/retrieve-conversations.mdx#L229

Did you really mean 'conversationsRequest'?
.setLimit(50)
.includeBlockedUsers(true)
.build();
Expand All @@ -236,7 +236,7 @@

<Tab title="Kotlin">
```kotlin
val conversationsRequest = ConversationsRequestBuilder()

Check warning on line 239 in sdk/android/v5/retrieve-conversations.mdx

View check run for this annotation

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

sdk/android/v5/retrieve-conversations.mdx#L239

Did you really mean 'conversationsRequest'?
.setLimit(50)
.includeBlockedUsers(true)
.build()
Expand All @@ -253,7 +253,7 @@
<Tabs>
<Tab title="Java">
```java
ConversationsRequest conversationsRequest = new ConversationsRequest.ConversationsRequestBuilder()

Check warning on line 256 in sdk/android/v5/retrieve-conversations.mdx

View check run for this annotation

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

sdk/android/v5/retrieve-conversations.mdx#L256

'conversationsRequest' is repeated!

Check warning on line 256 in sdk/android/v5/retrieve-conversations.mdx

View check run for this annotation

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

sdk/android/v5/retrieve-conversations.mdx#L256

Did you really mean 'conversationsRequest'?
.setLimit(50)
.withBlockedInfo(true)
.build();
Expand All @@ -263,7 +263,7 @@

<Tab title="Kotlin">
```kotlin
val conversationsRequest = ConversationsRequestBuilder()

Check warning on line 266 in sdk/android/v5/retrieve-conversations.mdx

View check run for this annotation

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

sdk/android/v5/retrieve-conversations.mdx#L266

Did you really mean 'conversationsRequest'?
.setLimit(50)
.withBlockedInfo(true)
.build()
Expand All @@ -288,7 +288,7 @@
<Tabs>
<Tab title="Java">
```java
ConversationsRequest conversationsRequest = new ConversationsRequest.ConversationsRequestBuilder()

Check warning on line 291 in sdk/android/v5/retrieve-conversations.mdx

View check run for this annotation

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

sdk/android/v5/retrieve-conversations.mdx#L291

'conversationsRequest' is repeated!

Check warning on line 291 in sdk/android/v5/retrieve-conversations.mdx

View check run for this annotation

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

sdk/android/v5/retrieve-conversations.mdx#L291

Did you really mean 'conversationsRequest'?
.setLimit(50)
.setSearchKeyword("Hiking")
.build();
Expand All @@ -298,7 +298,7 @@

<Tab title="Kotlin">
```kotlin
val conversationsRequest = ConversationsRequestBuilder()

Check warning on line 301 in sdk/android/v5/retrieve-conversations.mdx

View check run for this annotation

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

sdk/android/v5/retrieve-conversations.mdx#L301

Did you really mean 'conversationsRequest'?
.setLimit(50)
.setSearchKeyword("Hiking")
.build()
Expand All @@ -321,7 +321,7 @@
<Tabs>
<Tab title="Java">
```java
ConversationsRequest conversationsRequest = new ConversationsRequest.ConversationsRequestBuilder()

Check warning on line 324 in sdk/android/v5/retrieve-conversations.mdx

View check run for this annotation

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

sdk/android/v5/retrieve-conversations.mdx#L324

'conversationsRequest' is repeated!

Check warning on line 324 in sdk/android/v5/retrieve-conversations.mdx

View check run for this annotation

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

sdk/android/v5/retrieve-conversations.mdx#L324

Did you really mean 'conversationsRequest'?
.setLimit(50)
.setUnread(true)
.build();
Expand All @@ -331,7 +331,7 @@

<Tab title="Kotlin">
```kotlin
val conversationsRequest = ConversationsRequestBuilder()

Check warning on line 334 in sdk/android/v5/retrieve-conversations.mdx

View check run for this annotation

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

sdk/android/v5/retrieve-conversations.mdx#L334

Did you really mean 'conversationsRequest'?
.setLimit(50)
.setUnread(true)
.build()
Expand All @@ -352,7 +352,7 @@
<Tabs>
<Tab title="Java">
```java
ConversationsRequest conversationsRequest = new ConversationsRequest.ConversationsRequestBuilder().setLimit(50).build();

Check warning on line 355 in sdk/android/v5/retrieve-conversations.mdx

View check run for this annotation

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

sdk/android/v5/retrieve-conversations.mdx#L355

'conversationsRequest' is repeated!

Check warning on line 355 in sdk/android/v5/retrieve-conversations.mdx

View check run for this annotation

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

sdk/android/v5/retrieve-conversations.mdx#L355

Did you really mean 'conversationsRequest'?

conversationsRequest.fetchNext(new CometChat.ConversationFetchListener() {
@Override
Expand Down Expand Up @@ -405,7 +405,7 @@
| -------------------- | -------------------------------------------------------------------- |
| `conversationId` | ID of the conversation |
| `conversationType` | Type of conversation (user/group) |
| `lastMessage` | Last message the conversation |
| `lastMessage` | Last message the conversation. With [offline support](/sdk/android/v5/offline-send) enabled, a last message that has not been sent yet carries its send status in `getStatus()` (`MessageStatus.PENDING` or `MessageStatus.FAILED`) |
| `conversationWith` | `User` or `Group` object containing the details of the user or group |
| `unreadMessageCount` | Unread message count for the conversation |

Expand All @@ -432,13 +432,13 @@
<Tab title="Java">
```java
String id = "cometchat-uid-1"; //id of the user/group
String conversationType = "user";

Check warning on line 435 in sdk/android/v5/retrieve-conversations.mdx

View check run for this annotation

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

sdk/android/v5/retrieve-conversations.mdx#L435

Did you really mean 'conversationType'?
List<String> tags = new ArrayList<>();
tags.add("archived");

CometChat.tagConversation(id, conversationWith, tags, new CometChat.CallbackListener<Conversation>() {

Check warning on line 439 in sdk/android/v5/retrieve-conversations.mdx

View check run for this annotation

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

sdk/android/v5/retrieve-conversations.mdx#L439

Did you really mean 'conversationWith'?
@Override
public void onSuccess(Conversation conversation) {

Check warning on line 441 in sdk/android/v5/retrieve-conversations.mdx

View check run for this annotation

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

sdk/android/v5/retrieve-conversations.mdx#L441

'conversation' is repeated!
Log.d(TAG, conversation.toString());
}

Expand Down Expand Up @@ -500,7 +500,7 @@
<Tabs>
<Tab title="Java">
```java
CometChat.getConversation(conversationWith, conversationType, new CometChat.ConversationDetailsListener() {

Check warning on line 503 in sdk/android/v5/retrieve-conversations.mdx

View check run for this annotation

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

sdk/android/v5/retrieve-conversations.mdx#L503

Did you really mean 'conversationType'?
@Override
public void onCachedConversation(Conversation conversation) {
// Fires only on a cache hit.
Expand Down Expand Up @@ -570,7 +570,7 @@

## Offline Behaviour

With [offline support](/sdk/android/v5/offline-cached-data) enabled, `fetchNext()` delivers a cached page first (`onCachedConversations`, even when empty) and then the server list (`onServerConversations`); offline, the read ends with `onError` with code `ERROR_INTERNET_UNAVAILABLE` after the cached page. The cached page is answered only when every builder filter on the request is locally computable — a single server-only filter blanks the cached page while the server phase still answers in full.
With [offline support](/sdk/android/v5/offline-cached-data) enabled, `fetchNext()` delivers a cached page first (`onCachedConversations`, even when empty) and then the server list (`onServerConversations`); offline, the read ends with `onError` with code `ERROR_INTERNET_UNAVAILABLE` after the cached page. The cached page is answered only when every builder filter on the request is locally computable — a single server-only filter blanks the cached page while the server phase still answers in full. A second `fetchNext()` made while the first is still loading returns an empty page at once, online or offline, without a cached page and without moving to the next page.

| Builder method | Offline |
|---|---|
Expand Down
Loading