Content Card Types for Web

The Braze Web SDK supports several unique Content Card card types, ab.ClassicCard, ab.Banner, ab.CaptionedImage which share a base model, ab.Card.

Requesting Unviewed Content Card Count for Web

You can request the number of unread cards at any time by calling:

1
appboy.getCachedContentCards().getUnviewedCardCount();

This is often used to power badges signifying how many unread content cards there are. See the JSDocs for more information.

Key-Value Pairs

ab.Card objects may optionally carry key-value pairs as extras. These can be used to send data down along with a card for further handling by the application. Call card.extras to access these values.

WAS THIS PAGE HELPFUL?
New Stuff!