Action
Media
Text
DID THIS ARTICLE SOLVE YOUR ISSUE?
Let us know so we can improve!
Let us know so we can improve!
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.
1data class Text(
2 val text: String,
3 val style: Style.StyleImpl? = null,
4 val actions: List<Action>? = listOf()
5) : Parcelable, PushView1constructor(
2 text: String,
3 style: Style.StyleImpl? = null,
4 actions: List<Action>? = listOf()
5)Creates a Text instance with the specified content, optional styling, and optional actions.
Parameters:
text - The string content to displaystyle - Optional styling configuration (defaults to null)actions - Optional list of actions associated with the text (defaults to empty list)1val text: StringThe text content to be displayed.
1open override val style: Style.StyleImpl?Optional styling configuration for the text appearance.
1open override val actions: List<Action>?Optional list of actions that can be triggered from this text element.
1open override fun toString(): StringReturns a string representation of the Text object.
Returns: String representation of this instance
1object CompanionCompanion object for the Text class.
Parcelable - Android parcelable interface for serializationPushView - Interface for push notification view elements