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

会话设置

kotlin
suspend fun getConversationSetting(
    participantId: String,
    participantType: String,
): BimConversationSetting
suspend fun updateConversationSetting(
    participantId: String,
    participantType: String,
    setting: BimConversationSetting,
)
suspend fun deleteConversation(
    sequence: String,
    participantId: String,
    participantType: String,
)
kotlin
val service = BimImManager.getInstance().conversationService
val setting = service.getConversationSetting("d10001", "DISCUSSION")
service.updateConversationSetting(
    "d10001",
    "DISCUSSION",
    setting.copy(pinned = true, watched = true),
)

participantType 使用服务端约定的 USERDISCUSSIONdeleteConversationsequence 使用服务端会话序列值。