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
Version: 11.0.0
Platform: androidJvm
Interface that defines templates used to specify the layout of push notifications. It extends Parcelable for Android serialization.
1interface Template : ParcelableRichButtonTemplate (com.salesforce.marketingcloud.pushmodels.rich.buttons)CarouselFullTemplate (com.salesforce.marketingcloud.pushmodels.rich.carousel)1abstract val identifier: String?Optional string identifier for the template.
1abstract val style: Style?Optional Style object defining visual presentation.
1abstract val type: Template.TypeRequired enum value specifying the template type.
1enum Type : Parcelable, Enum<Template.Type>Enumeration defining available template types, implements both Parcelable and Enum.
Represents a rich buttons template type.
Represents a carousel full template type.
entries
1val entries: EnumEntries<Template.Type>Provides an immutable list of all enum entries in declaration order.
value
1val value: StringString value associated with the enum constant.
valueOf(value: String)
1fun valueOf(value: String): Template.TypeReturns the enum constant matching the specified name (exact match required, no whitespace).
Returns: Template.Type
values()
1fun values(): Array<Template.Type>Returns an array of all constants in declaration order.
Returns: Array<Template.Type>
This interface is part of the Salesforce Marketing Cloud Unified SDK for Android and provides the foundation for rich notification layouts. The template system allows developers to create visually rich push notifications with different layouts such as buttons and carousels.