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

```kotlin
public fun interface SceneStrategy<T : Any>
```

A strategy that tries to calculate a [Scene](/jetpack-compose/androidx.navigation3/navigation3-ui/interfaces/Scene) given a list of `NavEntry`s.

## Functions

<h2 id="calculatescene-entries">calculateScene</h2>

```kotlin
public fun SceneStrategyScope<T>.calculateScene(entries: List<NavEntry<T>>): Scene<T>?
```

Given a [SceneStrategyScope](/jetpack-compose/androidx.navigation3/navigation3-ui/classes/SceneStrategyScope), calculate whether this [SceneStrategy](/jetpack-compose/androidx.navigation3/navigation3-ui/interfaces/SceneStrategy) should take on the task
of rendering one or more of the entries in the scope.

By returning a non-null [Scene](/jetpack-compose/androidx.navigation3/navigation3-ui/interfaces/Scene), your [Scene](/jetpack-compose/androidx.navigation3/navigation3-ui/interfaces/Scene) takes on the responsibility of rendering the
set of entries you declare in [Scene.entries](/jetpack-compose/androidx.navigation3/navigation3-ui/interfaces/Scene). If you return `null`, the next available
[SceneStrategy](/jetpack-compose/androidx.navigation3/navigation3-ui/interfaces/SceneStrategy) will be called.

#### Parameters

| | |
| --- | --- |
| entries | The entries on the back stack that should be considered valid to render via a returned Scene. |

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

<h2 id="then-scenestrategy">then</h2>

```kotlin
public infix fun then(sceneStrategy: SceneStrategy<T>): SceneStrategy<T>
```

Chains this [SceneStrategy](/jetpack-compose/androidx.navigation3/navigation3-ui/interfaces/SceneStrategy) with another [sceneStrategy](/jetpack-compose/androidx.navigation3/navigation3-ui/interfaces/SceneStrategy) to return a combined
[SceneStrategy](/jetpack-compose/androidx.navigation3/navigation3-ui/interfaces/SceneStrategy). For the returned [SceneStrategy](/jetpack-compose/androidx.navigation3/navigation3-ui/interfaces/SceneStrategy), [calculateScene](#calculatescene) will use the first
non-null result from the calculation.