get Unread Channels
public final Unit getUnreadChannels(List<ChannelType> channelTypes, OperationHandler<List<BaseChannel>> handler)
System (ChannelType.SYSTEM) three types Channel type, Not supported chatroom and community (ultra group).
Usage Example:
@param messageIds Message unique ID List, at most 20
```kotlin
BaseChannel.getUnreadChannels(
listOf(ChannelType.DIRECT, ChannelType.GROUP)
) { channels, error ->
if (error == null && channels != null) {
channels.forEach { channel ->
println("${channel.channelId} has unread messages")
}
}
}Content copied to clipboard
Usage Example:
Content copied to clipboard