setUser | Used to pass user object of which header specific details will be shown | .setUser(user); |
setGroup | Used to pass group object of which header specific details will be shown | .setGroup(Group); |
setAlignment | used to set the alignmet of messages in CometChatMessageList. It can be either leftAligned or standard | .setAlignment(UIKitConstants.MessageListAlignment); |
setErrorStateVisibility | used to toggle visibility of error state in MessageList | .setErrorStateVisibility(View.GONE); |
disableSoundForMessages | used to enable/disable sound for incoming/outgoing messages , default false | .disableSoundForMessages(false); |
setCustomSoundForMessages | used to set custom sound for outgoing message | .setCustomSoundForMessages(@RawRes resource); |
setAvatarVisibility | used to toggle visibility for avatar | .setAvatarVisibility(View.GONE); |
scrollToBottomOnNewMessage | should scroll to bottom on new message? , by default false | .scrollToBottomOnNewMessage(true); |
setReceiptsVisibility | Used to control visibility of read receipts without disabling the functionality of marking messages as read and delivered. | .setReceiptsVisibility(View.GONE); |
setQuickReactions | The list of quick reactions to be set.This list will replace the predefined set of reactions | .setQuickReactions(Arrays.asList("👻","😈","🙀","🤡","❤️"); |
setStickyDateVisibility | used to toggle visibility for sticky header | .setStickyDateVisibility(View.GONE); |
replyInThreadOptionVisibility | used to toggle visibility for thread option | .replyInThreadOptionVisibility(View.GONE); |
translateMessageOptionVisibility | used to toggle visibility for translate option | .translateMessageOptionVisibility(View.GONE); |
editMessageOptionVisibility | used to toggle visibility for edit option | .editMessageOptionVisibility(View.GONE); |
deleteMessageOptionVisibility | used to toggle visibility for delete option | .deleteMessageOptionVisibility(View.GONE); |
setMessageReactionOptionVisibility | used to toggle visibility for reaction option | .setMessageReactionOptionVisibility(View.GONE); |
messagePrivatelyOptionVisibility | used to toggle visibility for private option | .messagePrivatelyOptionVisibility(View.GONE); |
copyMessageOptionVisibility | used to toggle visibility for copy option | .copyMessageOptionVisibility(View.GONE); |
messageInfoOptionVisibility | used to toggle visibility for info option | .messageInfoOptionVisibility(View.GONE); |
groupActionMessageVisibility | used to toggle visibility for action message option | .groupActionMessageVisibility(View.GONE); |
enableConversationStarters | Controls whether conversation starters are generated in new conversations | .enableConversationStarters(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); |