ContentPage

data class ContentPage(val placement: ContentPlacement?, val surfaceCode: String?, val locale: String?, val items: List<ContentItem>, val eTag: String?)

The personalized content of one placement and surface.

The ContentApi answers an empty items list both when nothing is configured and when it failed to resolve the member's content, so treat an empty page as "show nothing", not as a confirmed configuration.

Constructors

Link copied to clipboard
constructor(placement: ContentPlacement?, surfaceCode: String?, locale: String?, items: List<ContentItem>, eTag: String?)

Properties

Link copied to clipboard
val eTag: String?

The version tag of this content, or null.

Link copied to clipboard

The items, sorted by ContentItem.displayOrder.

Link copied to clipboard

The locale the content was resolved in, e.g. en-US.

Link copied to clipboard

The placement, or null for a code this SDK version does not know.

Link copied to clipboard

The surface the server resolved, e.g. bottom-nav.