get Unread Item Count
fun SendbirdChat.getUnreadItemCount(params: GroupChannelUnreadItemCountParams, handler: ResultHandler<Map<UnreadItemKey, Int>>?)
Gets the unread item count of GroupChannel
s corresponding to GroupChannelUnreadItemCountParams.
Since
4.19.0
Parameters
params
Parameters for getting unread item count.
handler
Callback handler.
suspend fun SendbirdChat.getUnreadItemCount(keys: Collection<UnreadItemKey>): Map<UnreadItemKey, Int>
Deprecated
As of 4.17.0, replaced with awaitGetUnreadItemCount(keys).
Replace with
awaitGetUnreadItemCount(keys)
Content copied to clipboard
Gets the unread item count of GroupChannel
s from keys.
Since
4.15.0
Parameters
keys
Unread item keys. Refer to UnreadItemKey.
fun SendbirdChat.getUnreadItemCount(keys: Collection<UnreadItemKey>, handler: ResultHandler<Map<UnreadItemKey, Int>>?)
Deprecated
As of 4.19.0, replaced with getUnreadItemCount(params, handler).
Replace with
import com.sendbird.android.channel.GroupChannelUnreadItemCountParams
Content copied to clipboard
SendbirdChat.getUnreadItemCount(GroupChannelUnreadItemCountParams(keys), handler)
Content copied to clipboard
Gets the unread item count of GroupChannel
s from keys.
Since
4.15.0
Parameters
keys
Unread item keys. Refer to UnreadItemKey.
handler
Callback handler.