Package-level declarations

Types

Link copied to clipboard

A special type of FonamentEvent for navigation events.

Link copied to clipboard

A functional interface for handling FonamentNavigationEvents.

Functions

Link copied to clipboard
inline fun <N : FonamentNavigationEvent> FonamentStatelessContent.NavigationNode(navigationEventHandler: FonamentNavigationEventHandler<N> = FonamentNavigationEventHandler { })

Wrapper of FonamentStatelessContent.invoke that receives a FonamentNavigationEventHandler. You can use this function to create a navigation entry node in your navigation graph.

inline fun <N : FonamentNavigationEvent, U : FonamentUIState> FonamentUI<U>.NavigationNode(navigationEventHandler: FonamentNavigationEventHandler<N> = FonamentNavigationEventHandler { }, viewModel: FonamentViewModel<U>)

Wrapper of FonamentUI.invoke that receives a FonamentNavigationEventHandler and a viewModel. You can use this function to create a navigation entry node in your navigation graph.

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.