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
1data class Media(
2 val url: String,
3 val altText: Text? = null,
4 val style: Style? = null,
5 val actions: List<Action>? = listOf()
6) : PushView, ParcelableA data class representing media content in push notifications. Implements both PushView and Android’s Parcelable interface.
1constructor(
2 url: String,
3 altText: Text? = null,
4 style: Style? = null,
5 actions: List<Action>? = listOf()
6)Creates a Media instance with the specified parameters.
1val url: StringThe URL of the media resource.
1val altText: Text?Optional alternative text description for the media.
1open override val style: Style?Optional styling information for the media display. Overrides PushView.style.
1open override val actions: List<Action>?Optional list of actions associated with the media. Overrides PushView.actions.
1open override fun toString(): StringReturns a string representation of the Media object.
1object CompanionCompanion object for the Media class.