NavGraphBuilder
Kotlin
|Java
open class NavGraphBuilder : NavDestinationBuilder<NavGraph>
kotlin.Any | ||
↳ | androidx.navigation.NavDestinationBuilder<androidx.navigation.NavGraph> | |
↳ | androidx.navigation.NavGraphBuilder |
DSL for constructing a new NavGraph
Summary
Public constructors | |
---|---|
<init>(: NavigatorProvider, @IdRes : Int, @IdRes : Int) DSL for constructing a new NavGraph |
Public methods | |
---|---|
Unit |
Add the destination to the NavGraphBuilder |
open NavGraph |
build() Build the NavDestination by calling Navigator.createDestination. |
Unit |
Build and add a new destination to the NavGraphBuilder |
operator Unit |
Adds this destination to the NavGraphBuilder |
Inherited functions | |
---|---|
Extension functions | ||||
---|---|---|---|---|
From androidx.navigation
|
||||
From androidx.navigation.compose
|