NavGraphBuilderKt
public final class NavGraphBuilderKt
Summary
Public methods |
|
|---|---|
static final void |
This method is deprecated. Use routes to build your nested NavGraph instead |
static final void |
<T extends Object> navigation(Construct a nested |
static final void |
<T extends Object> navigation(Construct a nested |
static final void |
navigation(Construct a nested |
static final @NonNull NavGraph |
This method is deprecated. Use routes to build your NavGraph instead |
static final @NonNull NavGraph |
navigation(Construct a new |
static final void |
<T extends Object> navigation(Construct a nested |
static final void |
<T extends Object> navigation(Construct a nested |
static final @NonNull NavGraph |
navigation(Construct a new |
static final @NonNull NavGraph |
navigation(Construct a new |
Public methods
navigation
public static final voidnavigation(
@NonNull NavGraphBuilder receiver,
@IdRes int id,
@IdRes int startDestination,
@NonNull Function1<@NonNull NavGraphBuilder, Unit> 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 NavGraphBuilder, Unit> builder |
the builder used to construct the graph |
| Returns | |
|---|---|
void |
the newly constructed nested NavGraph |
navigation
public static final void <T extends Object> navigation(
@NonNull NavGraphBuilder receiver,
@NonNull Object startDestination,
@NonNull Map<@NonNull KType, @NonNull NavType<@NonNull ?>> typeMap,
@NonNull Function1<@NonNull NavGraphBuilder, Unit> builder
)
Construct a nested NavGraph
| Parameters | |
|---|---|
<T extends Object> |
the graph's unique route from a KClass |
@NonNull Object startDestination |
the starting destination's route from an Object for this NavGraph. The respective NavDestination must be added with route from a |
@NonNull Map<@NonNull KType, @NonNull NavType<@NonNull ?>> typeMap |
A mapping of KType to custom NavType<*> in the |
@NonNull Function1<@NonNull NavGraphBuilder, Unit> builder |
the builder used to construct the graph |
| Returns | |
|---|---|
void |
the newly constructed nested NavGraph |
navigation
public static final void <T extends Object> navigation(
@NonNull NavGraphBuilder receiver,
@NonNull KClass<@NonNull ?> startDestination,
@NonNull Map<@NonNull KType, @NonNull NavType<@NonNull ?>> typeMap,
@NonNull Function1<@NonNull NavGraphBuilder, Unit> builder
)
Construct a nested NavGraph
| Parameters | |
|---|---|
<T extends Object> |
the graph's unique route from a KClass |
@NonNull KClass<@NonNull ?> startDestination |
the starting destination's route from a |
@NonNull Map<@NonNull KType, @NonNull NavType<@NonNull ?>> typeMap |
A mapping of KType to custom NavType<*> in the |
@NonNull Function1<@NonNull NavGraphBuilder, Unit> builder |
the builder used to construct the graph |
| Returns | |
|---|---|
void |
the newly constructed nested NavGraph |
navigation
public static final void navigation(
@NonNull NavGraphBuilder receiver,
@NonNull String startDestination,
@NonNull String route,
@NonNull Function1<@NonNull NavGraphBuilder, Unit> builder
)
Construct a nested NavGraph
| Parameters | |
|---|---|
@NonNull String startDestination |
the starting destination's route for this NavGraph |
@NonNull String route |
the destination's unique route |
@NonNull Function1<@NonNull NavGraphBuilder, Unit> builder |
the builder used to construct the graph |
| Returns | |
|---|---|
void |
the newly constructed nested NavGraph |
navigation
public static final @NonNull NavGraphnavigation(
@NonNull NavigatorProvider receiver,
@IdRes int id,
@IdRes int startDestination,
@NonNull Function1<@NonNull NavGraphBuilder, Unit> builder
)
Construct a new NavGraph
navigation
public static final @NonNull NavGraph navigation(
@NonNull NavigatorProvider receiver,
@NonNull String startDestination,
String route,
@NonNull Function1<@NonNull NavGraphBuilder, Unit> builder
)
Construct a new NavGraph
navigation
public static final void <T extends Object> navigation(
@NonNull NavGraphBuilder receiver,
@NonNull KClass<@NonNull T> route,
@NonNull Object startDestination,
@NonNull Map<@NonNull KType, @NonNull NavType<@NonNull ?>> typeMap,
@NonNull Function1<@NonNull NavGraphBuilder, Unit> builder
)
Construct a nested NavGraph
| Parameters | |
|---|---|
@NonNull KClass<@NonNull T> route |
the graph's unique route from a KClass |
@NonNull Object startDestination |
the starting destination's route from an Object for this NavGraph. The respective NavDestination must be added with route from a |
@NonNull Map<@NonNull KType, @NonNull NavType<@NonNull ?>> typeMap |
A mapping of KType to custom NavType<*> in the |
@NonNull Function1<@NonNull NavGraphBuilder, Unit> builder |
the builder used to construct the graph |
| Returns | |
|---|---|
void |
the newly constructed nested NavGraph |
navigation
public static final void <T extends Object> navigation(
@NonNull NavGraphBuilder receiver,
@NonNull KClass<@NonNull T> route,
@NonNull KClass<@NonNull ?> startDestination,
@NonNull Map<@NonNull KType, @NonNull NavType<@NonNull ?>> typeMap,
@NonNull Function1<@NonNull NavGraphBuilder, Unit> builder
)
Construct a nested NavGraph
| Parameters | |
|---|---|
@NonNull KClass<@NonNull T> route |
the graph's unique route from KClass |
@NonNull KClass<@NonNull ?> startDestination |
the starting destination's route from a |
@NonNull Map<@NonNull KType, @NonNull NavType<@NonNull ?>> typeMap |
A mapping of KType to custom NavType<*> in the |
@NonNull Function1<@NonNull NavGraphBuilder, Unit> builder |
the builder used to construct the graph |
| Returns | |
|---|---|
void |
the newly constructed nested NavGraph |
navigation
public static final @NonNull NavGraph navigation(
@NonNull NavigatorProvider receiver,
@NonNull Object startDestination,
KClass<@NonNull ?> route,
@NonNull Map<@NonNull KType, @NonNull NavType<@NonNull ?>> typeMap,
@NonNull Function1<@NonNull NavGraphBuilder, Unit> builder
)
Construct a new NavGraph
| Parameters | |
|---|---|
@NonNull Object startDestination |
the starting destination's route from an Object for this NavGraph. The respective NavDestination must be added with route from a |
KClass<@NonNull ?> route |
the graph's unique route as a |
@NonNull Map<@NonNull KType, @NonNull NavType<@NonNull ?>> typeMap |
A mapping of KType to custom NavType<*> in the |
@NonNull Function1<@NonNull NavGraphBuilder, Unit> builder |
the builder used to construct the graph |
navigation
public static final @NonNull NavGraph navigation(
@NonNull NavigatorProvider receiver,
@NonNull KClass<@NonNull ?> startDestination,
KClass<@NonNull ?> route,
@NonNull Map<@NonNull KType, @NonNull NavType<@NonNull ?>> typeMap,
@NonNull Function1<@NonNull NavGraphBuilder, Unit> builder
)
Construct a new NavGraph
| Parameters | |
|---|---|
@NonNull KClass<@NonNull ?> startDestination |
the starting destination's route from a |
KClass<@NonNull ?> route |
the graph's unique route as a |
@NonNull Map<@NonNull KType, @NonNull NavType<@NonNull ?>> typeMap |
A mapping of KType to custom NavType<*> in the |
@NonNull Function1<@NonNull NavGraphBuilder, Unit> builder |
the builder used to construct the graph |