RichButton
Package: com.salesforce.marketingcloud.pushmodels.rich.buttons
Module: Push Models Module v1.0.2
Hierarchy: RichButtonTemplate > RichButton
A data class representing a rich button component in the Salesforce Marketing Cloud Unified SDK. This class implements Parcelable for Android serialization and PushView for view representation.
Creates a new RichButton instance with the specified parameters.
Unique identifier for the button.
Optional text content for the button.
Optional icon resource identifier.
Optional styling configuration (overrides PushView).
List of actions to execute when the button is pressed. Defaults to listOf(Action.OpenApp) (overrides PushView).
Converts the RichButton instance to a JSON object representation.
Returns: JSONObject containing the serialized button data.
Returns a string representation of the RichButton instance.
Returns: String representation of the object.