-
- All Implemented Interfaces:
-
dev.olshevski.navigation.reimagined.NavHostState
@Stable() public interface ScopingNavHostState<T extends Object, S extends Object> implements NavHostState<T>
Stores and manages saved state and all Android architecture components (Lifecycle, ViewModelStore, SavedStateRegistry) for every entry and every scope.
-
-
Method Summary
Modifier and Type Method Description abstract Map<S, ScopedNavHostEntry<S>>getScopedHostEntries()ScopedNavHostEntries for all scopes present in the backstack. abstract List<NavHostEntry<T>>getHostEntries()List of all current NavHostEntries in the same order their associated entries appear in the backstack. -
-
Method Detail
-
getScopedHostEntries
abstract Map<S, ScopedNavHostEntry<S>> getScopedHostEntries()
ScopedNavHostEntries for all scopes present in the backstack.
Note that unlike ScopingNavHostScope.scopedHostEntries, this property provides access to ALL scopes that are associated with current destinations in the backstack, not just the last (current) destination.
-
getHostEntries
abstract List<NavHostEntry<T>> getHostEntries()
List of all current NavHostEntries in the same order their associated entries appear in the backstack.
The last entry of this list is always the currently displayed entry.
-
-
-
-