StorytellerClipsDataModel

data class StorytellerClipsDataModel(val collection: String, val theme: UiTheme? = null, val uiStyle: StorytellerListViewStyle = StorytellerListViewStyle.AUTO, val displayLimit: Int = Int.MAX_VALUE, val cellType: StorytellerListViewCellType = StorytellerListViewCellType.SQUARE, val visibleTiles: Float? = null, val context: StorytellerAnalyticsContext? = null) : StorytellerDataModel

Data model for displaying a list of Clips from a specific collection. For more details on configuring Storyteller lists, see the Storyteller Lists Documentation.

Constructors

Link copied to clipboard
constructor(collection: String, theme: UiTheme? = null, uiStyle: StorytellerListViewStyle = StorytellerListViewStyle.AUTO, displayLimit: Int = Int.MAX_VALUE, cellType: StorytellerListViewCellType = StorytellerListViewCellType.SQUARE, visibleTiles: Float? = null, context: StorytellerAnalyticsContext? = null)

Properties

Link copied to clipboard

The StorytellerListViewCellType for the Clip items.

Link copied to clipboard

The ID of the Clips collection to display. This is mandatory; if blank, the model is isValid false.

Link copied to clipboard
open override val context: StorytellerAnalyticsContext? = null

Optional StorytellerAnalyticsContext containing integrator-defined key-value pairs for analytics attribution. This context will be included with all analytics events originating from this UI instance. It is never sent to the Storyteller API.

Link copied to clipboard
open override val displayLimit: Int

The maximum number of Clips to display.

Link copied to clipboard
open override val id: String

A unique identifier for this specific data model instance. It's a combination of the key and an internal uuid.

Link copied to clipboard
open override val isValid: Boolean

A StorytellerClipsDataModel is valid if the collection ID is not blank.

Link copied to clipboard
open override val theme: UiTheme? = null

Optional UiTheme to customize the appearance of this specific list.

Link copied to clipboard

The StorytellerListViewStyle for this list.

Link copied to clipboard
open override val visibleTiles: Float? = null

Optional number of tiles that should be visible on screen for row layouts. For example, a value of 2.5f would show two full tiles and half of a third tile. The actual row height will be calculated based on this value and the device's default font size. If the user has changed their font scale significantly, the layout will automatically adapt for better accessibility.