ContentItem

data class ContentItem(val itemKey: String?, val title: String?, val subtitle: String?, val displayOrder: Int, val actionType: ContentActionType, val actionUrl: String?, val accessibilityLabel: String?, val iconMedia: ContentMedia?, val bannerMedia: ContentMedia?, val ctaText: String?, val secondaryUrl: String?, val overlayPosition: ContentOverlayPosition, val overlayLogoEnabled: Boolean, val overlayCaption: String?, val overlaySubCaption: String?, val altText: String?, val contentTypeKey: String?, val renderer: ContentRenderer?, val payloadJson: String?)

One personalized content item - a bottom-navigation tab, a banner slide, or the menu page.

Constructors

Link copied to clipboard
constructor(itemKey: String?, title: String?, subtitle: String?, displayOrder: Int, actionType: ContentActionType, actionUrl: String?, accessibilityLabel: String?, iconMedia: ContentMedia?, bannerMedia: ContentMedia?, ctaText: String?, secondaryUrl: String?, overlayPosition: ContentOverlayPosition, overlayLogoEnabled: Boolean, overlayCaption: String?, overlaySubCaption: String?, altText: String?, contentTypeKey: String?, renderer: ContentRenderer?, payloadJson: String?)

Properties

Link copied to clipboard

Screen-reader label, or null to use title.

Link copied to clipboard

How actionUrl is opened.

Link copied to clipboard

Where a tap goes - an activefit:// deep link or a web URL - or null for a non-tappable item.

Link copied to clipboard

Image description for screen readers, or null.

Link copied to clipboard

The slide image (banners), or null.

Link copied to clipboard

Content type, e.g. app-content.block.banner-item.

Link copied to clipboard

Banner call-to-action label, or null.

Link copied to clipboard

Position within its placement; items arrive sorted.

Link copied to clipboard

The item's icon (bottom-navigation tabs), or null.

Link copied to clipboard

Stable key of the item, e.g. home or explore.

Link copied to clipboard

Banner overlay heading, or null.

Link copied to clipboard

Whether the banner overlay shows the brand logo.

Link copied to clipboard

Where the banner caption sits on the image.

Link copied to clipboard

Banner overlay body, or null.

Link copied to clipboard

The item's full renderer payload as a JSON string, for fields the SDK does not model yet.

Link copied to clipboard

The renderer contract, or null.

Link copied to clipboard

Banner secondary link, or null.

Link copied to clipboard

Secondary text, or null.

Link copied to clipboard

Display title.