Style
Template
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
1interface Style : ParcelableAn interface for defining text styling in push notifications. Implements Android’s Parcelable for data transfer.
1enum class Alignment : Enum<Style.Alignment>Enumeration for text alignment options.
1object CompanionCompanion object for the Style interface.
1enum class FontStyle : Enum<Style.FontStyle>Enumeration for font style variations.
1enum class Size : Enum<Style.Size>Enumeration for font size options.
1data class StyleImpl(
2 val fontColor: String? = null,
3 val backgroundColor: String? = null,
4 val fontSize: Style.Size? = null,
5 val alignment: Style.Alignment? = null,
6 val fontStyle: Style.FontStyle? = null,
7 var span: Spanned? = null
8) : StyleData class implementation of Style interface. Defines text appearance for push notifications with a span property containing rendered HTML.
1abstract val alignment: Style.Alignment?Text alignment configuration.
1abstract val backgroundColor: String?Background color for the styled text.
1abstract val fontColor: String?Font color for the text.
1abstract val fontSize: Style.Size?Font size specification.
1abstract val fontStyle: Style.FontStyle?Font style configuration.
1open override fun describeContents(): IntParcelable implementation method describing contents.
1open override fun writeToParcel(parcel: Parcel, flags: Int)Parcelable implementation for writing object data to a Parcel.
Parameters:
parcel - The Parcel to write toflags - Additional flags for writingPart of Salesforce Marketing Cloud Unified SDK 11.0.0