ComposeNavigatorDestinationBuilder


DSL for constructing a new ComposeNavigator.Destination

Summary

Public constructors

DSL for constructing a new ComposeNavigator.Destination

Cmn
ComposeNavigatorDestinationBuilder(
    navigator: ComposeNavigator,
    route: KClass<*>,
    typeMap: Map<KTypeNavType<*>>,
    content: @Composable AnimatedContentScope.(NavBackStackEntry) -> Unit
)

DSL for constructing a new ComposeNavigator.Destination

Cmn

Public functions

open ComposeNavigator.Destination

Build the NavDestination by calling Navigator.createDestination.

Cmn

Protected functions

open ComposeNavigator.Destination

Instantiate a new instance of D that will be passed to build.

Cmn

Inherited functions

From androidx.navigation.NavDestinationBuilder
Unit
argument(name: String, argumentBuilder: NavArgumentBuilder.() -> Unit)

Add a NavArgument to this destination.

Cmn
Unit
argument(name: String, argument: NavArgument)

Add a NavArgument to this destination.

Cmn
inline Unit
<T : Any> deepLink(basePath: String)

Add a deep link to this destination.

Cmn
Unit
deepLink(navDeepLink: NavDeepLinkDslBuilder.() -> Unit)

Add a deep link to this destination.

Cmn
Unit
deepLink(navDeepLink: NavDeepLink)

Add a deep link to this destination.

Cmn
Unit
deepLink(uriPattern: String)

Add a deep link to this destination.

Cmn
inline Unit
<T : Any> deepLink(basePath: String, noinline navDeepLink: NavDeepLinkDslBuilder.() -> Unit)

Add a deep link to this destination.

Cmn
Unit
<T : Any> deepLink(route: KClass<T>, basePath: String, navDeepLink: NavDeepLinkDslBuilder.() -> Unit)

Add a deep link to this destination.

Cmn

Inherited properties

From androidx.navigation.NavDestinationBuilder
CharSequence?

The descriptive label of the destination

Cmn
Navigator<ComposeNavigator.Destination>

The navigator the destination that will be used in instantiateDestination to create the destination.

Cmn
String?

The destination's unique route.

Cmn

Public constructors

ComposeNavigatorDestinationBuilder

ComposeNavigatorDestinationBuilder(
    navigator: ComposeNavigator,
    route: String,
    content: @Composable AnimatedContentScope.(NavBackStackEntry) -> Unit
)

DSL for constructing a new ComposeNavigator.Destination

Parameters
navigator: ComposeNavigator

navigator used to create the destination

route: String

the destination's unique route

content: @Composable AnimatedContentScope.(NavBackStackEntry) -> Unit

composable for the destination

ComposeNavigatorDestinationBuilder

ComposeNavigatorDestinationBuilder(
    navigator: ComposeNavigator,
    route: KClass<*>,
    typeMap: Map<KTypeNavType<*>>,
    content: @Composable AnimatedContentScope.(NavBackStackEntry) -> Unit
)

DSL for constructing a new ComposeNavigator.Destination

Parameters
navigator: ComposeNavigator

navigator used to create the destination

route: KClass<*>

the destination's unique route from a KClass

typeMap: Map<KTypeNavType<*>>

map of destination arguments' kotlin type KType to its respective custom NavType. May be empty if route does not use custom NavTypes.

content: @Composable AnimatedContentScope.(NavBackStackEntry) -> Unit

composable for the destination

Public functions

build

open fun build(): ComposeNavigator.Destination

Build the NavDestination by calling Navigator.createDestination.

Protected functions

instantiateDestination

protected open fun instantiateDestination(): ComposeNavigator.Destination

Instantiate a new instance of D that will be passed to build.

By default, this calls Navigator.createDestination on navigator, but can be overridden to call a custom constructor, etc.

Public properties