The second Android 11 Developer Preview is now available, test it out and share your feedback.

androidx.navigation.dynamicfeatures.fragment

Classes

DynamicFragmentNavigator

The Navigator that enables navigating to destinations within dynamic feature modules.

DynamicFragmentNavigatorDestinationBuilder

DSL for constructing a new DynamicFragmentNavigator.Destination

DynamicNavHostFragment

The NavHostFragment for dynamic features.

Extension functions summary

Extension functions

fragment

inline fun NavGraphBuilder.fragment(
    @IdRes id: Int,
    fragmentClassName: String,
    builder: DynamicFragmentNavigatorDestinationBuilder.() -> Unit
): Unit

Construct a new DynamicFragmentNavigator.Destination

Parameters
id: Int Destination id.
fragmentClassName: String Fully qualified class name of destination Fragment.