DialogFragmentNavigatorDestinationBuilder


@<Error class: unknown class>
class DialogFragmentNavigatorDestinationBuilder


DSL for constructing a new DialogFragmentNavigator.Destination

Summary

Public constructors

DialogFragmentNavigatorDestinationBuilder(
    navigator: DialogFragmentNavigator,
    id: @IdRes Int,
    fragmentClass: KClass<DialogFragment>
)

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

DialogFragmentNavigatorDestinationBuilder(
    navigator: DialogFragmentNavigator,
    route: String,
    fragmentClass: KClass<DialogFragment>
)

DSL for constructing a new DialogFragmentNavigator.Destination

DSL for constructing a new DialogFragmentNavigator.Destination

Public functions

open DialogFragmentNavigator.Destination

Public constructors

DialogFragmentNavigatorDestinationBuilder

Added in 2.1.0
DialogFragmentNavigatorDestinationBuilder(
    navigator: DialogFragmentNavigator,
    id: @IdRes Int,
    fragmentClass: KClass<DialogFragment>
)

DSL for constructing a new DialogFragmentNavigator.Destination

Parameters
navigator: DialogFragmentNavigator

navigator used to create the destination

id: @IdRes Int

the destination's unique id

fragmentClass: KClass<DialogFragment>

the class name of the DialogFragment to show when you navigate to this destination

DialogFragmentNavigatorDestinationBuilder

DialogFragmentNavigatorDestinationBuilder(
    navigator: DialogFragmentNavigator,
    route: String,
    fragmentClass: KClass<DialogFragment>
)

DSL for constructing a new DialogFragmentNavigator.Destination

Parameters
navigator: DialogFragmentNavigator

navigator used to create the destination

route: String

the destination's unique route. This sets the route on the newly constructed NavDestination. This can be any valid non-empty String.

fragmentClass: KClass<DialogFragment>

the class name of the DialogFragment to show when you navigate to this destination

DialogFragmentNavigatorDestinationBuilder

DialogFragmentNavigatorDestinationBuilder(
    navigator: DialogFragmentNavigator,
    route: KClass<Any>,
    typeMap: Map<KType<Error class: unknown class><<Error class: unknown class>>>,
    fragmentClass: KClass<DialogFragment>
)

DSL for constructing a new DialogFragmentNavigator.Destination

Parameters
navigator: DialogFragmentNavigator

navigator used to create the destination

route: KClass<Any>

the destination's unique route from a KClass. This sets the route on the newly constructed NavDestination.

typeMap: Map<KType<Error class: unknown class><<Error class: unknown class>>>

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

fragmentClass: KClass<DialogFragment>

the class name of the DialogFragment to show when you navigate to this destination

Public functions

build

Added in 2.1.0
open fun build(): DialogFragmentNavigator.Destination