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 of RichButton objects to display
  • style: Optional styling configuration for the template
PropertyTypeDescription
identifierString?Override from Template, defaults to null
itemsList<RichButtonTemplate.RichButton>The list of rich buttons to display
styleStyle?Optional styling configuration
typeTemplate.TypeOverride from Template indicating template type

Properties:

  • identifier: Unique identifier for the button
  • title: Optional text content for the button
  • icon: Optional icon resource string
  • style: Optional button-specific styling
  • actions: 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 interface
  • Style - Styling configuration class
  • Action - Action type for button interactions
  • Text - Text content class
  • PushView - Interface for push notification views

Source: MarketingCloudSDK-Android JavaDocs