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 <reified F : Fragment> DynamicNavGraphBuilder.fragment(@IdRes id: Int): Unit

Construct a new DynamicFragmentNavigator.Destination

Parameters
id: Int Destination id.

fragment

inline fun <reified F : Fragment> DynamicNavGraphBuilder.fragment(
    @IdRes id: Int,
    builder: DynamicFragmentNavigatorDestinationBuilder.() -> Unit
): Unit

Construct a new DynamicFragmentNavigator.Destination

Parameters
id: Int Destination id.

fragment

inline fun DynamicNavGraphBuilder.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.