# SinglePaneSceneStrategy

Artifact: [androidx.navigation3:navigation3-ui](https://developer.android.com/jetpack/androidx/releases/navigation3) [View Source](https://cs.android.com/search?q=file:androidx/navigation3/scene/SinglePaneScene.kt+class:androidx.navigation3.scene.SinglePaneSceneStrategy) Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/navigation3#1.0.0) Common/All
- Cmn

  ```
  class SinglePaneSceneStrategy<T : Any> : SceneStrategy<T>
  ```

*** ** * ** ***

A `https://developer.android.com/reference/kotlin/androidx/navigation3/scene/SceneStrategy` that always creates a 1-entry `https://developer.android.com/reference/kotlin/androidx/navigation3/scene/Scene` simply displaying the last entry in the list.

## Summary

| ### Public constructors |
|---|---|
| `<T : https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html> https://developer.android.com/reference/kotlin/androidx/navigation3/scene/SinglePaneSceneStrategy#SinglePaneSceneStrategy()()` | Cmn |

| ### Public functions |
|---|---|---|
| `open https://developer.android.com/reference/kotlin/androidx/navigation3/scene/Scene<T>` | `https://developer.android.com/reference/kotlin/androidx/navigation3/scene/SceneStrategyScope<T>.https://developer.android.com/reference/kotlin/androidx/navigation3/scene/SinglePaneSceneStrategy#(androidx.navigation3.scene.SceneStrategyScope).calculateScene(kotlin.collections.List)(entries: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html<https://developer.android.com/reference/kotlin/androidx/navigation3/runtime/NavEntry<T>>)` Given a `https://developer.android.com/reference/kotlin/androidx/navigation3/scene/SceneStrategyScope`, calculate whether this `https://developer.android.com/reference/kotlin/androidx/navigation3/scene/SceneStrategy` should take on the task of rendering one or more of the entries in the scope. | Cmn |

### Inherited functions

From [androidx.navigation3.scene.SceneStrategy](https://developer.android.com/reference/kotlin/androidx/navigation3/scene/SceneStrategy) `open infix https://developer.android.com/reference/kotlin/androidx/navigation3/scene/SceneStrategy<T>` `[then](https://developer.android.com/reference/kotlin/androidx/navigation3/scene/SceneStrategy#then(androidx.navigation3.scene.SceneStrategy))(sceneStrategy: https://developer.android.com/reference/kotlin/androidx/navigation3/scene/SceneStrategy<T>)`

**This function is deprecated.** Deprecated in favor of List\<SceneStrategy\> APIs that take the output of this operator has been refactored to take a list of strategies instead.
Cmn

## Public constructors

### SinglePaneSceneStrategy

Cmn

```
<T : Any> SinglePaneSceneStrategy()
```

## Public functions

### SceneStrategyScope.calculateScene

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

```
open fun SceneStrategyScope<T>.calculateScene(entries: List<NavEntry<T>>): Scene<T>
```

Given a `https://developer.android.com/reference/kotlin/androidx/navigation3/scene/SceneStrategyScope`, calculate whether this `https://developer.android.com/reference/kotlin/androidx/navigation3/scene/SceneStrategy` should take on the task of rendering one or more of the entries in the scope.

By returning a non-null `https://developer.android.com/reference/kotlin/androidx/navigation3/scene/Scene`, your `https://developer.android.com/reference/kotlin/androidx/navigation3/scene/Scene` takes on the responsibility of rendering the set of entries you declare in `https://developer.android.com/reference/kotlin/androidx/navigation3/scene/Scene#entries()`. If you return `null`, the next available `https://developer.android.com/reference/kotlin/androidx/navigation3/scene/SceneStrategy` will be called.

| Parameters |
|---|---|
| `entries: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html<https://developer.android.com/reference/kotlin/androidx/navigation3/runtime/NavEntry<T>>` | The entries on the back stack that should be considered valid to render via a returned Scene. |