getUnreadMessages

suspend fun getUnreadMessages(predicate: Predicate<Message>? = null): List<Message>

Gets a list of unread RichPushMessages, filtered by the provided predicate, and sorted by descending sent-at date.

Return

List of sorted Messages.

Parameters

predicate

A predicate for filtering messages. If null, no predicate will be applied.