DynamicIncludeNavGraphBuilder


@NavDestinationDsl
public final class DynamicIncludeNavGraphBuilder extends NavDestinationBuilder


DSL for constructing a new DynamicIncludeGraphNavigator.DynamicIncludeNavGraph

Summary

Public constructors

DynamicIncludeNavGraphBuilder(
    @NonNull DynamicIncludeGraphNavigator dynamicIncludeGraphNavigator,
    @IdRes int id,
    @NonNull String moduleName,
    @NonNull String graphResourceName
)

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

DynamicIncludeNavGraphBuilder(
    @NonNull DynamicIncludeGraphNavigator dynamicIncludeGraphNavigator,
    @NonNull String route,
    @NonNull String moduleName,
    @NonNull String graphResourceName
)
DynamicIncludeNavGraphBuilder(
    @NonNull DynamicIncludeGraphNavigator dynamicIncludeGraphNavigator,
    @NonNull KClass<@NonNull ?> route,
    @NonNull Map<@NonNull KType, @NonNull NavType<@NonNull ?>> typeMap,
    @NonNull String moduleName,
    @NonNull String graphResourceName
)

DSL for constructing a new DynamicIncludeGraphNavigator.DynamicIncludeNavGraph

Public methods

@NonNull DynamicIncludeGraphNavigator.DynamicIncludeNavGraph
final String

Destination NavGraph's resource package as defined in the module's AndroidManifest.

final void
setGraphPackage(String graphPackage)

Destination NavGraph's resource package as defined in the module's AndroidManifest.

Inherited methods

From androidx.navigation.NavDestinationBuilder
final void
argument(
    @NonNull String name,
    @ExtensionFunctionType @NonNull Function1<@NonNull NavArgumentBuilderUnit> argumentBuilder
)
final void
final void
<T extends Object> deepLinkSafeArgs(@NonNull String basePath)
final void
final void
final void
deepLink(@NonNull String uriPattern)
final void
<T extends Object> deepLink(
    @NonNull String basePath,
    @ExtensionFunctionType @NonNull Function1<@NonNull NavDeepLinkDslBuilderUnit> navDeepLink
)
final CharSequence
final @NonNull Navigator<@NonNull DynamicIncludeGraphNavigator.DynamicIncludeNavGraph>
final String
@NonNull DynamicIncludeGraphNavigator.DynamicIncludeNavGraph
final void

Public constructors

DynamicIncludeNavGraphBuilder

Added in 2.3.0
Deprecated in 2.4.0
public DynamicIncludeNavGraphBuilder(
    @NonNull DynamicIncludeGraphNavigator dynamicIncludeGraphNavigator,
    @IdRes int id,
    @NonNull String moduleName,
    @NonNull String graphResourceName
)

DynamicIncludeNavGraphBuilder

Added in 2.4.0
public DynamicIncludeNavGraphBuilder(
    @NonNull DynamicIncludeGraphNavigator dynamicIncludeGraphNavigator,
    @NonNull String route,
    @NonNull String moduleName,
    @NonNull String graphResourceName
)

DynamicIncludeNavGraphBuilder

Added in 2.8.0
public DynamicIncludeNavGraphBuilder(
    @NonNull DynamicIncludeGraphNavigator dynamicIncludeGraphNavigator,
    @NonNull KClass<@NonNull ?> route,
    @NonNull Map<@NonNull KType, @NonNull NavType<@NonNull ?>> typeMap,
    @NonNull String moduleName,
    @NonNull String graphResourceName
)

DSL for constructing a new DynamicIncludeGraphNavigator.DynamicIncludeNavGraph

Parameters
@NonNull DynamicIncludeGraphNavigator dynamicIncludeGraphNavigator

navigator used to create the destination

@NonNull KClass<@NonNull ?> route

the graph's unique route as a KClass

@NonNull Map<@NonNull KType, @NonNull NavType<@NonNull ?>> typeMap

A mapping of KType to custom NavType<*> in the route. May be empty if route does not use custom NavTypes.

@NonNull String moduleName

Dynamic feature module name as defined in the module's AndroidManifest. This must not be an empty string.

@NonNull String graphResourceName

Graph's resource name without the navigation qualifier. This must not be an empty string.

Returns
DynamicIncludeNavGraphBuilder

the newly created NavGraph

Public methods

getGraphPackage

Added in 2.3.0
public final String getGraphPackage()

Destination NavGraph's resource package as defined in the module's AndroidManifest. This generally does not need to be manually set and will be set applicationId.moduleName if left null.

This cannot be an empty string.

setGraphPackage

Added in 2.3.0
public final void setGraphPackage(String graphPackage)

Destination NavGraph's resource package as defined in the module's AndroidManifest. This generally does not need to be manually set and will be set applicationId.moduleName if left null.

This cannot be an empty string.