FonamentContent

Defines the content of some UI Node.

Samples

dev.sergiobelda.fonament.samples.SampleContentPreview

Inheritors

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
abstract fun createContentState(uiState: U): C
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
operator fun invoke(uiState: U, contentState: C = createContentState(uiState), modifier: Modifier = Modifier, onEvent: (FonamentEvent) -> Unit = {})
Link copied to clipboard
inline fun <N : FonamentNavigationEvent, U : FonamentUIState, C : FonamentContentState> FonamentContent<U, C>.NavigationNode(uiState: U, contentState: C, navigationEventHandler: FonamentNavigationEventHandler<N> = FonamentNavigationEventHandler { })

Wrapper of FonamentContent.invoke that receives a FonamentNavigationEventHandler and the uiState and contentState. You can use this function to create a navigation entry node in your navigation graph.