# SceneInfo

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/SceneInfo.kt+class:androidx.navigation3.scene.SceneInfo) Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/navigation3#1.0.0) Common/All
- Cmn

  ```
  class SceneInfo<T : Any> : NavigationEventInfo
  ```

|---|---|---|
| [kotlin.Any](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html) |||
| ↳ | [androidx.navigationevent.NavigationEventInfo](https://developer.android.com/reference/kotlin/androidx/navigationevent/NavigationEventInfo) ||
|   | ↳ | [androidx.navigation3.scene.SceneInfo](https://developer.android.com/reference/kotlin/androidx/navigation3/scene/SceneInfo) |

*** ** * ** ***

Represents a snapshot of the visible destinations in a navigation container.

This class provides the necessary context for building animations during navigation gestures, like predictive back. It's a simple data holder that feeds into the `https://developer.android.com/reference/kotlin/androidx/navigationevent/NavigationEventHistory`.

Note: `https://developer.android.com/reference/kotlin/androidx/navigation3/scene/SceneInfo#title()` and `https://developer.android.com/reference/kotlin/androidx/navigation3/scene/SceneInfo#url()` are retrieved from `https://developer.android.com/reference/kotlin/androidx/navigation3/scene/Scene#metadata()`, which by default only includes the metadata of the last `https://developer.android.com/reference/kotlin/androidx/navigation3/runtime/NavEntry` in `https://developer.android.com/reference/kotlin/androidx/navigation3/scene/Scene#entries()`. For example, if a scene renders `listOf(entryA, entryB)`, `https://developer.android.com/reference/kotlin/androidx/navigation3/scene/SceneInfo#title()` and `https://developer.android.com/reference/kotlin/androidx/navigation3/scene/SceneInfo#url()` will be populated only if `entryB` contains the metadata.

## Summary

| ### Public constructors |
|---|---|
| `<T : https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html> https://developer.android.com/reference/kotlin/androidx/navigation3/scene/SceneInfo#SceneInfo(androidx.navigation3.scene.Scene)(scene: https://developer.android.com/reference/kotlin/androidx/navigation3/scene/Scene<T>)` Binary-compatible constructor for callers compiled against versions without `https://developer.android.com/reference/kotlin/androidx/navigation3/scene/SceneInfo#title()` and `https://developer.android.com/reference/kotlin/androidx/navigation3/scene/SceneInfo#url()`. | Cmn |
| `<T : https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html> https://developer.android.com/reference/kotlin/androidx/navigation3/scene/SceneInfo#SceneInfo(androidx.navigation3.scene.Scene,kotlin.String,kotlin.String)(scene: https://developer.android.com/reference/kotlin/androidx/navigation3/scene/Scene<T>, title: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html?, url: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html?)` | Cmn |

| ### Public functions |
|---|---|---|
| `open operator https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/kotlin/androidx/navigation3/scene/SceneInfo#equals(kotlin.Any)(other: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html?)` | Cmn |
| `open https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/navigation3/scene/SceneInfo#hashCode()()` | Cmn |
| `open https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | `https://developer.android.com/reference/kotlin/androidx/navigation3/scene/SceneInfo#toString()()` | Cmn |

| ### Public properties |
|---|---|---|
| `https://developer.android.com/reference/kotlin/androidx/navigation3/scene/Scene<T>` | `https://developer.android.com/reference/kotlin/androidx/navigation3/scene/SceneInfo#scene()` The scene whose state is used by the NavigationEvent | Cmn |
| `open https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html?` | `https://developer.android.com/reference/kotlin/androidx/navigation3/scene/SceneInfo#title()` The resolved window or destination title associated with `https://developer.android.com/reference/kotlin/androidx/navigation3/scene/SceneInfo#scene()`, or `null` if unspecified. | Cmn |
| `open https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html?` | `https://developer.android.com/reference/kotlin/androidx/navigation3/scene/SceneInfo#url()` The resolved URL or path representation associated with `https://developer.android.com/reference/kotlin/androidx/navigation3/scene/SceneInfo#scene()`, or `null` if unspecified. | Cmn |

## Public constructors

### SceneInfo

Cmn

```
<T : Any> SceneInfo(scene: Scene<T>)
```

Binary-compatible constructor for callers compiled against versions without `https://developer.android.com/reference/kotlin/androidx/navigation3/scene/SceneInfo#title()` and `https://developer.android.com/reference/kotlin/androidx/navigation3/scene/SceneInfo#url()`.

### SceneInfo

Cmn

```
<T : Any> SceneInfo(scene: Scene<T>, title: String? = null, url: String? = null)
```

## Public functions

### equals

Cmn

```
open operator fun equals(other: Any?): Boolean
```

### hashCode

Cmn

```
open fun hashCode(): Int
```

### toString

Cmn

```
open fun toString(): String
```

## Public properties

### scene

Cmn Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/navigation3#1.0.0)

```
val scene: Scene<T>
```

The scene whose state is used by the NavigationEvent

### title

Cmn

```
open val title: String?
```

The resolved window or destination title associated with `https://developer.android.com/reference/kotlin/androidx/navigation3/scene/SceneInfo#scene()`, or `null` if unspecified.

### url

Cmn

```
open val url: String?
```

The resolved URL or path representation associated with `https://developer.android.com/reference/kotlin/androidx/navigation3/scene/SceneInfo#scene()`, or `null` if unspecified.