DynamicIncludeNavGraphBuilder

public final class DynamicIncludeNavGraphBuilder extends NavDestinationBuilder


DSL for constructing a new DynamicIncludeGraphNavigator.DynamicIncludeNavGraph

Summary

Public fields

final @Nullable String

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

final int

The destination's unique ID.

final @Nullable CharSequence

The descriptive label of the destination

final @Nullable String

The destination's unique route.

Public constructors

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

Inherited methods

From class NavDestinationBuilder
final void
action(
    int actionId,
    @NonNull Function1<@NonNull NavActionBuilderUnit> actionBuilder
)

This method is deprecated. Building NavDestinations using IDs with the Kotlin DSL has been deprecated in favor of using routes.

final void
argument(
    @NonNull String name,
    @NonNull Function1<@NonNull NavArgumentBuilderUnit> argumentBuilder
)

Add a NavArgument to this destination.

final void
deepLink(
    @NonNull Function1<@NonNull NavDeepLinkDslBuilderUnit> navDeepLink
)

Add a deep link to this destination.

final void
deepLink(@NonNull String uriPattern)

Add a deep link to this destination.

Public fields

graphPackage

@Nullable
public final @Nullable 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.

id

@NonNull
public final int id

The destination's unique ID.

label

@Nullable
public final @Nullable CharSequence label

The descriptive label of the destination

route

@Nullable
public final @Nullable String route

The destination's unique route.

Public constructors

DynamicIncludeNavGraphBuilder

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

DynamicIncludeNavGraphBuilder

public final DynamicIncludeNavGraphBuilder(
    @NonNull DynamicIncludeGraphNavigator dynamicIncludeGraphNavigator,
    @NonNull String route,
    @NonNull String moduleName,
    @NonNull String graphResourceName
)

Public methods