Package com.marigold.sdk.interfaces
Interface UnreadMessageCountListener
-
- All Implemented Interfaces:
public interface UnreadMessageCountListener
Listener to identify when a message was read.
For example, if you want to add some custom handling when a message is read.
You could implement a listener like this:
class MyMessageReadListener: MessageReadListener { override onMessageRead(context: Context, message: Message) { // Handle read message } }
Add your implementation using MessageStream.addUnreadMessageCountListener
... val marigold = Marigold() marigold.startEngine(getApplicationContext(), "your sdk key") marigold.addMessageReadListener(MyMessageReadListener()) ...
-
-
Method Summary
Modifier and Type Method Description abstract Unit
onUnreadMessageCountUpdated(Context context, Integer unreadCount)
Called when the unread message count has been updated. -
-
Method Detail
-
onUnreadMessageCountUpdated
abstract Unit onUnreadMessageCountUpdated(Context context, Integer unreadCount)
Called when the unread message count has been updated.
- Parameters:
unreadCount
- The new unread message count.
-
-
-
-