# ConversationConfig

public class ConversationConfig

会话页面总配置项

## Properties

conversationHistoryMessageCount
Link copied to clipboard
public int conversationHistoryMessageCount
conversationLoadMessageType
Link copied to clipboard
public ConversationLoadMessageType conversationLoadMessageType
conversationRemoteMessageCount
Link copied to clipboard
public int conversationRemoteMessageCount
conversationShowUnreadMessageCount
Link copied to clipboard
public int conversationShowUnreadMessageCount
enableMultiDeviceSync
Link copied to clipboard
public static boolean enableMultiDeviceSync
多端消息未读数同步，仅支持单群聊
rc_chatroom_first_pull_message_count
Link copied to clipboard
public int rc_chatroom_first_pull_message_count
rc_enable_automatic_download_voice_msg
Link copied to clipboard
public boolean rc_enable_automatic_download_voice_msg
rc_enable_mentioned_message
Link copied to clipboard
public boolean rc_enable_mentioned_message
rc_enable_recall_message
Link copied to clipboard
public boolean rc_enable_recall_message
rc_enable_resend_message
Link copied to clipboard
public boolean rc_enable_resend_message
rc_enable_send_combine_message
Link copied to clipboard
public boolean rc_enable_send_combine_message
rc_gifmsg_auto_download_size
Link copied to clipboard
public int rc_gifmsg_auto_download_size
rc_is_show_warning_notification
Link copied to clipboard
public boolean rc_is_show_warning_notification
rc_max_message_selected_count
Link copied to clipboard
public int rc_max_message_selected_count
rc_media_selector_contain_video
Link copied to clipboard
public boolean rc_media_selector_contain_video
rc_message_recall_edit_interval
Link copied to clipboard
public int rc_message_recall_edit_interval
rc_message_recall_interval
Link copied to clipboard
public int rc_message_recall_interval
rc_play_audio_continuous
Link copied to clipboard
public boolean rc_play_audio_continuous
rc_read_receipt_request_interval
Link copied to clipboard
public int rc_read_receipt_request_interval
SP_NAME_READ_RECEIPT_CONFIG
Link copied to clipboard
public static String SP_NAME_READ_RECEIPT_CONFIG

## Functions

