# SpaceChangeEvent

Artifact: [androidx.xr.scenecore:scenecore](https://developer.android.com/jetpack/androidx/releases/xr-scenecore) [View Source](https://cs.android.com/search?q=file:androidx/xr/scenecore/SpaceChangeEvent.kt+class:androidx.xr.scenecore.SpaceChangeEvent) Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/xr-scenecore#1.0.0)

*** ** * ** ***


```
class SpaceChangeEvent
```

<br />

*** ** * ** ***

An event that is dispatched when the space for the scene has changed, such as from Home Space to Full Space

## Summary

| ### Public constructors |
|---|
| `https://developer.android.com/reference/kotlin/androidx/xr/scenecore/SpaceChangeEvent#SpaceChangeEvent(androidx.xr.runtime.math.Pose,kotlin.Float)(recommendedPose: https://developer.android.com/reference/kotlin/androidx/xr/runtime/math/Pose, recommendedScale: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html)` |

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

| ### Public properties |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/xr/runtime/math/Pose` | `https://developer.android.com/reference/kotlin/androidx/xr/scenecore/SpaceChangeEvent#recommendedPose()` The recommended pose for the key entity. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` | `https://developer.android.com/reference/kotlin/androidx/xr/scenecore/SpaceChangeEvent#recommendedScale()` The recommended scale for the key entity. |

## Public constructors

### SpaceChangeEvent

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/xr-scenecore#1.0.0)

```
SpaceChangeEvent(recommendedPose: Pose, recommendedScale: Float)
```

## Public functions

### equals

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

### hashCode

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

### toString

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

## Public properties

### recommendedPose

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/xr-scenecore#1.0.0)

```
val recommendedPose: Pose
```

The recommended pose for the key entity. The pose is relative to `https://developer.android.com/reference/kotlin/androidx/xr/scenecore/ActivitySpace` origin, not relative to the key entity's parent.

### recommendedScale

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/xr-scenecore#1.0.0)

```
val recommendedScale: Float
```

The recommended scale for the key entity. The scale value is the accumulated scale for this entity i.e. accumulated scale in `https://developer.android.com/reference/kotlin/androidx/xr/scenecore/ActivitySpace`, not relative to the key entity's parent.