CarouselFullTemplate
CarouselFullTemplate.CarouselItem
DID THIS ARTICLE SOLVE YOUR ISSUE?
Let us know so we can improve!
Let us know so we can improve!
com.salesforce.marketingcloud.pushmodels.rich.carousel
1data class CarouselItem(
2 val identifier: String,
3 val media: Media,
4 val title: Text? = null,
5 val subTitle: Text? = null,
6 val style: Style? = null,
7 val actions: List<Action>? = listOf(Action.OpenApp)
8) : Parcelable, PushViewA data class representing an individual item within a carousel template for Salesforce Marketing Cloud push notifications. This class implements both Parcelable for Android serialization and PushView interface.
android.os.Parcelablecom.salesforce.marketingcloud.pushmodels.data.PushView1constructor(
2 identifier: String,
3 media: Media,
4 title: Text? = null,
5 subTitle: Text? = null,
6 style: Style? = null,
7 actions: List<Action>? = listOf(Action.OpenApp)
8)1val identifier: StringUnique identifier for the carousel item.
1val media: MediaMedia content associated with this carousel item.
1val title: Text?Optional title text for the carousel item. Default is null.
1val subTitle: Text?Optional subtitle text for the carousel item. Default is null.
1open override val style: Style?Optional styling configuration for the carousel item. Default is null. Overrides the style property from PushView.
1open override val actions: List<Action>?Optional list of actions for the carousel item. Defaults to listOf(Action.OpenApp). Overrides the actions property from PushView.
1fun toJson(): JSONObjectConverts the carousel item to a JSON object representation.
Returns: JSONObject - JSON representation of the carousel item.
1open override fun toString(): StringReturns a string representation of the carousel item.
Returns: String - String representation of the object.