DynamicFragmentNavigatorDestinationBuilder

@NavDestinationDsl public final class DynamicFragmentNavigatorDestinationBuilder extends NavDestinationBuilder


DSL for constructing a new DynamicFragmentNavigator.Destination

Summary

Public fields

final String

Public constructors

DynamicFragmentNavigatorDestinationBuilder(
    DynamicFragmentNavigator navigator,
    @IdRes int id,
    String fragmentClassName
)
DynamicFragmentNavigatorDestinationBuilder(
    DynamicFragmentNavigator navigator,
    String route,
    String fragmentClassName
)

Public methods

@NonNull DynamicFragmentNavigator.Destination

Build the NavDestination by calling Navigator.createDestination.

Inherited methods

From class NavDestinationBuilder
final void
action(
    int actionId,
    @ExtensionFunctionType Function1<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(
    String name,
    @ExtensionFunctionType Function1<NavArgumentBuilderUnit> argumentBuilder
)

Add a NavArgument to this destination.

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

Add a deep link to this destination.

final void
deepLink(String uriPattern)

Add a deep link to this destination.

Public fields

moduleName

public final String moduleName

Public constructors

DynamicFragmentNavigatorDestinationBuilder

public final DynamicFragmentNavigatorDestinationBuilder(
    DynamicFragmentNavigator navigator,
    @IdRes int id,
    String fragmentClassName
)

DynamicFragmentNavigatorDestinationBuilder

public final DynamicFragmentNavigatorDestinationBuilder(
    DynamicFragmentNavigator navigator,
    String route,
    String fragmentClassName
)

Public methods

build

public @NonNull DynamicFragmentNavigator.Destination build()

Build the NavDestination by calling Navigator.createDestination.