DynamicIncludeNavGraphBuilder

@NavDestinationDsl
class DynamicIncludeNavGraphBuilder : NavDestinationBuilder


DSL for constructing a new DynamicIncludeGraphNavigator.DynamicIncludeNavGraph

Summary

Public constructors

DynamicIncludeNavGraphBuilder(
    dynamicIncludeGraphNavigator: DynamicIncludeGraphNavigator,
    id: @IdRes Int,
    moduleName: String,
    graphResourceName: String
)

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

DynamicIncludeNavGraphBuilder(
    dynamicIncludeGraphNavigator: DynamicIncludeGraphNavigator,
    route: String,
    moduleName: String,
    graphResourceName: String
)

Public properties

String?

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

Inherited functions

From androidx.navigation.NavDestinationBuilder
Unit
action(actionId: Int, actionBuilder: NavActionBuilder.() -> Unit)

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

Unit
argument(name: String, argumentBuilder: NavArgumentBuilder.() -> Unit)

Add a NavArgument to this destination.

Unit
deepLink(navDeepLink: NavDeepLinkDslBuilder.() -> Unit)

Add a deep link to this destination.

Unit
deepLink(uriPattern: String)

Add a deep link to this destination.

Inherited properties

From androidx.navigation.NavDestinationBuilder
Int

The destination's unique ID.

CharSequence?

The descriptive label of the destination

Navigator<DynamicIncludeGraphNavigator.DynamicIncludeNavGraph>

The navigator the destination was created from

String?

The destination's unique route.

Public constructors

DynamicIncludeNavGraphBuilder

Added in 2.3.0
Deprecated in 2.4.0
DynamicIncludeNavGraphBuilder(
    dynamicIncludeGraphNavigator: DynamicIncludeGraphNavigator,
    id: @IdRes Int,
    moduleName: String,
    graphResourceName: String
)

DynamicIncludeNavGraphBuilder

Added in 2.4.0
DynamicIncludeNavGraphBuilder(
    dynamicIncludeGraphNavigator: DynamicIncludeGraphNavigator,
    route: String,
    moduleName: String,
    graphResourceName: String
)

Public properties

graphPackage

Added in 2.3.0
var graphPackageString?

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.