NavHostKt

public final class NavHostKt


Summary

Public methods

static final @NonNull NavGraph
NavHostKt.createGraph(
    NavHost receiver,
    @IdRes int id,
    @IdRes int startDestination,
    @ExtensionFunctionType Function1<NavGraphBuilderUnit> builder
)

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

static final @NonNull NavGraph
NavHostKt.createGraph(
    NavHost receiver,
    String startDestination,
    String route,
    @ExtensionFunctionType Function1<NavGraphBuilderUnit> builder
)

Construct a new NavGraph

Public methods

NavHostKt.createGraph

public static final @NonNull NavGraph NavHostKt.createGraph(
    NavHost receiver,
    @IdRes int id,
    @IdRes int startDestination,
    @ExtensionFunctionType Function1<NavGraphBuilderUnit> builder
)

Construct a new NavGraph

NavHostKt.createGraph

public static final @NonNull NavGraph NavHostKt.createGraph(
    NavHost receiver,
    String startDestination,
    String route,
    @ExtensionFunctionType Function1<NavGraphBuilderUnit> builder
)

Construct a new NavGraph