NavHostKt

public final class NavHostKt


Summary

Public methods

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

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

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

Construct a new androidx.navigation.NavGraph that supports dynamic navigation destinations

Public methods

NavHostKt.createGraph

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

Construct a new androidx.navigation.NavGraph that supports dynamic navigation destinations

NavHostKt.createGraph

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

Construct a new androidx.navigation.NavGraph that supports dynamic navigation destinations