When this card expires and should stop being shown to the user.
Object of string/string key/value pairs.
The id of the card. This will be reported back to Braze with events for analytics purposes.
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 dismiss this card programmatically.
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.
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.
Abstract base for news feed cards. Use subclasses
ClassicCard
,CaptionedImage
,Banner
, andControlCard
.