NavGraphBuilderKt

public final class NavGraphBuilderKt


Summary

Public methods

static final @NonNull NavGraph
NavGraphBuilderKt.navigation(
    @NonNull NavigatorProvider receiver,
    @IdRes int id,
    @IdRes int startDestination,
    @NonNull Function1<@NonNull NavGraphBuilderUnit> builder
)

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

static final @NonNull NavGraph
NavGraphBuilderKt.navigation(
    @NonNull NavigatorProvider receiver,
    @NonNull String startDestination,
    @Nullable String route,
    @NonNull Function1<@NonNull NavGraphBuilderUnit> builder
)

Construct a new NavGraph

static final void
NavGraphBuilderKt.navigation(
    @NonNull NavGraphBuilder receiver,
    @IdRes int id,
    @IdRes int startDestination,
    @NonNull Function1<@NonNull NavGraphBuilderUnit> builder
)

This method is deprecated. Use routes to build your nested NavGraph instead

static final void
NavGraphBuilderKt.navigation(
    @NonNull NavGraphBuilder receiver,
    @NonNull String startDestination,
    @NonNull String route,
    @NonNull Function1<@NonNull NavGraphBuilderUnit> builder
)

Construct a nested NavGraph

Public methods

NavGraphBuilderKt.navigation

@NonNull
public static final NavGraph NavGraphBuilderKt.navigation(
    @NonNull NavigatorProvider receiver,
    @IdRes int id,
    @IdRes int startDestination,
    @NonNull Function1<@NonNull NavGraphBuilderUnit> builder
)

Construct a new NavGraph

Parameters
@IdRes int id

the destination's unique id

@IdRes int startDestination

the starting destination for this NavGraph

@NonNull Function1<@NonNull NavGraphBuilderUnit> builder

the builder used to construct the graph

Returns
NavGraph

the newly constructed NavGraph

NavGraphBuilderKt.navigation

@NonNull
public static final NavGraph NavGraphBuilderKt.navigation(
    @NonNull NavigatorProvider receiver,
    @NonNull String startDestination,
    @Nullable String route,
    @NonNull Function1<@NonNull NavGraphBuilderUnit> builder
)

Construct a new NavGraph

Parameters
@NonNull String startDestination

the starting destination's route for this NavGraph

@Nullable String route

the destination's unique route

@NonNull Function1<@NonNull NavGraphBuilderUnit> builder

the builder used to construct the graph

Returns
NavGraph

the newly constructed NavGraph

NavGraphBuilderKt.navigation

@NonNull
public static final void NavGraphBuilderKt.navigation(
    @NonNull NavGraphBuilder receiver,
    @IdRes int id,
    @IdRes int startDestination,
    @NonNull Function1<@NonNull NavGraphBuilderUnit> builder
)

Construct a nested NavGraph

Parameters
@IdRes int id

the destination's unique id

@IdRes int startDestination

the starting destination for this NavGraph

@NonNull Function1<@NonNull NavGraphBuilderUnit> builder

the builder used to construct the graph

Returns
void

the newly constructed nested NavGraph

NavGraphBu