-
@Stable() public final class NavBackstack<T extends Object>
-
-
Method Summary
Modifier and Type Method Description final List<NavEntry<T>>getEntries()The list of current entries in the backstack. final NavActiongetAction()The action of the last NavController.setNewBackstack call. StringtoString()Booleanequals(Object other)IntegerhashCode()final List<NavEntry<T>>component1()final NavActioncomponent2()-
-
Method Detail
-
getEntries
final List<NavEntry<T>> getEntries()
The list of current entries in the backstack. The last item in this list is the item that will be displayed by NavHost.
May become empty if you pop all the items off the backstack.
-
getAction
final NavAction getAction()
The action of the last NavController.setNewBackstack call.
The initial value of every new instance of NavController is NavAction.Idle.
-
component1
final List<NavEntry<T>> component1()
-
component2
final NavAction component2()
-
-
-
-