<div class='sourceset sourceset-common'>Common</div>

```kotlin
public object NavDisplay
```

Object that indicates the features that can be handled by the [NavDisplay](/jetpack-compose/androidx.navigation3/navigation3-ui/objects/NavDisplay)

## Functions

<h2 id="transitionspec-transitionspec">transitionSpec</h2>

```kotlin
public fun transitionSpec(
        transitionSpec: AnimatedContentTransitionScope<Scene<*>>.() -> ContentTransform?
    ): Map<String, Any>
```

Function to be called on the `NavEntry.metadata` or [Scene.metadata](/jetpack-compose/androidx.navigation3/navigation3-ui/interfaces/Scene) to notify the
[NavDisplay](/jetpack-compose/androidx.navigation3/navigation3-ui/objects/NavDisplay) of how the content should be animated using the provided [ContentTransform](/jetpack-compose/androidx.compose.animation/animation/classes/ContentTransform).

**IMPORTANT** [NavDisplay](/jetpack-compose/androidx.navigation3/navigation3-ui/objects/NavDisplay) only looks at the [Scene.metadata](/jetpack-compose/androidx.navigation3/navigation3-ui/interfaces/Scene) to determine the
[transitionSpec](#transitionspec), it is the responsibility of the [Scene.metadata](/jetpack-compose/androidx.navigation3/navigation3-ui/interfaces/Scene) to decide which
[transitionSpec](#transitionspec) to return, whether that be from the `NavEntry.metadata` or something custom.

#### Parameters

| | |
| --- | --- |
| transitionSpec | the [ContentTransform](/jetpack-compose/androidx.compose.animation/animation/classes/ContentTransform) to be used when adding to the backstack. If this is null, the transition will fallback to the transition set on the [NavDisplay](/jetpack-compose/androidx.navigation3/navigation3-ui/objects/NavDisplay) |

<hr class="docs-overload-divider">

<h2 id="poptransitionspec-poptransitionspec">popTransitionSpec</h2>

```kotlin
public fun popTransitionSpec(
        popTransitionSpec: AnimatedContentTransitionScope<Scene<*>>.() -> ContentTransform?
    ): Map<String, Any>
```

Function to be called on the `NavEntry.metadata` or [Scene.metadata](/jetpack-compose/androidx.navigation3/navigation3-ui/interfaces/Scene) to notify the
[NavDisplay](/jetpack-compose/androidx.navigation3/navigation3-ui/objects/NavDisplay) that, when popping from backstack, the content should be animated using the
provided [ContentTransform](/jetpack-compose/androidx.compose.animation/animation/classes/ContentTransform).

**IMPORTANT** [NavDisplay](/jetpack-compose/androidx.navigation3/navigation3-ui/objects/NavDisplay) only looks at the [Scene.metadata](/jetpack-compose/androidx.navigation3/navigation3-ui/interfaces/Scene) to determine the
[popTransitionSpec](#poptransitionspec), it is the responsibility of the [Scene.metadata](/jetpack-compose/androidx.navigation3/navigation3-ui/interfaces/Scene) to decide which
[popTransitionSpec](#poptransitionspec) to return, whether that be from the `NavEntry.metadata` or something
custom.

#### Parameters

| | |
| --- | --- |
| popTransitionSpec | the [ContentTransform](/jetpack-compose/androidx.compose.animation/animation/classes/ContentTransform) to be used when popping from backstack. If this is null, the transition will fallback to the transition set on the [NavDisplay](/jetpack-compose/androidx.navigation3/navigation3-ui/objects/NavDisplay) |

<hr class="docs-overload-divider">

<h2 id="predictivepoptransitionspec-predictivepoptransitionspec">predictivePopTransitionSpec</h2>

```kotlin
public fun predictivePopTransitionSpec(
        predictivePopTransitionSpec:
            AnimatedContentTransitionScope<Scene<*>>.(
                @NavigationEvent.SwipeEdge Int
            ) -> ContentTransform?
    ): Map<String, Any>
```

Function to be called on the `NavEntry.metadata` or [Scene.metadata](/jetpack-compose/androidx.navigation3/navigation3-ui/interfaces/Scene) to notify the
[NavDisplay](/jetpack-compose/androidx.navigation3/navigation3-ui/objects/NavDisplay) that, when popping from backstack using a Predictive back gesture, the content
should be animated using the provided [ContentTransform](/jetpack-compose/androidx.compose.animation/animation/classes/ContentTransform).

**IMPORTANT** [NavDisplay](/jetpack-compose/androidx.navigation3/navigation3-ui/objects/NavDisplay) only looks at the [Scene.metadata](/jetpack-compose/androidx.navigation3/navigation3-ui/interfaces/Scene) to determine the
[predictivePopTransitionSpec](#predictivepoptransitionspec), it is the responsibility of the [Scene.metadata](/jetpack-compose/androidx.navigation3/navigation3-ui/interfaces/Scene) to decide
which [predictivePopTransitionSpec](#predictivepoptransitionspec) to return, whether that be from the `NavEntry.metadata`
or something custom.

#### Parameters

| | |
| --- | --- |
| predictivePopTransitionSpec | the [ContentTransform](/jetpack-compose/androidx.compose.animation/animation/classes/ContentTransform) to be used when popping from backStack with predictive back gesture. If this is null, the transition will fallback to the transition set on the [NavDisplay](/jetpack-compose/androidx.navigation3/navigation3-ui/objects/NavDisplay) |