get Channels Unread Info
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
sub Channel Id
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}")
}
}
}Content copied to clipboard
channel Ids
community channel ID Array
handler
Completion callback, Returns channel Unread Info List