Class

DialogNavigatorDestinationBuilder

DSL for constructing a new DialogNavigator.Destination

Source set: Common
@NavDestinationDsl
public class DialogNavigatorDestinationBuilder :
    NavDestinationBuilder<DialogNavigator.Destination>

DSL for constructing a new DialogNavigator.Destination

Secondary Constructors

public constructor(
    navigator: DialogNavigator,
    route: String,
    dialogProperties: DialogProperties,
    content: @Composable (NavBackStackEntry) -> Unit,
) : super(navigator, route) {
    this.dialogNavigator = navigator
    this.dialogProperties = dialogProperties
    this.content = content
}

DSL for constructing a new DialogNavigator.Destination

Parameters

navigator navigator used to create the destination
route the destination's unique route
dialogProperties properties that should be passed to androidx.compose.ui.window.Dialog.
content composable for the destination
public constructor(
    navigator: DialogNavigator,
    route: KClass<*>,
    typeMap: Map<KType, @JvmSuppressWildcards NavType<*>>,
    dialogProperties: DialogProperties,
    content: @Composable (NavBackStackEntry) -> Unit,
) : super(navigator, route, typeMap) {
    this.dialogNavigator = navigator
    this.dialogProperties = dialogProperties
    this.content = content
}

DSL for constructing a new DialogNavigator.Destination

Parameters

navigator navigator used to create the destination
route the destination's unique route from a KClass
typeMap map of destination arguments' kotlin type KType to its respective custom NavType. May be empty if route does not use custom NavTypes.
dialogProperties properties that should be passed to androidx.compose.ui.window.Dialog.
content composable for the destination

Last updated: