# EntryProviderScope

Artifact: [androidx.navigation3:navigation3-runtime](https://developer.android.com/jetpack/androidx/releases/navigation3) [View Source](https://cs.android.com/search?q=file:androidx/navigation3/runtime/EntryProvider.kt+class:androidx.navigation3.runtime.EntryProviderScope) Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/navigation3#1.0.0) Common/AllAndroid/JVM
- Cmn

  ```
  @EntryDsl
  class EntryProviderScope<T : Any>
  ```

*** ** * ** ***

The scope for constructing a new `https://developer.android.com/reference/kotlin/androidx/navigation3/runtime/NavEntry` with Kotlin DSL

| Parameters |
|---|---|
| `<T : https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html>` | the type of the `https://developer.android.com/reference/kotlin/androidx/navigation3/runtime/NavEntry` key |

## Summary

| ### Public constructors |
|---|---|
| `<T : https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html> https://developer.android.com/reference/kotlin/androidx/navigation3/runtime/EntryProviderScope#EntryProviderScope(kotlin.Function1)(fallback: (unknownScreen) -> https://developer.android.com/reference/kotlin/androidx/navigation3/runtime/NavEntry<T>)` | Cmn |

| ### Public functions |
|---|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `<K : T> https://developer.android.com/reference/kotlin/androidx/navigation3/runtime/EntryProviderScope#addEntryProvider(kotlin.reflect.KClass,kotlin.Function1,kotlin.Function1,kotlin.Function1)( clazz: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.reflect/-k-class/index.html<K>, clazzContentKey: (key) -> https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html, metadata: (K) -> https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-map/index.html<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html, https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html>, content: @https://developer.android.com/reference/kotlin/androidx/compose/runtime/Composable (K) -> https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html )` Builds a `https://developer.android.com/reference/kotlin/androidx/navigation3/runtime/NavEntry` for the given `https://developer.android.com/reference/kotlin/androidx/navigation3/runtime/EntryProviderScope#addEntryProvider(kotlin.reflect.KClass,kotlin.Function1,kotlin.Function1,kotlin.Function1)` that displays `https://developer.android.com/reference/kotlin/androidx/navigation3/runtime/EntryProviderScope#addEntryProvider(kotlin.reflect.KClass,kotlin.Function1,kotlin.Function1,kotlin.Function1)`. | Cmn |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `<K : T> https://developer.android.com/reference/kotlin/androidx/navigation3/runtime/EntryProviderScope#addEntryProvider(kotlin.reflect.KClass,kotlin.Function1,kotlin.collections.Map,kotlin.Function1)( clazz: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.reflect/-k-class/index.html<K>, clazzContentKey: (key) -> https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html, metadata: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-map/index.html<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html, https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html>, content: @https://developer.android.com/reference/kotlin/androidx/compose/runtime/Composable (K) -> https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html )` Builds a `https://developer.android.com/reference/kotlin/androidx/navigation3/runtime/NavEntry` for the given `https://developer.android.com/reference/kotlin/androidx/navigation3/runtime/EntryProviderScope#addEntryProvider(kotlin.reflect.KClass,kotlin.Function1,kotlin.collections.Map,kotlin.Function1)` that displays `https://developer.android.com/reference/kotlin/androidx/navigation3/runtime/EntryProviderScope#addEntryProvider(kotlin.reflect.KClass,kotlin.Function1,kotlin.collections.Map,kotlin.Function1)`. | Cmn |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `<K : T> https://developer.android.com/reference/kotlin/androidx/navigation3/runtime/EntryProviderScope#addEntryProvider(kotlin.Any,kotlin.Any,kotlin.Function1,kotlin.Function1)( key: K, contentKey: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html, metadata: (K) -> https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-map/index.html<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html, https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html>, content: @https://developer.android.com/reference/kotlin/androidx/compose/runtime/Composable (K) -> https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html )` Builds a `https://developer.android.com/reference/kotlin/androidx/navigation3/runtime/NavEntry` for the given `https://developer.android.com/reference/kotlin/androidx/navigation3/runtime/EntryProviderScope#addEntryProvider(kotlin.Any,kotlin.Any,kotlin.Function1,kotlin.Function1)` that displays `https://developer.android.com/reference/kotlin/androidx/navigation3/runtime/EntryProviderScope#addEntryProvider(kotlin.Any,kotlin.Any,kotlin.Function1,kotlin.Function1)`. | Cmn |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `<K : T> https://developer.android.com/reference/kotlin/androidx/navigation3/runtime/EntryProviderScope#addEntryProvider(kotlin.Any,kotlin.Any,kotlin.collections.Map,kotlin.Function1)( key: K, contentKey: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html, metadata: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-map/index.html<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html, https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html>, content: @https://developer.android.com/reference/kotlin/androidx/compose/runtime/Composable (K) -> https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html )` Builds a `https://developer.android.com/reference/kotlin/androidx/navigation3/runtime/NavEntry` for the given `https://developer.android.com/reference/kotlin/androidx/navigation3/runtime/EntryProviderScope#addEntryProvider(kotlin.Any,kotlin.Any,kotlin.collections.Map,kotlin.Function1)` that displays `https://developer.android.com/reference/kotlin/androidx/navigation3/runtime/EntryProviderScope#addEntryProvider(kotlin.Any,kotlin.Any,kotlin.collections.Map,kotlin.Function1)`. | Cmn |
| `inline https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `<K : T> https://developer.android.com/reference/kotlin/androidx/navigation3/runtime/EntryProviderScope#entry(kotlin.Function1,kotlin.Function1,kotlin.Function1)( noinline clazzContentKey: (key) -> https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html, noinline metadata: (K) -> https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-map/index.html<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html, https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html>, noinline content: @https://developer.android.com/reference/kotlin/androidx/compose/runtime/Composable (K) -> https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html )` Add an entry provider to the `https://developer.android.com/reference/kotlin/androidx/navigation3/runtime/EntryProviderScope` | Cmn |
| `inline https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `<K : T> https://developer.android.com/reference/kotlin/androidx/navigation3/runtime/EntryProviderScope#entry(kotlin.Function1,kotlin.collections.Map,kotlin.Function1)( noinline clazzContentKey: (key) -> https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html, metadata: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-map/index.html<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html, https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html>, noinline content: @https://developer.android.com/reference/kotlin/androidx/compose/runtime/Composable (K) -> https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html )` Add an entry provider to the `https://developer.android.com/reference/kotlin/androidx/navigation3/runtime/EntryProviderScope` | Cmn |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `<K : T> https://developer.android.com/reference/kotlin/androidx/navigation3/runtime/EntryProviderScope<T>.https://developer.android.com/reference/kotlin/androidx/navigation3/runtime/EntryProviderScope#(androidx.navigation3.runtime.EntryProviderScope).entry(kotlin.Any,kotlin.Any,kotlin.Function1,kotlin.Function1)( key: K, contentKey: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html, metadata: (K) -> https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-map/index.html<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html, https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html>, content: @https://developer.android.com/reference/kotlin/androidx/compose/runtime/Composable (K) -> https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html )` Add an entry provider to the `https://developer.android.com/reference/kotlin/androidx/navigation3/runtime/EntryProviderScope` | Cmn |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `<K : T> https://developer.android.com/reference/kotlin/androidx/navigation3/runtime/EntryProviderScope<T>.https://developer.android.com/reference/kotlin/androidx/navigation3/runtime/EntryProviderScope#(androidx.navigation3.runtime.EntryProviderScope).entry(kotlin.Any,kotlin.Any,kotlin.collections.Map,kotlin.Function1)( key: K, contentKey: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html, metadata: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-map/index.html<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html, https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html>, content: @https://developer.android.com/reference/kotlin/androidx/compose/runtime/Composable (K) -> https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html )` Add an entry provider to the `https://developer.android.com/reference/kotlin/androidx/navigation3/runtime/EntryProviderScope` | Cmn |

## Public constructors

### EntryProviderScope

Cmn

```
<T : Any> EntryProviderScope(fallback: (unknownScreen) -> NavEntry<T>)
```

| Parameters |
|---|---|
| `<T : https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html>` | the type of the `https://developer.android.com/reference/kotlin/androidx/navigation3/runtime/NavEntry` key |
| `fallback: (unknownScreen) -> https://developer.android.com/reference/kotlin/androidx/navigation3/runtime/NavEntry<T>` | the fallback `https://developer.android.com/reference/kotlin/androidx/navigation3/runtime/NavEntry` when the provider cannot find an entry associated with a given key on the backStack |

## Public functions

### addEntryProvider

Cmn

```
fun <K : T> addEntryProvider(
    clazz: KClass<K>,
    clazzContentKey: (key) -> Any = { defaultContentKey(it) },
    metadata: (K) -> Map<String, Any>,
    content: @Composable (K) -> Unit
): Unit
```

Builds a `https://developer.android.com/reference/kotlin/androidx/navigation3/runtime/NavEntry` for the given `https://developer.android.com/reference/kotlin/androidx/navigation3/runtime/EntryProviderScope#addEntryProvider(kotlin.reflect.KClass,kotlin.Function1,kotlin.Function1,kotlin.Function1)` that displays `https://developer.android.com/reference/kotlin/androidx/navigation3/runtime/EntryProviderScope#addEntryProvider(kotlin.reflect.KClass,kotlin.Function1,kotlin.Function1,kotlin.Function1)`.

| Parameters |
|---|---|
| `<K : T>` | the type of the key for this NavEntry |
| `clazz: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.reflect/-k-class/index.html<K>` | the KClass of the key for this NavEntry |
| `clazzContentKey: (key) -> https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html = { defaultContentKey(it) }` | A factory of unique, stable ids that uniquely identifies the content of this NavEntry. To maximize stability, it should be 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 `https://developer.android.com/reference/kotlin/androidx/navigation3/runtime/NavEntry#contentKey()`. |
| `metadata: (K) -> https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-map/index.html<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html, https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html>` | lambda that takes the key and provides a map of additional info |
| `content: @https://developer.android.com/reference/kotlin/androidx/compose/runtime/Composable (K) -> https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | content for this entry to be displayed when this entry is active |

### addEntryProvider

Cmn

```
fun <K : T> addEntryProvider(
    clazz: KClass<K>,
    clazzContentKey: (key) -> Any = { defaultContentKey(it) },
    metadata: Map<String, Any> = emptyMap(),
    content: @Composable (K) -> Unit
): Unit
```

Builds a `https://developer.android.com/reference/kotlin/androidx/navigation3/runtime/NavEntry` for the given `https://developer.android.com/reference/kotlin/androidx/navigation3/runtime/EntryProviderScope#addEntryProvider(kotlin.reflect.KClass,kotlin.Function1,kotlin.collections.Map,kotlin.Function1)` that displays `https://developer.android.com/reference/kotlin/androidx/navigation3/runtime/EntryProviderScope#addEntryProvider(kotlin.reflect.KClass,kotlin.Function1,kotlin.collections.Map,kotlin.Function1)`.

| Parameters |
|---|---|
| `<K : T>` | the type of the key for this NavEntry |
| `clazz: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.reflect/-k-class/index.html<K>` | the KClass of the key for this NavEntry |
| `clazzContentKey: (key) -> https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html = { defaultContentKey(it) }` | A factory of unique, stable ids that uniquely identifies the content of this NavEntry. To maximize stability, it should be 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 `https://developer.android.com/reference/kotlin/androidx/navigation3/runtime/NavEntry#contentKey()`. |
| `metadata: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-map/index.html<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html, https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html> = emptyMap()` | provides information to the display |
| `content: @https://developer.android.com/reference/kotlin/androidx/compose/runtime/Composable (K) -> https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | content for this entry to be displayed when this entry is active |

### addEntryProvider

Cmn

```
fun <K : T> addEntryProvider(
    key: K,
    contentKey: Any = defaultContentKey(key),
    metadata: (K) -> Map<String, Any>,
    content: @Composable (K) -> Unit
): Unit
```

Builds a `https://developer.android.com/reference/kotlin/androidx/navigation3/runtime/NavEntry` for the given `https://developer.android.com/reference/kotlin/androidx/navigation3/runtime/EntryProviderScope#addEntryProvider(kotlin.Any,kotlin.Any,kotlin.Function1,kotlin.Function1)` that displays `https://developer.android.com/reference/kotlin/androidx/navigation3/runtime/EntryProviderScope#addEntryProvider(kotlin.Any,kotlin.Any,kotlin.Function1,kotlin.Function1)`.

| Parameters |
|---|---|
| `<K : T>` | the type of the key for this NavEntry |
| `key: K` | key for this entry |
| `contentKey: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html = defaultContentKey(key)` | A unique, stable id that uniquely identifies the content of this NavEntry. To maximize stability, it should be derived from the `https://developer.android.com/reference/kotlin/androidx/navigation3/runtime/EntryProviderScope#addEntryProvider(kotlin.Any,kotlin.Any,kotlin.Function1,kotlin.Function1)`. The contentKey type must be saveable (i.e. on Android, it should be saveable via Android). Defaults to `https://developer.android.com/reference/kotlin/androidx/navigation3/runtime/EntryProviderScope#addEntryProvider(kotlin.Any,kotlin.Any,kotlin.Function1,kotlin.Function1)`.toString(). |
| `metadata: (K) -> https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-map/index.html<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html, https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html>` | lambda that takes the `https://developer.android.com/reference/kotlin/androidx/navigation3/runtime/EntryProviderScope#addEntryProvider(kotlin.Any,kotlin.Any,kotlin.Function1,kotlin.Function1)` and provides a map of additional info |
| `content: @https://developer.android.com/reference/kotlin/androidx/compose/runtime/Composable (K) -> https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | content for this entry to be displayed when this entry is active |

### addEntryProvider

Cmn

```
fun <K : T> addEntryProvider(
    key: K,
    contentKey: Any = defaultContentKey(key),
    metadata: Map<String, Any> = emptyMap(),
    content: @Composable (K) -> Unit
): Unit
```

Builds a `https://developer.android.com/reference/kotlin/androidx/navigation3/runtime/NavEntry` for the given `https://developer.android.com/reference/kotlin/androidx/navigation3/runtime/EntryProviderScope#addEntryProvider(kotlin.Any,kotlin.Any,kotlin.collections.Map,kotlin.Function1)` that displays `https://developer.android.com/reference/kotlin/androidx/navigation3/runtime/EntryProviderScope#addEntryProvider(kotlin.Any,kotlin.Any,kotlin.collections.Map,kotlin.Function1)`.

| Parameters |
|---|---|
| `<K : T>` | the type of the key for this NavEntry |
| `key: K` | key for this entry |
| `contentKey: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html = defaultContentKey(key)` | A unique, stable id that uniquely identifies the content of this NavEntry. To maximize stability, it should be derived from the `https://developer.android.com/reference/kotlin/androidx/navigation3/runtime/EntryProviderScope#addEntryProvider(kotlin.Any,kotlin.Any,kotlin.collections.Map,kotlin.Function1)`. The contentKey type must be saveable (i.e. on Android, it should be saveable via Android). Defaults to `https://developer.android.com/reference/kotlin/androidx/navigation3/runtime/EntryProviderScope#addEntryProvider(kotlin.Any,kotlin.Any,kotlin.collections.Map,kotlin.Function1)`.toString(). |
| `metadata: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-map/index.html<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html, https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html> = emptyMap()` | provides information to the display |
| `content: @https://developer.android.com/reference/kotlin/androidx/compose/runtime/Composable (K) -> https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | content for this entry to be displayed when this entry is active |

### entry

Cmn

```
inline fun <K : T> entry(
    noinline clazzContentKey: (key) -> Any = { defaultContentKey(it) },
    noinline metadata: (K) -> Map<String, Any>,
    noinline content: @Composable (K) -> Unit
): Unit
```

Add an entry provider to the `https://developer.android.com/reference/kotlin/androidx/navigation3/runtime/EntryProviderScope`

| Parameters |
|---|---|
| `<K : T>` | the type of the key for this NavEntry |
| `noinline clazzContentKey: (key) -> https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html = { defaultContentKey(it) }` | A factory of unique, stable ids that uniquely identifies the content of this NavEntry. To maximize stability, it should be 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 `https://developer.android.com/reference/kotlin/androidx/navigation3/runtime/NavEntry#contentKey()`. |
| `noinline metadata: (K) -> https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-map/index.html<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html, https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html>` | lambda that takes the key and provides a map of additional info |
| `noinline content: @https://developer.android.com/reference/kotlin/androidx/compose/runtime/Composable (K) -> https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | content for this entry to be displayed when this entry is active |

### entry

Cmn

```
inline fun <K : T> entry(
    noinline clazzContentKey: (key) -> Any = { defaultContentKey(it) },
    metadata: Map<String, Any> = emptyMap(),
    noinline content: @Composable (K) -> Unit
): Unit
```

Add an entry provider to the `https://developer.android.com/reference/kotlin/androidx/navigation3/runtime/EntryProviderScope`

| Parameters |
|---|---|
| `<K : T>` | the type of the key for this NavEntry |
| `noinline clazzContentKey: (key) -> https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html = { defaultContentKey(it) }` | A factory of unique, stable ids that uniquely identifies the content of this NavEntry. To maximize stability, it should be 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 `https://developer.android.com/reference/kotlin/androidx/navigation3/runtime/NavEntry#contentKey()`. |
| `metadata: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-map/index.html<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html, https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html> = emptyMap()` | provides information to the display |
| `noinline content: @https://developer.android.com/reference/kotlin/androidx/compose/runtime/Composable (K) -> https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | content for this entry to be displayed when this entry is active |

### EntryProviderScope.entry

Cmn Artifact: [androidx.navigation3:navigation3-runtime](https://developer.android.com/jetpack/androidx/releases/navigation3) [View Source](https://cs.android.com/search?q=file:androidx/navigation3/runtime/EntryProvider.kt+function:entry)

```
fun <K : T> EntryProviderScope<T>.entry(
    key: K,
    contentKey: Any = defaultContentKey(key),
    metadata: (K) -> Map<String, Any>,
    content: @Composable (K) -> Unit
): Unit
```

Add an entry provider to the `https://developer.android.com/reference/kotlin/androidx/navigation3/runtime/EntryProviderScope`

| Parameters |
|---|---|
| `<K : T>` | the type of the key for this NavEntry |
| `key: K` | key for this entry |
| `contentKey: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html = defaultContentKey(key)` | A unique, stable id that uniquely identifies the content of this NavEntry. To maximize stability, it should be derived from the `https://developer.android.com/reference/kotlin/androidx/navigation3/runtime/EntryProviderScope#(androidx.navigation3.runtime.EntryProviderScope).entry(kotlin.Any,kotlin.Any,kotlin.Function1,kotlin.Function1)`. The contentKey type must be saveable (i.e. on Android, it should be saveable via Android). Defaults to `https://developer.android.com/reference/kotlin/androidx/navigation3/runtime/EntryProviderScope#(androidx.navigation3.runtime.EntryProviderScope).entry(kotlin.Any,kotlin.Any,kotlin.Function1,kotlin.Function1)`.toString(). |
| `metadata: (K) -> https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-map/index.html<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html, https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html>` | lambda that takes the `https://developer.android.com/reference/kotlin/androidx/navigation3/runtime/EntryProviderScope#(androidx.navigation3.runtime.EntryProviderScope).entry(kotlin.Any,kotlin.Any,kotlin.Function1,kotlin.Function1)` and provides a map of additional info |
| `content: @https://developer.android.com/reference/kotlin/androidx/compose/runtime/Composable (K) -> https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | content for this entry to be displayed when this entry is active |

### EntryProviderScope.entry

Cmn Artifact: [androidx.navigation3:navigation3-runtime](https://developer.android.com/jetpack/androidx/releases/navigation3) [View Source](https://cs.android.com/search?q=file:androidx/navigation3/runtime/EntryProvider.kt+function:entry)

```
fun <K : T> EntryProviderScope<T>.entry(
    key: K,
    contentKey: Any = defaultContentKey(key),
    metadata: Map<String, Any> = emptyMap(),
    content: @Composable (K) -> Unit
): Unit
```

Add an entry provider to the `https://developer.android.com/reference/kotlin/androidx/navigation3/runtime/EntryProviderScope`

| Parameters |
|---|---|
| `<K : T>` | the type of the key for this NavEntry |
| `key: K` | key for this entry |
| `contentKey: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html = defaultContentKey(key)` | A unique, stable id that uniquely identifies the content of this NavEntry. To maximize stability, it should be derived from the `https://developer.android.com/reference/kotlin/androidx/navigation3/runtime/EntryProviderScope#(androidx.navigation3.runtime.EntryProviderScope).entry(kotlin.Any,kotlin.Any,kotlin.collections.Map,kotlin.Function1)`. The contentKey type must be saveable (i.e. on Android, it should be saveable via Android). Defaults to `https://developer.android.com/reference/kotlin/androidx/navigation3/runtime/EntryProviderScope#(androidx.navigation3.runtime.EntryProviderScope).entry(kotlin.Any,kotlin.Any,kotlin.collections.Map,kotlin.Function1)`.toString(). |
| `metadata: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-map/index.html<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html, https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html> = emptyMap()` | provides information to the display |
| `content: @https://developer.android.com/reference/kotlin/androidx/compose/runtime/Composable (K) -> https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | content for this entry to be displayed when this entry is active |