FonamentUI

abstract class FonamentUI<U : FonamentUIState>

Represents the base class for a UI Node (Screen, Dialog, ...).

Constructors

Link copied to clipboard
constructor()

Functions

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(viewModel: FonamentViewModel<U>, modifier: Modifier = Modifier, onEvent: (FonamentEvent) -> Unit = {})
Link copied to clipboard
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.