When this card expires and should stop being shown to the user.
Object of string/string key/value pairs. Defaults to empty object {}.
The id of the card. This will be reported back to Braze with events for analytics purposes.
Whether this card is a ControlCard.
Whether to pin this card to the top of the view.
When this card was last modified.
Whether this card has been shown to the user.
Call this method if you wish to programmatically remove the card from the feed and log a dismissal. This method is meant to be used with the Braze UI.
If you are using your own UI, this method will have no effect. Instead, you should use logCardDismissal
to
log analytics and then remove the card from the DOM manually.
Remove all event subscriptions from this message.
Remove an event subscription that you previously subscribed to.
The identifier of the subscription you wish to remove, returned by the method you initially used to create it.
Subscribe to receive click events. The subscriber callback will be called whenever this card is clicked by the user.
The callback function to receive click events. This function will be invoked with no arguments when this card records a click.
The identifier of the subscription created. This can be passed to Card.removeSubscription
to cancel the subscription. Returns null if the subscriber passed is not a function.
Subscribe to receive dismissed events. The subscriber callback will be called whenever this card is dismissed by the user.
The callback function to receive dismissed events. This function will be invoked with no arguments when this card records a dismissal.
The identifier of the subscription created. This can be passed to Card.removeSubscription
to cancel the subscription. Returns null if the subscriber passed is not a function.
Abstract base for news feed and Content Cards cards. Use subclasses
ClassicCard
,CaptionedImage
,ImageOnly
, andControlCard
.