getChannelsUnreadInfo

public final Unit getChannelsUnreadInfo(Array<String> channelIds, OperationHandler<List<ChannelUnreadInfo>> handler)

Get specified community channel List Unread Info.

Batch Get multiple community channel Unread message count, @message count and DND Status etc. Info.

Parameters

subChannelId

sub-channel ID

CommunityChannel.getChannelsUnreadInfo(arrayOf("community_1", "community_2")) { list, error ->
if (error == null && list != null) {
list.forEach { info ->
println("${info.channelId}: unread=${info.unreadMessageCount}")
}
}
}
channelIds

community channel ID Array

handler

Completion callback, Returns channel Unread Info List