DynamicIncludeGraphNavigator
Kotlin
|Java
class DynamicIncludeGraphNavigator : Navigator<DynamicIncludeGraphNavigator.DynamicIncludeNavGraph>
kotlin.Any | ||
↳ | androidx.navigation.Navigator<androidx.navigation.dynamicfeatures.DynamicIncludeGraphNavigator.DynamicIncludeNavGraph> | |
↳ | androidx.navigation.dynamicfeatures.DynamicIncludeGraphNavigator |
Navigator for include-dynamic
.
Use it for navigating to NavGraphs contained within a dynamic feature module.
Summary
Nested classes | |
---|---|
The graph for dynamic-include. |
Public constructors | |
---|---|
<init>(: Context, : NavigatorProvider, : NavInflater, : DynamicInstallManager) Navigator for |
Public methods | |
---|---|
DynamicIncludeGraphNavigator.DynamicIncludeNavGraph | |
NavDestination? | |
Unit | |
Bundle? | |
Boolean |
Properties | |
---|---|
String |
Public constructors
<init>
DynamicIncludeGraphNavigator(
: Context,
: NavigatorProvider,
: NavInflater,
: DynamicInstallManager)
Navigator for include-dynamic
.
Use it for navigating to NavGraphs contained within a dynamic feature module.
Public methods
createDestination
fun createDestination(): DynamicIncludeGraphNavigator.DynamicIncludeNavGraph
navigate
fun navigate(
: DynamicIncludeGraphNavigator.DynamicIncludeNavGraph,
: Bundle?,
: NavOptions?,
: Navigator.Extras?
): NavDestination?
Exceptions | |
---|---|
Resources.NotFoundException |
if the destination does not have a valid
graphResourceName and graphPackage . |
IllegalStateException |
if the destination does not have a parent. |
onSaveState
fun onSaveState(): Bundle?
popBackStack
fun popBackStack(): Boolean
Properties
packageName
val packageName: String