StorytellerHomeState

class StorytellerHomeState(val lazyListState: LazyListState = LazyListState())

A state holder for the StorytellerHome Composable. It encapsulates a LazyListState to manage the Home screen's overall scroll position and provides a method to reload the data for all items within the Home screen.

This state is typically created and remembered using rememberStorytellerHomeState.

Parameters

lazyListState

The underlying LazyListState that this state object will manage for the main vertical list of the Home screen. Defaults to a new state created by LazyListState().

Constructors

Link copied to clipboard
constructor(lazyListState: LazyListState = LazyListState())

Properties

Link copied to clipboard

Functions

Link copied to clipboard
suspend fun reloadData()

Reloads the data for the entire Storyteller Home screen. This function will first scroll the main Home list to the beginning (index 0, offset 0). It then invokes an internal callback that triggers the data fetching and UI update process for all Storyteller list components configured within the Home screen.