DialogFragmentNavigatorDestinationBuilder

@NavDestinationDsl public final class DialogFragmentNavigatorDestinationBuilder extends NavDestinationBuilder


DSL for constructing a new DialogFragmentNavigator.Destination

Summary

Public constructors

DSL for constructing a new DialogFragmentNavigator.Destination

DSL for constructing a new DialogFragmentNavigator.Destination

Public methods

@NonNull DialogFragmentNavigator.Destination

Build the NavDestination by calling Navigator.createDestination.

Inherited methods

From class NavDestinationBuilder
final void
action(
    int actionId,
    @NonNull Function1<@NonNull NavActionBuilderUnit> actionBuilder
)

This method is deprecated. Building NavDestinations using IDs with the Kotlin DSL has been deprecated in favor of using routes.

final void
argument(
    @NonNull String name,
    @NonNull Function1<@NonNull NavArgumentBuilderUnit> argumentBuilder
)

Add a NavArgument to this destination.

final void
deepLink(
    @NonNull Function1<@NonNull NavDeepLinkDslBuilderUnit> navDeepLink
)

Add a deep link to this destination.

final void
deepLink(@NonNull String uriPattern)

Add a deep link to this destination.

Public constructors

DialogFragmentNavigatorDestinationBuilder

public final DialogFragmentNavigatorDestinationBuilder(
    @NonNull DialogFragmentNavigator navigator,
    @IdRes int id,
    @NonNull KClass<@NonNull DialogFragment> fragmentClass
)

DSL for constructing a new DialogFragmentNavigator.Destination

Parameters
@NonNull DialogFragmentNavigator navigator

navigator used to create the destination

@IdRes int id

the destination's unique id

@NonNull KClass<@NonNull DialogFragment> fragmentClass

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

DialogFragmentNavigatorDestinationBuilder

public final DialogFragmentNavigatorDestinationBuilder(
    @NonNull DialogFragmentNavigator navigator,
    @NonNull String route,
    @NonNull KClass<@NonNull DialogFragment> fragmentClass
)

DSL for constructing a new DialogFragmentNavigator.Destination

Parameters
@NonNull DialogFragmentNavigator navigator

navigator used to create the destination

@NonNull String route

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

@NonNull KClass<@NonNull DialogFragment> fragmentClass

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

Public methods

build

@NonNull
public DialogFragmentNavigator.Destination build()

Build the NavDestination by calling Navigator.createDestination.