Skip to content
v1
文档/Android SDK/会话

移除会话监听

接口

kotlin
fun BimConversationManager.removeConversationListener(listener: BimConversationListener?)
fun BimConversationManager.removeConversationListener(key: String)

代码示例

kotlin
// 方式1:按 listener 移除
BimImManager.getInstance()
    .getConversationManager()
    .removeConversationListener(conversationListener)

// 方式2:按 key 移除
BimImManager.getInstance()
    .getConversationManager()
    .removeConversationListener("conversation_listener")