awaitGetUnreadItemCount

suspend fun SendbirdChat.awaitGetUnreadItemCount(params: GroupChannelUnreadItemCountParams): Map<UnreadItemKey, Int>

Gets the unread item count of GroupChannels corresponding to GroupChannelUnreadItemCountParams.

Since

4.19.0

Parameters

params

Parameters for getting unread item count.


suspend fun SendbirdChat.awaitGetUnreadItemCount(keys: Collection<UnreadItemKey>): Map<UnreadItemKey, Int>

Deprecated

As of 4.19.0, replaced with awaitGetUnreadItemCount(params).

Replace with

import com.sendbird.android.channel.GroupChannelUnreadItemCountParams
SendbirdChat.awaitGetUnreadItemCount(GroupChannelUnreadItemCountParams(keys))

Gets the unread item count of GroupChannels from keys.

Since

4.17.0

Parameters

keys

Unread item keys. Refer to UnreadItemKey.