get Channels Unread Count By No Disturb Level
public final Unit getChannelsUnreadCountByNoDisturbLevel(ChannelsUnreadCountParams params, OperationHandler<Integer> handler)
BaseChannel.getChannelsUnreadCountByNoDisturbLevel(params) { count, error -> if (error == null && count!= null) {
Parameters
message Ids
Message unique ID List, at most 20
}
val params = ChannelsUnreadCountParams(
channelTypes = listOf(ChannelType.DIRECT, ChannelType.GROUP),
levels = listOf(NotificationLevel.ALL, NotificationLevel.DEFAULT)
)
BaseChannel.getChannelsUnreadCountByNoDisturbLevel(params) { count, error ->
if (error == null && count != null) {
Based on message ID Get message.
}
}Content copied to clipboard
Usage Example: if (error == null && message!= null) {