Google은 흑인 공동체를 위한 인종 간 평등을 진전시키기 위해 노력하고 있습니다. Google에서 어떤 노력을 하고 있는지 확인하세요.

NavGraph

open class NavGraph : NavDestination, MutableIterable<NavDestination!>
kotlin.Any
   ↳ androidx.navigation.NavDestination
   ↳ androidx.navigation.NavGraph

NavGraph is a collection of NavDestination nodes fetchable by ID.

A NavGraph serves as a 'virtual' destination: while the NavGraph itself will not appear on the back stack, navigating to the NavGraph will cause the starting destination to be added to the back stack.

Summary

Public constructors
<init>(@NonNull navGraphNavigator: Navigator<out NavGraph!>)

Construct a new NavGraph.

Public methods
Unit
addAll(@NonNull other: NavGraph)

Add all destinations from another collection to this one.

Unit

Adds a destination to this NavGraph.

Unit

Adds multiple destinations to this NavGraph.

Unit
addDestinations(@NonNull vararg nodes: NavDestination!)

Adds multiple destinations to this NavGraph.

Unit

Clear all destinations from this navigation graph.

NavDestination?
findNode(@IdRes resid: Int)

Finds a destination in the collection by ID.

Int

Returns the starting destination for this NavGraph.

MutableIterator<NavDestination!>

open Unit
onInflate(@NonNull context: Context, @NonNull attrs: AttributeSet)

Unit
remove(@NonNull node: NavDestination)

Remove a given destination from this NavGraph

Unit
setStartDestination(@IdRes startDestId: Int)

Sets the starting destination for this NavGraph.

open String

Inherited functions