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 | |
---|---|
Properties | |
---|---|
NavigatorProvider |
Inherited properties | |
---|---|
Public constructors
<init>
NavGraphBuilder(
: NavigatorProvider,
@IdRes : Int,
@IdRes : Int)
DSL for constructing a new NavGraph
Public methods
addDestination
fun addDestination(: NavDestination): Unit
Add the destination to the NavGraphBuilder
destination
fun <D : NavDestination> destination(: NavDestinationBuilder<D>):