Setup

@Composable
fun <T : Route> Setup(modifier: Modifier = Modifier, key: RouteKey<T>, initial: T, controller: ComposeNavigator.Controller<T>, content: @Composable (T) -> Unit)

An entry to setup navigation.

Destinations should be managed within content. content is composable lambda that receives a parameter of type T which is the current active destination in the backstack.

See also

Parameters

key

Will be used for uniquely identifying this Route in the composition tree.

initial

The start destination for the navigation.

controller

Controller that will be used for managing navigation for key