ChatService

interface ChatService : KIMISdkLinkupService

sdkKIMKit接入协作时会有一些临时方案或者桥接代码,暂时统一放置在ChatService中,等完全接入后,再做删除处理

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
abstract fun initChatDefaultRecyclerView(view: View)

用于协作APM打点

Link copied to clipboard
abstract fun initChatMentionFragment(fragment: Fragment)

因为Mention的置顶背景色要单独处理,但是cell无法获知自己属于哪个fragment,因此这里就加了个拦截器方法 用来处理Cell,用于区分是否来源于Mention

Link copied to clipboard
abstract fun notifyChatFragmentItemChanged(fragment: Fragment, chatId: Long)
Link copied to clipboard
abstract fun onMsgEvent(fragment: Fragment, data: Any)

用于拦截KIT页面的消息传递,主要兼容协作会话列表item选中后的高亮效果

Link copied to clipboard
abstract fun onViewCreated(fragment: Fragment)

主要用于设置消息未读数

Link copied to clipboard
abstract fun openRobotDetailPage(activity: Activity, chatId: String, robotId: String)

KIT暂不支持机器人详情页,这里做个桥接

Link copied to clipboard
abstract fun sendHighlightMessage(chatId: Long)

平板模式下的会话列表高亮事件

Link copied to clipboard
abstract fun sendListItemSelected(fragment: Fragment, selected: Boolean, type: String)

平板模式下的列表高亮事件

Link copied to clipboard
abstract fun setCategoryExt(): Map<Int, Pair<Int, Fragment>>?

设置分组扩展 key -><图标,fragment>