UrgentMsgService

interface UrgentMsgService : KIMISdkLinkupService

Functions

Link copied to clipboard
Link copied to clipboard
abstract fun createUrgentDetailPage(activity: Activity?, chatID: Long?, chatType: Int, messageID: String)

跳转到加急消息设置页面 - 不判断异常情况直接跳转

Link copied to clipboard
abstract fun createUrgentDetailPageAndCheckValid(activity: Activity?, chatID: Long?, chatType: Int, sendUID: String, messageID: String)

跳转到加急消息设置页面

Link copied to clipboard
abstract fun createUrgentDetailPageFromUnreadGroup(activity: Activity?, chatID: Long?, chatType: Int, messageID: String, unReadUrgentMemberIds: ArrayList<Long>)

从群聊未读消息页面跳转到加急消息设置页面

Link copied to clipboard
abstract fun createUrgentRelationPage(activity: Activity?, chatID: Long?, chatType: Int, messageID: String)

跳转到加急消息已读列表

Link copied to clipboard
abstract fun getUrgentReadHintString(chatType: Int, finishedSize: Int, unfinishedSize: Int): String

获取消息加急已读的信息

Link copied to clipboard
abstract fun isAbleToUrgentByMsgID(chatID: String, messageID: String): MutableLiveData<Pair<Boolean, KIMCoreMessage>>

根据消息ID判断是否为加急消息

Link copied to clipboard
abstract fun isAbleToUrgentByMsgObject(message: KIMCoreMessage): Boolean

根据消息ID判断是否为加急消息

Link copied to clipboard
abstract fun isUrgentMsgByMsgExt(extString: String?): Boolean

是否是加急消息

Link copied to clipboard
abstract fun isUrgentStrongNoticeByType(noticeType: String): Boolean

是否是加急消息强提醒

Link copied to clipboard
abstract fun registerUrgentMsgObserver(view: View, message: KIMCoreMessage)

注册加急消息的监听

Link copied to clipboard
abstract fun registerUrgentMsgReadManager(lifecycleOwner: LifecycleOwner)

聊天页面注册消息已读/未读监听

Link copied to clipboard

专用于协作使用 适配一些组件还没复用的情况 复用完成后可删除代码

Link copied to clipboard
abstract fun unRegisterUrgentMsgObserver(view: View, message: KIMCoreMessage)

反注册加急消息的监听

Link copied to clipboard
abstract fun urgentMessageByID(chatType: Int, chatId: Long, msgID: String, receivers: List<Long>): MutableLiveData<Pair<Boolean, String>>

加急消息