addMessageProvider
Link copied to clipboard
public void addMessageProvider(IMessageProvider provider)
addMoreClickAction
Link copied to clipboard
public void addMoreClickAction(int index, IClickActions action)
addViewProcessor
Link copied to clipboard
public void addViewProcessor(IConversationUIRenderer processor)
ConversationFragment 处理器
getConversationClickListener
Link copied to clipboard
public ConversationClickListener getConversationClickListener()
getConversationHistoryMessageCount
Link copied to clipboard
public int getConversationHistoryMessageCount()
getConversationLoadMessageType
Link copied to clipboard
public ConversationLoadMessageType getConversationLoadMessageType()
getConversationRemoteMessageCount
Link copied to clipboard
public int getConversationRemoteMessageCount()
getConversationShowUnreadMessageCount
Link copied to clipboard
public int getConversationShowUnreadMessageCount()
getFileSuffixTypes
Link copied to clipboard
public HashMap<String, Integer> getFileSuffixTypes()
内部使用，客户不需要调用
getMessageListProvider
Link copied to clipboard
public ProviderManager<UiMessage> getMessageListProvider()
getMessageSummary
Link copied to clipboard
public Spannable getMessageSummary(Context context, Conversation conversation)
public Spannable getMessageSummary(Context context, MessageContent messageContent)
获得消息展示信息
getMoreClickActions
Link copied to clipboard
public List<IClickActions> getMoreClickActions()
获取会话页面长按消息，弹出框里点击"更多"选项时，底部需要显示的条目。 可以通过对此列表的增删，进行自定义显示。
getSupportReadReceiptConversationType
Link copied to clipboard
public Set<ConversationType> getSupportReadReceiptConversationType()
getViewModelProcessor
Link copied to clipboard
public IMessageViewModelProcessor getViewModelProcessor()
getViewProcessors
Link copied to clipboard
public List<IConversationUIRenderer> getViewProcessors()
initConfig
Link copied to clipboard
public void initConfig(Context context)
isEnableMultiDeviceSync
Link copied to clipboard
public boolean isEnableMultiDeviceSync(ConversationType type)
是否打开多端阅读状态同步功能。 开启之后，在其它端阅读过的消息，当前客户端会同步清掉未读数。
isEnableReadReceipt
Link copied to clipboard
public boolean isEnableReadReceipt()
已读回执是否生效，仅支持单聊，群聊，讨论组，密聊，其余不生效
isNeedDeleteRemoteMessage
Link copied to clipboard
public boolean isNeedDeleteRemoteMessage()
是否删除远端消息
isNeedRefreshWhenListIsEmptyAfterDelete
Link copied to clipboard
public boolean isNeedRefreshWhenListIsEmptyAfterDelete()
获取当会话页面删除消息后列表消息为空时，设置是否重新刷新页面
isShowHistoryDividerMessage
Link copied to clipboard
public boolean isShowHistoryDividerMessage()
isShowHistoryMessageBar
Link copied to clipboard
public boolean isShowHistoryMessageBar(ConversationType type)
是否显示历史未读消息气泡，仅支持设置私聊，群组
isShowMoreClickAction
Link copied to clipboard
public boolean isShowMoreClickAction()
isShowNewMentionMessageBar
Link copied to clipboard
public boolean isShowNewMentionMessageBar(ConversationType type)
会话页面右上角的未读 @ 消息数提示，目前仅支持群聊
isShowNewMessageBar
Link copied to clipboard
public boolean isShowNewMessageBar(ConversationType type)
新消息是否显示未读气泡，目前仅支持单群聊
isShowReadReceipt
Link copied to clipboard
public boolean isShowReadReceipt(ConversationType type)
仅适用单聊和加密
isShowReadReceiptRequest
Link copied to clipboard
public boolean isShowReadReceiptRequest(ConversationType type)
仅适用群聊和讨论组
isShowReceiverUserTitle
Link copied to clipboard
public boolean isShowReceiverUserTitle(ConversationType type)
单聊是否显示用户昵称 仅支持配置单聊属性
registerFileSuffixTypes
Link copied to clipboard
public void registerFileSuffixTypes(HashMap<String, Integer> map)
注册文件消息后缀类型对应的ICON配置列表
removeMoreClickAction
Link copied to clipboard
public void removeMoreClickAction(IClickActions action)
移除点击事件
replaceMessageProvider
Link copied to clipboard
public void replaceMessageProvider(Class oldProviderClass, IMessageProvider provider)
替换已有的模板
setConversationClickListener
Link copied to clipboard
public void setConversationClickListener(ConversationClickListener conversationClickListener)
setConversationHistoryMessageCount
Link copied to clipboard
public void setConversationHistoryMessageCount(int conversationHistoryMessageCount)
setConversationLoadMessageType
Link copied to clipboard
public void setConversationLoadMessageType(ConversationLoadMessageType conversationLoadMessageType)
setConversationRemoteMessageCount
Link copied to clipboard
public void setConversationRemoteMessageCount(int conversationRemoteMessageCount)
setConversationShowUnreadMessageCount
Link copied to clipboard
public void setConversationShowUnreadMessageCount(int conversationShowUnreadMessageCount)
setEnableMultiDeviceSync
Link copied to clipboard
public void setEnableMultiDeviceSync(boolean enableMultiDeviceSync)
setEnableReadReceipt
Link copied to clipboard
public void setEnableReadReceipt(boolean enable)
设置已读回执，仅支持单聊，群聊，讨论组，密聊，其余不生效
setNeedDeleteRemoteMessage
Link copied to clipboard
public void setNeedDeleteRemoteMessage(boolean needDeleteRemoteMessage)
设置是否删除远端消息
setNeedRefreshWhenListIsEmptyAfterDelete
Link copied to clipboard
public void setNeedRefreshWhenListIsEmptyAfterDelete(boolean needRefreshWhenListIsEmptyAfterDelete)
当会话页面删除消息后列表消息为空时，设置是否重新刷新页面
setShowHistoryDividerMessage
Link copied to clipboard
public void setShowHistoryDividerMessage(boolean showHistoryDividerMessage)
setShowHistoryMessageBar
Link copied to clipboard
public void setShowHistoryMessageBar(boolean showHistoryMessageBar)
setShowMoreClickAction
Link copied to clipboard
public void setShowMoreClickAction(boolean showMoreClickAction)
setShowNewMentionMessageBar
Link copied to clipboard
public void setShowNewMentionMessageBar(boolean showNewMentionMessageBar)
setShowNewMessageBar
Link copied to clipboard
public void setShowNewMessageBar(boolean showNewMessageBar)
setShowReceiverUserTitle
Link copied to clipboard
public void setShowReceiverUserTitle(boolean showReceiverUserTitle)
setSupportReadReceiptConversationType
Link copied to clipboard
public void setSupportReadReceiptConversationType(Array<ConversationType> types)
setViewModelProcessor
Link copied to clipboard
public void setViewModelProcessor(IMessageViewModelProcessor viewModelProcessor)
showSummaryWithName
Link copied to clipboard
public boolean showSummaryWithName(MessageContent messageContent)
是否在消息列表显示名称