From 177fc764e64bab06292aa6d71d6b0f7b62431167 Mon Sep 17 00:00:00 2001 From: Ashfaq Ali Date: Thu, 25 Dec 2025 17:10:00 +0530 Subject: [PATCH] docs for mark unread --- ui-kit/android/message-list.mdx | 40 ++++++++++++++++++++++++++++----- 1 file changed, 35 insertions(+), 5 deletions(-) diff --git a/ui-kit/android/message-list.mdx b/ui-kit/android/message-list.mdx index cb972b76..278f98cc 100644 --- a/ui-kit/android/message-list.mdx +++ b/ui-kit/android/message-list.mdx @@ -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);` | *** @@ -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. + + + +```java +messageList.setUnreadIndicatorView(customView); +``` + + + + +```kotlin +messageList.setUnreadIndicatorView(customView) +``` + + + + + +*** + #### setLoadingView Customizes the loading indicator when messages are being fetched.