Known direct subclasses
NavEntryWrapper

Class that wraps a NavEntry within another NavEntry.


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
<T : Any>

the type of the key for this NavEntry

Summary

Public constructors

<T : Any> NavEntry(
    key: T,
    contentKey: Any,
    metadata: Map<StringAny>,
    content: @Composable (T) -> Unit
)
Cmn

Public functions

open Unit

Invokes the composable content of this NavEntry with the key that was provided when instantiating this NavEntry

Cmn

Public properties

Any

A unique, stable id that uniquely identifies the content of this NavEntry.

Cmn
open Map<StringAny>

provides information to the display

Cmn

Public constructors

<T : Any> NavEntry(
    key: T,
    contentKey: Any = defaultContentKey(key),
    metadata: Map<StringAny> = emptyMap(),
    content: @Composable (T) -> Unit
)
Parameters
<T : Any>

the type of the key for this NavEntry

key: T

key for this entry

contentKey: Any = defaultContentKey(key)

A unique, stable id that uniquely identifies the content of this NavEntry. To maximize stability, it should ge derived from the key. The contentKey type must be saveable (i.e. on Android, it should be saveable via Android). Defaults to key.toString().

metadata: Map<StringAny> = emptyMap()

provides information to the display

content: @Composable (T) -> Unit

content for this entry to be displayed when this entry is active

Public functions

Content

@Composable
open fun Content(): Unit

Invokes the composable content of this NavEntry with the key that was provided when instantiating this NavEntry

Public properties

contentKey

val contentKeyAny

A unique, stable id that uniquely identifies the content of this NavEntry. To maximize stability, it should ge derived from the key. The contentKey type must be saveable (i.e. on Android, it should be saveable via Android). Defaults to key.toString().

metadata

open val metadataMap<StringAny>

provides information to the display