NavEntry
class NavEntry<T : Any>(key: T, val contentKey: Any = defaultContentKey(key), val metadata: Map<String, Any> = emptyMap(), content: @Composable (T) -> Unit)
Entry maintains and stores the key and the content represented by that key. Entries should be created as part of a reference/androidx/navigation/NavDisplay.
Parameters
key
key for this entry
contentKey
A unique, stable id that 1. uniquely identifies the content of this NavEntry 2. uniquely identifies any NavEntryDecorator states associated with this NavEntry.
NavEntries that share the same contentKey will be handled as sharing the same content and/or
[NavEntryDecorator] state. To maximize stability, it should be derived from the [key]. The
contentKey type must be saveable (i.e. on Android, it should be saveable via Android).
Defaults to [key].toString().Content copied to clipboard
metadata
provides information to the display
content
content for this entry to be displayed when this entry is active
Type Parameters
T
the type of the key for this NavEntry