add Observer
public void addObserver(Array<ChannelType> conversationTypes, UnReadMessageManager.IUnReadMessageObserver observer)
Sets a listener for unread message count changes. Note: if set in an activity, call removeObserver when the activity is destroyed to avoid memory leaks.
Parameters
observer
the listener for unread message count changes.
conversation Types
the channel types to monitor for unread messages.