Template

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.

  • RichButtonTemplate (com.salesforce.marketingcloud.pushmodels.rich.buttons)
  • CarouselFullTemplate (com.salesforce.marketingcloud.pushmodels.rich.carousel)

Optional string identifier for the template.


Optional Style object defining visual presentation.


Required enum value specifying the template type.

Enumeration defining available template types, implements both Parcelable and Enum.

RichButtons

Represents a rich buttons template type.

CarouselFull

Represents a carousel full template type.

entries

Provides an immutable list of all enum entries in declaration order.

value

String value associated with the enum constant.

valueOf(value: String)

Returns the enum constant matching the specified name (exact match required, no whitespace).

Returns: Template.Type


values()

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.