StorytellerFollowableCategoryCustomScreen

data class StorytellerFollowableCategoryCustomScreen(val modifier: Modifier, val category: StorytellerCategory, val onBackClicked: () -> Unit)

A data class that provides the necessary information and callbacks for a client application to render a custom screen for a followable category. This is provided by the SDK when the StorytellerDelegate.customScreenForCategory() method is invoked. For more information on implementing custom category screens, see the Storyteller Delegates Documentation.

Constructors

constructor(modifier: Modifier, category: StorytellerCategory, onBackClicked: () -> Unit)

Properties

Link copied to clipboard
val category: StorytellerCategory

The StorytellerCategory object for which the custom screen is being displayed. This provides details about the category, like its name and ID.

Link copied to clipboard

A Modifier that should be applied to the root Composable of the custom screen. This allows the Storyteller SDK to apply necessary styling or behavior.

Link copied to clipboard
val onBackClicked: () -> Unit

A callback lambda that must be invoked when the user navigates back from the custom category screen (e.g., by pressing a back button). This informs the SDK that the custom screen is no longer active. Failure to call this will result in the user being unable to navigate away from the custom screen within the SDK's flow.