public abstract static class SendBird.UserEventHandler
extends java.lang.Object
SendBird.addUserEventHandler(String, UserEventHandler)
and SendBird.removeUserEventHandler(String)
.Constructor and Description |
---|
UserEventHandler() |
Modifier and Type | Method and Description |
---|---|
abstract void |
onFriendsDiscovered(java.util.List<User> users)
A callback for when a message is received.
|
void |
onTotalUnreadMessageCountChanged(int totalCount,
java.util.Map<java.lang.String,java.lang.Integer> totalCountByCustomType)
Gets the subscribed total number of unread message of all
GroupChannel s the current user has joined,
and number of unread message of GroupChannel for all subscribed custom type. |
public abstract void onFriendsDiscovered(java.util.List<User> users)
users
- The discovered friends list.public void onTotalUnreadMessageCountChanged(int totalCount, java.util.Map<java.lang.String,java.lang.Integer> totalCountByCustomType)
GroupChannel
s the current user has joined,
and number of unread message of GroupChannel
for all subscribed custom type.totalCount
- The subscribed total unread message count.totalCountByCustomType
- Total subscribed custom type unread message count. Copyright © 2021, Sendbird or its affiliates. All rights reserved.
Report a bug or request a feature
For further developer documentation, see Chat SDK Documentation. That documentation contains more detailed descriptions, conceptual overviews, definitions of terms, and code examples.