RichButtonTemplate
A data class representing a template for displaying rich buttons in push notifications. Part of the Salesforce Marketing Cloud Unified SDK Push Models Module (v1.0.2).
Package: com.salesforce.marketingcloud.pushmodels.rich.buttons
Inheritance: Implements Template
A carousel template is used to display a list of items in a carousel.
Parameters:
items: List ofRichButtonobjects to displaystyle: Optional styling configuration for the template
| Property | Type | Description |
|---|---|---|
identifier | String? | Override from Template, defaults to null |
items | List<RichButtonTemplate.RichButton> | The list of rich buttons to display |
style | Style? | Optional styling configuration |
type | Template.Type | Override from Template indicating template type |
Properties:
identifier: Unique identifier for the buttontitle: Optional text content for the buttonicon: Optional icon resource stringstyle: Optional button-specific stylingactions: List of actions to perform; defaults to opening the app
A companion object for the RichButtonTemplate class.
Returns a string representation of the RichButtonTemplate object.
Template- Parent interfaceStyle- Styling configuration classAction- Action type for button interactionsText- Text content classPushView- Interface for push notification views