KIMChatSummaryFormatter

Created by liutao7 on 2022/8/17.

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
open fun blockingGetFormattedChatSummary(message: KIMCoreMessage?): String

自定义当前会话最新一条消息内容摘要。 SDK 提供子线程运行环境,子类阻塞式返回会话摘要。

Link copied to clipboard
open fun getChatNotice(chatItem: KChatListItem, notices: List<KIMCoreNotice>?): <Error class: unknown class>?

获取会话的强提醒显示文本,强提醒以单独的颜色显示在消息摘要前

Link copied to clipboard
open fun getMsgCopyText(message: KIMCoreMessage?): String

获取消息复制的文本 -- text为空 代表不能复制该消息

Link copied to clipboard
open fun needShowNameForLastMsg(lastMsg: KIMCoreMessage?): Boolean

是否需要为该消息显示用户名