Text

Package: com.salesforce.marketingcloud.pushmodels.data

Module: Push Models Module v1.0.2

Platform: androidJvm


A data class representing text content in push notifications. Implements Parcelable and PushView interfaces.


Creates a Text instance with the specified content, optional styling, and optional actions.

Parameters:

  • text - The string content to display
  • style - Optional styling configuration (defaults to null)
  • actions - Optional list of actions associated with the text (defaults to empty list)

The text content to be displayed.

Optional styling configuration for the text appearance.

Optional list of actions that can be triggered from this text element.


Returns a string representation of the Text object.

Returns: String representation of this instance


Companion object for the Text class.


  • Parcelable - Android parcelable interface for serialization
  • PushView - Interface for push notification view elements