ChatConfig

public class ChatConfig

Overall configuration items for the chat UI

Author

shaunak

Since

2023-08-15

Properties

Link copied to clipboard
public boolean isAlignOwnMessagesLeft
Whether your own messages are aligned to the left (default: off)
Link copied to clipboard
Whether to display others' avatars in group chat (enabled by default)
Link copied to clipboard
Whether to display others' avatars in one-to-one chats (default: off)
Link copied to clipboard
Whether to display others' nicknames in group chats (enabled by default)
Link copied to clipboard
Whether to display others' nicknames in private chats (default: off)
Link copied to clipboard
Whether to display your avatar in group chats (default: off)
Link copied to clipboard
Whether to display your own avatar in one-to-one chat (default: off)
Link copied to clipboard
Whether to display your nickname in group chat (default: off)
Link copied to clipboard
Whether to display your nickname in private chats (default: off)
Link copied to clipboard
Whether to display an unread message when entering the page (enabled by default)
Link copied to clipboard
public StickerViewDataProvider stickerViewDataProvider
Internal Use Conversation Digest

Functions

Link copied to clipboard
public void addMessageProvider(IMessageProvider<? extends MessageContent> provider)
Add Message Provider
Link copied to clipboard
public ChatBehaviorListener getChatBehaviorListener()
Chat UI click event
Link copied to clipboard
public Drawable getLeftMessageBubbleDrawable()
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
public ProviderManager<UiMessage> getMessageListProvider()
Get Message Template List 【Internal Use】
Link copied to clipboard
public Spannable getMessageSummary(Context context, Conversation conversation)
[Internal Use] Retrieves message display information.
public Spannable getMessageSummary(Context context, MessageContent messageContent)
[Internal Use] Retrieves message display information
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
public StickerViewDataProvider getStickerViewDataProvider()
Link copied to clipboard
public boolean isAlignOwnMessagesLeft()
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
public boolean isShowSummaryWithName(MessageContent messageContent)
【Internal Use】Whether to display the name in the message list
Link copied to clipboard
public void replaceMessageProvider(Class oldProviderClass, IMessageProvider provider)
Replace the existing template
Link copied to clipboard
public void setAlignOwnMessagesLeft(boolean alignOwnMessagesLeft)
Link copied to clipboard
public void setChatBehaviorListener(ChatBehaviorListener listener)
Sets the click event for the conversation page
Link copied to clipboard
public void setDisplayOthersAvatarInGroupChat(boolean displayOthersAvatarInGroupChat)
Link copied to clipboard
public void setDisplayOthersAvatarInPrivateChat(boolean displayOthersAvatarInPrivateChat)
Link copied to clipboard
public void setDisplayOthersNickNameInGroupChat(boolean displayOthersNickNameInGroupChat)
Link copied to clipboard
public void setDisplayOthersNickNameInPrivateChat(boolean displayOthersNickNameInPrivateChat)
Link copied to clipboard
public void setDisplayOwnAvatarInGroupChat(boolean displayOwnAvatarInGroupChat)
Link copied to clipboard
public void setDisplayOwnAvatarInPrivateChat(boolean displayOwnAvatarInPrivateChat)
Link copied to clipboard
public void setDisplayOwnNickNameInGroupChat(boolean displayOwnNickNameInGroupChat)
Link copied to clipboard
public void setDisplayOwnNickNameInPrivateChat(boolean displayOwnNickNameInPrivateChat)
Link copied to clipboard
public void setLeftMessageBubbleDrawable(Drawable mLeftMessageBubbleDrawable)
Link copied to clipboard
public void setLeftMessageContentColor(int mLeftMessageContentColor)
Link copied to clipboard
public void setLeftSendMessageBubbleDrawable(Drawable mLeftSendMessageBubbleDrawable)
Link copied to clipboard
public void setMessageDeleteOnAllDevicesInterval(int mMessageRecallInterval)
Link copied to clipboard
public void setRightMessageBubbleDrawable(Drawable mRightMessageBubbleDrawable)
Link copied to clipboard
public void setRightMessageContentColor(int mRightMessageContentColor)
Link copied to clipboard
public void setShowFirstMessagesOnPageLoad(boolean showFirstMessagesOnPageLoad)
Link copied to clipboard
public void setStickerViewDataProvider(StickerViewDataProvider provider)
Sets the image provider for Sticker display