FeedUpdatedEvent

When Braze receives a new message feed in a server response, this event is fired. All of the cards in the feed are provided along with the id of the user that the feed is for (or null if no user id was set).

Constructors

Link copied to clipboard
constructor(feedCards: List<Card>, userId: String, isFromOfflineStorage: Boolean, timestamp: Long)

Functions

Link copied to clipboard
open fun getCardCount(): Int
The total number of cards in the feed.
open fun getCardCount(category: CardCategory): Int
open fun getCardCount(categories: EnumSet<CardCategory>): Int
Link copied to clipboard
open fun getFeedCards(): List<Card>
Guaranteed to not be null and to not include any null values in the list.
open fun getFeedCards(category: CardCategory): List<Card>

open fun getFeedCards(categories: EnumSet<CardCategory>): List<Card>
Returns a list of cards where each card belongs to at least one of the given categories.
Link copied to clipboard
The number of unread cards in the feed.
open fun getUnreadCardCount(category: CardCategory): Int
open fun getUnreadCardCount(categories: EnumSet<CardCategory>): Int
Link copied to clipboard
open fun getUserId(): String
Link copied to clipboard
Link copied to clipboard
The Unix timestamp (in seconds) of when this snapshot of the feed was last received from Braze's servers.
Link copied to clipboard
open fun toString(): String