NavDeepLinkDslBuilderKt
public final class NavDeepLinkDslBuilderKt
Summary
Public methods |
|
|---|---|
static final @NonNull NavDeepLink |
navDeepLink(Construct a new |
static final @NonNull NavDeepLink |
<T extends Object> navDeepLink(Construct a new |
static final @NonNull NavDeepLink |
<T extends Object> navDeepLink(Construct a new |
Public methods
navDeepLink
public static final @NonNull NavDeepLink navDeepLink(
@NonNull Function1<@NonNull NavDeepLinkDslBuilder, Unit> deepLinkBuilder
)
Construct a new NavDeepLink
| Parameters | |
|---|---|
@NonNull Function1<@NonNull NavDeepLinkDslBuilder, Unit> deepLinkBuilder |
the builder used to construct the deeplink |
navDeepLink
public static final @NonNull NavDeepLink <T extends Object> navDeepLink(
@NonNull String basePath,
@NonNull Map<@NonNull KType, @NonNull NavType<@NonNull ?>> typeMap,
@NonNull Function1<@NonNull NavDeepLinkDslBuilder, Unit> deepLinkBuilder
)
Construct a new NavDeepLink
Extracts deeplink arguments from T and appends it to the basePath. The base path & generated arguments form the final uri pattern for the deeplink.
See docs on the safe args version of NavDeepLink.Builder.setUriPattern for the final uriPattern's generation logic.
| Parameters | |
|---|---|
<T extends Object> |
The deepLink KClass to extract arguments from |
@NonNull String basePath |
The base uri path to append arguments onto |
@NonNull Map<@NonNull KType, @NonNull NavType<@NonNull ?>> typeMap |
map of destination arguments' kotlin type |
@NonNull Function1<@NonNull NavDeepLinkDslBuilder, Unit> deepLinkBuilder |
the builder used to construct the deeplink |
navDeepLink
public static final @NonNull NavDeepLink <T extends Object> navDeepLink(
@NonNull KClass<@NonNull T> route,
@NonNull String basePath,
@NonNull Map<@NonNull KType, @NonNull NavType<@NonNull ?>> typeMap,
@NonNull Function1<@NonNull NavDeepLinkDslBuilder, Unit> deepLinkBuilder
)
Construct a new NavDeepLink
Extracts deeplink arguments from T and appends it to the basePath. The base path & generated arguments form the final uri pattern for the deeplink.
See docs on the safe args version of NavDeepLink.Builder.setUriPattern for the final uriPattern's generation logic.
| Parameters | |
|---|---|
@NonNull KClass<@NonNull T> route |
The deepLink |
@NonNull String basePath |
The base uri path to append arguments onto |
@NonNull Map<@NonNull KType, @NonNull NavType<@NonNull ?>> typeMap |
map of destination arguments' kotlin type |
@NonNull Function1<@NonNull NavDeepLinkDslBuilder, Unit> deepLinkBuilder |
the builder used to construct the deeplink |