Chat / Android
Chat Android v4
Chat Android
Chat
Android
Version 4
Home
/
Chat
/
Android
/
Message

Retrieve number of channels with unread messages

Using the getTotalUnreadChannelCount method, you can retrieve the total number of group channels in which a user has one or more unread messages.

SendbirdChat.getTotalUnreadChannelCount { totalUnreadChannelCount, e ->
    if (e != null) {
        // Handle error.
    }

    // ...
}