Holds a Entry class, metadata, and content for that class

Parameters
<T : Any>

the type of the key for this NavEntry

Summary

Public constructors

<T : Any> EntryClassProvider(
    clazz: KClass<T>,
    clazzContentKey: (key) -> Any,
    metadata: Map<StringAny>,
    content: @Composable (T) -> Unit
)
Cmn

Public properties

KClass<T>

the KClass of the key for this NavEntry

Cmn
(key) -> Any

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

Cmn
@Composable (T) -> Unit

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

Cmn
Map<StringAny>

provides information to the display

Cmn

Public constructors

EntryClassProvider

<T : Any> EntryClassProvider(
    clazz: KClass<T>,
    clazzContentKey: (key) -> Any,
    metadata: Map<StringAny>,
    content: @Composable (T) -> Unit
)
Parameters
<T : Any>

the type of the key for this NavEntry

clazz: KClass<T>

the KClass of the key for this NavEntry

clazzContentKey: (key) -> Any

A factory of unique, stable ids that uniquely identifies the content of this NavEntry. To maximize stability, it should ge derived from the factory's provided key. The resulting key must be saveable (i.e. on Android, it should be saveable via Android). The generated key will be stored in NavEntry.contentKey.

metadata: Map<StringAny>

provides information to the display

content: @Composable (T) -> Unit

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

Public properties

clazz

val clazzKClass<T>

the KClass of the key for this NavEntry

clazzContentKey

val clazzContentKey: (key) -> Any

A factory of unique, stable ids that uniquely identifies the content of this NavEntry. To maximize stability, it should ge derived from the factory's provided key. The resulting key must be saveable (i.e. on Android, it should be saveable via Android). The generated key will be stored in NavEntry.contentKey.

content

val content: @Composable (T) -> Unit

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

metadata

val metadataMap<StringAny>

provides information to the display