Storyteller Stories Row View
A custom Android View that displays a horizontal row of Storyteller Stories. This View acts as a wrapper around the StorytellerStoriesRow Composable, providing a way to integrate Storyteller story rows into traditional XML layouts or use them programmatically as standard Android Views.
It is considered a legacy component. For new implementations, especially in Jetpack Compose-based UIs, using the StorytellerStoriesRow Composable directly is recommended.
This class should not be made final to allow inheritance by other SDKs (e.g., React Native).
Parameters
The Context the view is running in, through which it can access the current theme, resources, etc.
The attributes of the XML tag that is inflating the view. May be null.
An attribute in the current theme that contains a reference to a style resource that supplies default values for the view. Can be 0 to not look for defaults.
Properties
The configuration for this Stories view. It must be an instance of StorytellerStoriesView.ListConfiguration. Setting this property will update the internal StorytellerStoriesDataModel used by the underlying Composable content, applying the specified categories, theme, style, display limit, and cell type. If the provided value is not a StorytellerStoriesView.ListConfiguration, default or empty values might be used.
The delegate to be notified of events from this Storyteller list view, such as data loading and player dismissal. See StorytellerListViewDelegate for more details. For more information on available delegates, see the Storyteller Delegates Documentation.
Optional SearchInput to filter the Stories displayed in this view. Setting this property will update the internal state and potentially re-filter the displayed Stories. This is typically used when the Stories view is part of a search results interface.
Functions
Reloads the data for the Stories displayed in this row. This method posts the reload operation to the main thread and then launches a coroutine to call reloadData() on the internal StorytellerRowState, which in turn triggers the data fetching and UI update process for the underlying StorytellerStoriesRow Composable.
If you are using this fast view inside a RecyclerView, you should call this method to set the view holder's parent as the view tree view model store owner.