-
- All Implemented Interfaces:
-
dev.olshevski.navigation.reimagined.NavHostScope
@Stable() public interface ScopingNavHostScope<T extends Object, S extends Object> implements NavHostScope<T>
Provides access to the list of all current NavHostEntries as well as all scoped ViewModelStoreOwners that where specified in
scopeSpecof ScopingNavHost, ScopingAnimatedNavHost or otherScoping...NavHostimplementation.
-
-
Method Summary
Modifier and Type Method Description abstract ViewModelStoreOwnergetScopedViewModelStoreOwner(S scope)Returns ViewModelStoreOwner for the scope. abstract Map<S, ScopedNavHostEntry<S>>getScopedHostEntries()ScopedNavHostEntries for all scopes associated with the current destination in scopeSpecabstract List<NavHostEntry<T>>getHostEntries()List of all current NavHostEntries in the same order their associated entries appear in the backstack. -
-
Method Detail
-
getScopedViewModelStoreOwner
@Deprecated(message = Access scopedHostEntries directly, replaceWith = @ReplaceWith(imports = {}, expression = scopedHostEntries[scope]!!)) abstract ViewModelStoreOwner getScopedViewModelStoreOwner(S scope)
Returns ViewModelStoreOwner for the scope. This scope should be associated with the current destination in
scopeSpecof ScopingNavHost, ScopingAnimatedNavHost or otherScoping...NavHostimplementation. Otherwise, IllegalStateException will be thrown.
-
getScopedHostEntries
abstract Map<S, ScopedNavHostEntry<S>> getScopedHostEntries()
ScopedNavHostEntries for all scopes associated with the current destination in
scopeSpec
-
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.
-
-
-
-