new Feed()
A collection of ab.Card descendents (ab.ClassicCard, ab.CaptionedImage, ab.Banner).
Subscribe to receive feed updates via appboy.subscribeToFeedUpdates(),
or get the currently cached feed with appboy.getCachedFeed().
Properties:
Name | Type | Description |
---|---|---|
cards |
Array | Array of ab.Card descendents (ab.ClassicCard, ab.CaptionedImage, |
lastUpdated |
Date | When this collection of cards was received from Appboy servers. If null, it means the |
Methods
-
getUnreadCardCount()
-
Get the current unread card count. This is useful for powering badges on your control for showing the news feed.
Note that Appboy will not refresh news feed cards on new page loads (and so this function will return 0) until you
call appboy.showFeed() appboy.requestFeedRefresh()