Class: ContentCards

ContentCards

new ContentCards()

A collection of ab.Card descendents (ab.ClassicCard, ab.CaptionedImage, ab.Banner). If you use Appboy's display module to render content cards, you generally shouldn't need to interact with this class, but if you are building your own content cards interface manually, use appboy.getCachedContentCards() to get the most recent ab.ContentCards object.

Properties:
Name Type Description
cards Array

Array of ab.Card descendents (ab.ClassicCard, ab.CaptionedImage, ab.Banner).

lastUpdated Date

When this collection of cards was received from Appboy servers. If null, it means the content cards are still being fetched for this user.

Members

getUnviewedCardCount

Get the current unviewed card count. This is useful for powering badges on your control for showing the content cards.