ConversationConfig

public class ConversationConfig

会话页面总配置项

Properties

Link copied to clipboard
public ConversationLoadMessageType conversationLoadMessageType
Link copied to clipboard
Link copied to clipboard
public static boolean enableMultiDeviceSync
多端消息未读数同步,仅支持单群聊
Link copied to clipboard
Link copied to clipboard
public boolean rc_enable_recall_message
Link copied to clipboard
public boolean rc_enable_resend_message
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 rc_play_audio_continuous
Link copied to clipboard
public static String SP_NAME_READ_RECEIPT_CONFIG

Functions

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