Skip to content
Open
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
40 changes: 35 additions & 5 deletions ui-kit/android/message-list.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -442,17 +442,20 @@ Below is a list of customizations along with corresponding code snippets
| **groupActionMessageVisibility** | used to toggle visibility for action message option | `.groupActionMessageVisibility(View.GONE);` |
| **enableConversationStarters** | Controls whether conversation starters are generated in new conversations | `.enableConversationStarters(true);` |
| **setEnableConversationSummary** | Controls whether conversation summaries are enabled for the conversation list. | `.setEnableConversationSummary(true);` |
| **setUnreadMessageThreshold** | Sets the threshold for unread messages, determining when a message is marked as unread. | .setUnreadMessageThreshold(10); |
| **setSwipeToReplyEnabled** | Controls whether the swipe-to-reply functionality is enabled or disabled for messages. | .setSwipeToReplyEnabled(true); |
| **setUnreadMessageThreshold** | Sets the threshold for unread messages, determining when a message is marked as unread. | `.setUnreadMessageThreshold(10);` |
| **setSwipeToReplyEnabled** | Controls whether the swipe-to-reply functionality is enabled or disabled for messages. | `.setSwipeToReplyEnabled(true);` |
| **enableSmartReplies** | Enables smart replies for quick responses | `.enableSmartReplies(true);` |
| **smartRepliesKeywords** | Defines specific keywords in an incoming message that will trigger Smart Replies. | `.setAISmartRepliesKeywords(Arrays.asList("hello", "hi", "how are you", "good morning", "good evening", "good night"));` |
| **smartRepliesDelayDuration** | Sets the delay time before Smart Replies are fetched and displayed after a message is received. | `.smartRepliesDelayDuration(5000);` |
| **setStartFromUnreadMessages** | Starts the message list from the first unread message. | `.setStartFromUnreadMessages(true);` |
| **setAiAssistantSuggestedMessagesVisibility** | used to toggle visibility for suggested messages in case of chats with AI Assistants | `.setAiAssistantSuggestedMessagesVisibility(View.GONE);` |
| **setAIAssistantEmptyStateVisibility** | used to toggle visibility for empty chat greeting view in case of chats with AI Assistants | `.setAIAssistantEmptyStateVisibility(View.GONE);` |
| **refreshStyle** | used to refresh the style of message list | `.refreshStyle();` |
| **generateConversationSummary** | Triggers the generation of a conversation summary by fetching it from the ViewModel. | .generateConversationSummary(); |
| **setReplyOptionVisibility** | Sets the visibility of the “Reply to Message” option in the message actions menu. | .setReplyOptionVisibility(View.VISIBLE); |
| **setFlagOptionVisibility** | Sets the visibility of the “Report” option in the message actions menu. | .setFlagOptionVisibility(View.VISIBLE); |
| **generateConversationSummary** | Triggers the generation of a conversation summary by fetching it from the ViewModel. | `.generateConversationSummary();` |
| **setReplyOptionVisibility** | Sets the visibility of the “Reply to Message” option in the message actions menu. | `.setReplyOptionVisibility(View.VISIBLE);` |
| **setFlagOptionVisibility** | Sets the visibility of the “Report” option in the message actions menu. | `.setFlagOptionVisibility(View.VISIBLE);` |
| **setFlagRemarkInputFieldVisibility** | Sets the visibility of the remark input field in flag message popup. | `.setFlagRemarkInputFieldVisibility(View.VISIBLE);` |
| **setMarkAsUnreadOptionVisibility** | Sets the visibility of the “Mark unread” option in the message actions menu. | `.setMarkAsUnreadOptionVisibility(View.VISIBLE);` |

***

Expand Down Expand Up @@ -669,6 +672,33 @@ messageList.setTimeFormat(SimpleDateFormat("hh:mm a",Locale.getDefault()))

***

#### setUnreadIndicatorView

Customizes the unread message indicator view.

Use Cases:

* Set a custom view for the unread message indicator.

<Tabs>
<Tab title="Java">
```java
messageList.setUnreadIndicatorView(customView);
```

</Tab>

<Tab title="Kotlin">
```kotlin
messageList.setUnreadIndicatorView(customView)
```

</Tab>

</Tabs>

***

#### setLoadingView

Customizes the loading indicator when messages are being fetched.
Expand Down