Chat / Android
Chat Android v4
Chat Android
Chat
Android
Home
/
Chat
/
Android
/
Message
This is the new Docs for Chat SDK v4 for Android. To see the previous Docs, click here.

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.
    }

    // ...
}