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 offset: Int = 0, 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, offset: Int = 0, 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 offset: Int = 0

The offset to start displaying clips from a specific position in the collection. Default is 0 (start from beginning).

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

Only use it in case of special need. This should generally remain unset. Specifies the number of tiles that should be visible on screen at any given time for row layouts. For example, a value of 2.5f would mean two full tiles and half of a third tile are visible.