Google 致力于为黑人社区推动种族平等。查看具体举措

NavGraphBuilder

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>(provider: NavigatorProvider, @IdRes id: Int, @IdRes startDestination: Int)

DSL for constructing a new NavGraph

Public methods
Unit

Add the destination to the NavGraphBuilder

open NavGraph

Build the NavDestination by calling Navigator.createDestination.

Unit
destination(navDestination: NavDestinationBuilder<D>)

Build and add a new destination to the NavGraphBuilder

operator Unit

Adds this destination to the NavGraphBuilder

Inherited functions
Extension functions
From androidx.navigation
Unit

Construct a new ActivityNavigator.Destination

Unit
NavGraphBuilder.navigation(@IdRes id: Int, @IdRes startDestination: Int, builder: NavGraphBuilder.() -> Unit)

Construct a nested NavGraph

From androidx.navigation.compose
Unit