FragmentNavigatorDestinationBuilder


@NavDestinationDsl
class FragmentNavigatorDestinationBuilder : NavDestinationBuilder


DSL for constructing a new FragmentNavigator.Destination

Summary

Public constructors

FragmentNavigatorDestinationBuilder(
    navigator: FragmentNavigator,
    id: @IdRes Int,
    fragmentClass: KClass<Fragment>
)

This function is deprecated. Use routes to build your FragmentNavigatorDestination instead

FragmentNavigatorDestinationBuilder(
    navigator: FragmentNavigator,
    route: String,
    fragmentClass: KClass<Fragment>
)

DSL for constructing a new FragmentNavigator.Destination

FragmentNavigatorDestinationBuilder(
    navigator: FragmentNavigator,
    route: KClass<Any>,
    typeMap: Map<KTypeNavType<*>>,
    fragmentClass: KClass<Fragment>
)

DSL for constructing a new FragmentNavigator.Destination

Public functions

open FragmentNavigator.Destination

Inherited functions

From androidx.navigation.NavDestinationBuilder
Unit
argument(name: String, argumentBuilder: NavArgumentBuilder.() -> Unit)
Unit
argument(name: String, argument: NavArgument)
inline Unit
<T : Any> deepLink(basePath: String)
Unit
deepLink(navDeepLink: NavDeepLinkDslBuilder.() -> Unit)
Unit
deepLink(navDeepLink: NavDeepLink)
Unit
deepLink(uriPattern: String)
inline Unit
<T : Any> deepLink(basePath: String, noinline navDeepLink: NavDeepLinkDslBuilder.() -> Unit)
open FragmentNavigator.Destination

Public constructors

FragmentNavigatorDestinationBuilder

Added in 2.0.0
FragmentNavigatorDestinationBuilder(
    navigator: FragmentNavigator,
    id: @IdRes Int,
    fragmentClass: KClass<Fragment>
)

DSL for constructing a new FragmentNavigator.Destination

Parameters
navigator: FragmentNavigator

navigator used to create the destination

id: @IdRes Int

the destination's unique id

fragmentClass: KClass<Fragment>

The class name of the Fragment to show when you navigate to this destination

FragmentNavigatorDestinationBuilder

FragmentNavigatorDestinationBuilder(
    navigator: FragmentNavigator,
    route: String,
    fragmentClass: KClass<Fragment>
)

DSL for constructing a new FragmentNavigator.Destination

Parameters
navigator: FragmentNavigator

navigator used to create the destination

route: String

the destination's unique route

fragmentClass: KClass<Fragment>

The class name of the Fragment to show when you navigate to this destination

FragmentNavigatorDestinationBuilder

FragmentNavigatorDestinationBuilder(
    navigator: FragmentNavigator,
    route: KClass<Any>,
    typeMap: Map<KTypeNavType<*>>,
    fragmentClass: KClass<Fragment>
)

DSL for constructing a new FragmentNavigator.Destination

Parameters
navigator: FragmentNavigator

navigator used to create the destination

route: KClass<Any>

the route from a KClass of the destination

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.

fragmentClass: KClass<Fragment>

The class name of the Fragment to show when you navigate to this destination

Public functions

build

Added in 1.0.0
open fun build(): FragmentNavigator.Destination