Add or remove a user event delegate
To receive information about events related to users connected to the Sendbird server, add a user event delegate
UserEventDelegate) with its unique user-defined ID.
If you want to stay informed of changes related to users and notify the changes to different client apps, define and register multiple user event delegates to each view controller.
User event types
List of user events
|Method||Invoked when||Notified devices|
There has been an update on the total number of a user's unread messages because the user read messages in group channels.
The user's devices running client apps. The devices are notified with the total number of unread messages along with a collection of the number of unread messages by custom channel type.
Add a user event delegate
The following code shows a full set of supported event callbacks with their parameters and how to add a user event delegate to the unique
Note: To retrieve
totalCountByCustomType, visit this page and contact us on Sendbird Dashboard.
Remove a user event delegate
The following code shows how to remove the user event delegate.