Edit in GitHubLog an issue

InboxTemplate

Data class containing the properties for rendering the inbox container, as configured in Adobe Journey Optimizer.

Properties

PropertyTypeDescription
heading
The heading text displayed at the top of the inbox.
layout
The layout orientation of the inbox (VERTICAL or HORIZONTAL).
capacity
Int
The maximum number of content cards to display in the inbox.
emptyMessage
The message to display when the inbox is empty.
emptyImage
The image to display when the inbox is empty.
isUnreadEnabled
Boolean
Whether unread indicators are enabled for content cards.
unreadBgColor
The background color for unread cards with light and dark theme support.
unreadIcon
The icon to display as the unread indicator.
unreadIconAlignment
The alignment position of the unread icon on cards.

Class Definition

Copied to your clipboard
data class InboxTemplate(
val heading: AepText,
val layout: AepInboxLayout,
val capacity: Int,
val emptyMessage: AepText? = null,
val emptyImage: AepImage? = null,
val isUnreadEnabled: Boolean = false,
val unreadBgColor: AepColor? = null,
val unreadIcon: AepImage? = null,
val unreadIconAlignment: Alignment? = null
)

AepInboxLayout

Enum representing the layout orientation of the inbox.

ValueDescription
VERTICAL
Cards are displayed in a vertical scrolling list (LazyColumn).
HORIZONTAL
Cards are displayed in a horizontal scrolling list (LazyRow).

Usage Example

Copied to your clipboard
when (val state = inboxUIState) {
is InboxUIState.Success -> {
val template = state.template
// Access inbox configuration
val headingText = template.heading
val isVertical = template.layout == AepInboxLayout.VERTICAL
val maxCards = template.capacity
val showUnreadIndicators = template.isUnreadEnabled
// Check if inbox is empty
if (state.items.isEmpty()) {
// Display template.emptyMessage and template.emptyImage
}
}
}
  • Privacy
  • Terms of Use
  • Do not sell or share my personal information
  • AdChoices
Copyright © 2026 Adobe. All rights reserved.