ImageOnlyTemplate

data-variant=info
data-slots=text
ImageOnlyTemplate is only available in AEP SDK BOM version 3.15.0+.

Class which implements AepUITemplateType and represents an image-only template.

Public Properties

Property
Type
Description
id
String
The unique identifier for this template.
image
AepImage
The details of the image to be displayed.
actionUrl
String?
The URL to be opened when the image-only card is clicked.
dismissBtn
AepIcon?
The details for the image-only template dismiss button.

Methods

getType

Returns the type of this template, which is AepUITemplateType.IMAGE_ONLY.

Syntax

data-slots=heading, code
data-repeat=1
data-languages=Kotlin

Kotlin

override fun getType() = AepUITemplateType.IMAGE_ONLY