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

获取会话列表

接口

kotlin
suspend fun fetchConversationList(): List<BimConversation>

代码示例

kotlin
val conversations = BimImManager.getInstance().conversationService.fetchConversationList()
println("conversation size=${conversations.size}")

会话列表由 SDK 公开 Service 返回,变化通过 BimConversationListener 通知。Demo 或宿主不需要读取 SDK 内部 Room。