NavGraphBuilder

@NavDestinationDsl public class NavGraphBuilder extends NavDestinationBuilder

Known direct subclasses

DSL for constructing a new NavGraph

Summary

Public constructors

NavGraphBuilder(
    @NonNull NavigatorProvider provider,
    @IdRes int id,
    @IdRes int startDestination
)

DSL for constructing a new NavGraph

NavGraphBuilder(
    @NonNull NavigatorProvider provider,
    @NonNull String startDestination,
    @Nullable String route
)

DSL for constructing a new NavGraph

Public methods

final void

Add the destination to the NavGraphBuilder

@NonNull NavGraph

Build the NavDestination by calling Navigator.createDestination.

final void
<D extends NavDestination> destination(
    @NonNull NavDestinationBuilder<@NonNull D> navDestination
)

Build and add a new destination to the NavGraphBuilder

final void

Adds this destination to the NavGraphBuilder

Extension functions

final void

This method is deprecated. Use routes to build your ActivityDestination instead

final void

Construct a new ActivityNavigator.Destination

final void

This method is deprecated. Use routes to create your DialogFragmentDestination instead

final void

This method is deprecated. Use routes to create your DialogFragmentDestination instead

final void

Construct a new DialogFragmentNavigator.Destination

final void

Construct a new DialogFragmentNavigator.Destination

final void
<F extends Fragment> FragmentNavigatorDestinationBuilderKt.fragment(
    @NonNull NavGraphBuilder receiver,
    @IdRes int id
)

This method is deprecated. Use routes to create your FragmentDestination instead