addForeverObserver

public void addForeverObserver(Array<ChannelType> conversationTypes, UnReadMessageManager.IUnReadMessageObserver observer)

Sets a permanent 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.

conversationTypes

the channel types to monitor for unread messages.