androidx.navigation3.runtime
Interfaces
NavKey |
Marker interface for keys. |
Cmn
|
NavMetadataKey |
The base Key to be associated with value of type |
Cmn
|
Classes
EntryProviderScope |
The scope for constructing a new |
Cmn
|
MetadataScope |
Scope provided to the metadata dsl builder. |
Cmn
|
NavBackStack |
A mutable back stack of |
Cmn
|
NavEntry |
Entry maintains and stores the key and the content represented by that key. |
Cmn
|
NavEntryDecorator |
Decorate the |
Cmn
|
SaveableStateHolderNavEntryDecorator |
Wraps the content of a |
Cmn
|
Annotations
EntryDsl |
Cmn
|
|
MetadataDsl |
Cmn
|
Composables
rememberDecoratedNavEntries |
Decorates the |
Cmn
|
rememberNavBackStack |
Cmn
android
|
|
rememberSaveableStateHolderNavEntryDecorator |
Returns a |
Cmn
|
Top-level functions summary
inline (T) -> NavEntry<T> |
<T : Any> entryProvider(Provides a |
Cmn
|
inline Map<String, Any> |
metadata(builder: MetadataScope.() -> Unit)Provides a |
Cmn
|
Extension functions summary
operator Boolean |
Checks if the metadata contains a given key. |
Cmn
|
operator T? |
Returns the metadata value for a given |
Cmn
|
Top-level functions
entryProvider
inline fun <T : Any> entryProvider(
noinline fallback: (unknownScreen) -> NavEntry<T> = { throw IllegalStateException("Unknown screen $it") },
builder: EntryProviderScope<T>.() -> Unit
): (T) -> NavEntry<T>
Provides a EntryProviderScope to build an entryProvider that provides NavEntries.
| Parameters | |
|---|---|
<T : Any> |
the type of the |
noinline fallback: (unknownScreen) -> NavEntry<T> = {
throw IllegalStateException("Unknown screen $it")
} |
the fallback |
builder: EntryProviderScope<T>.() -> Unit |
the DSL extension that provides a |
| Returns | |
|---|---|
(T) -> NavEntry<T> |
an entryProvider that provides the NavEntry associated with a given key |
metadata
inline fun metadata(builder: MetadataScope.() -> Unit): Map<String, Any>
Provides a MetadataScope to build a Map
| Parameters | |
|---|---|
builder: MetadataScope.() -> Unit |
the DSL extension that provides a |
Extension functions
Map.contains
operator fun <T : Any> Map<String, Any>.contains(key: NavMetadataKey<T>): Boolean
Checks if the metadata contains a given key.
T the value type.
| Parameters | |
|---|---|
key: NavMetadataKey<T> |
the key to check for |
Map.get
operator fun <T : Any> Map<String, Any>.get(key: NavMetadataKey<T>): T?
Returns the metadata value for a given NavMetadataKey.
T the value type.
| Parameters | |
|---|---|
key: NavMetadataKey<T> |
the key associated with the value |