Android 12 Developer Preview is here! Try it out, and give us your feedback!

androidx.navigation.dynamicfeatures

Classes

DynamicActivityNavigator

Dynamic feature navigator for Activity destinations.

DynamicActivityNavigatorDestinationBuilder

DSL for constructing a new DynamicActivityNavigator.Destination

DynamicExtras

Extras for dynamic navigators.

DynamicGraphNavigator

Navigator for graphs in dynamic feature modules.

DynamicIncludeGraphNavigator

Navigator for include-dynamic.

DynamicIncludeNavGraphBuilder

DSL for constructing a new DynamicIncludeGraphNavigator.DynamicIncludeNavGraph

DynamicInstallManager

Install manager for dynamic features.

DynamicInstallMonitor

Monitor installation progress of dynamic feature modules.

DynamicNavGraphBuilder

DSL for constructing a new DynamicGraphNavigator.DynamicNavGraph

Extension functions summary

For DynamicNavGraphBuilder
Unit

Construct a new DynamicActivityNavigator.Destination

Unit
DynamicNavGraphBuilder.includeDynamic(@IdRes id: Int, moduleName: String, graphResourceName: String)

Construct a new DynamicIncludeGraphNavigator.DynamicIncludeNavGraph.

Unit
DynamicNavGraphBuilder.includeDynamic(@IdRes id: Int, moduleName: String, graphResourceName: String, builder: DynamicIncludeNavGraphBuilder.() -> Unit)

Construct a new DynamicIncludeGraphNavigator.DynamicIncludeNavGraph.

Unit
DynamicNavGraphBuilder.navigation(@IdRes id: Int, @IdRes startDestination: Int, builder: DynamicNavGraphBuilder.() -> Unit)

Construct a nested DynamicGraphNavigator.DynamicNavGraph

For NavController
NavGraph
NavController.createGraph(@IdRes id: Int = 0, @IdRes startDestination: Int, builder: DynamicNavGraphBuilder.() -> Unit)

Construct a new androidx.navigation.NavGraph that supports dynamic navigation destinations

For NavHost
NavGraph
NavHost.createGraph(@IdRes id: Int = 0, @IdRes startDestination: Int, builder: DynamicNavGraphBuilder.() -> Unit)

Construct a new androidx.navigation.NavGraph that supports dynamic navigation destinations

For NavigatorProvider
NavGraph
NavigatorProvider.navigation(@IdRes id: Int = 0, @IdRes startDestination: Int, builder: DynamicNavGraphBuilder.() -> Unit)

Construct a new DynamicGraphNavigator.DynamicNavGraph

Extension functions

activity

inline fun DynamicNavGraphBuilder.activity(
    @IdRes id: Int,
    builder: DynamicActivityNavigatorDestinationBuilder.() -> Unit
): Unit

Construct a new DynamicA