# SubspaceSemanticsInfo

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


```
sealed interface SubspaceSemanticsInfo
```

<br />

*** ** * ** ***

Provides semantic information about a node in the Subspace layout hierarchy.

This interface defines the properties that are accessible for semantics-related purposes, such as accessibility services and testing. Each `SubspaceSemanticsInfo` node represents a composable in the UI tree that has semantics attached.

## Summary

| ### Public properties |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html<https://developer.android.com/reference/kotlin/androidx/xr/compose/subspace/node/SubspaceSemanticsInfo>` | `https://developer.android.com/reference/kotlin/androidx/xr/compose/subspace/node/SubspaceSemanticsInfo#childrenInfo()` The children of this node in the semantics tree. |
| `open https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html<https://developer.android.com/reference/kotlin/androidx/xr/scenecore/Component>?` | `https://developer.android.com/reference/kotlin/androidx/xr/compose/subspace/node/SubspaceSemanticsInfo#components()` The list of components attached to this node by the Subspace layout update phase. |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/Density` | `https://developer.android.com/reference/kotlin/androidx/xr/compose/subspace/node/SubspaceSemanticsInfo#density()` The density of this node. |
| `open https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/kotlin/androidx/xr/compose/subspace/node/SubspaceSemanticsInfo#isRoot()` Whether this node is the root of a semantics tree. |
| `https://developer.android.com/reference/kotlin/androidx/xr/compose/subspace/node/SubspaceSemanticsInfo?` | `https://developer.android.com/reference/kotlin/androidx/xr/compose/subspace/node/SubspaceSemanticsInfo#parentInfo()` The parent of this node in the semantics tree. |
| `https://developer.android.com/reference/kotlin/androidx/xr/runtime/math/Pose` | `https://developer.android.com/reference/kotlin/androidx/xr/compose/subspace/node/SubspaceSemanticsInfo#pose()` The pose of this node relative to its parent layout node in the Compose hierarchy. |
| `https://developer.android.com/reference/kotlin/androidx/xr/runtime/math/Pose` | `https://developer.android.com/reference/kotlin/androidx/xr/compose/subspace/node/SubspaceSemanticsInfo#poseInRoot()` The pose of this node relative to the root of this Compose hierarchy, in pixels. |
| `open https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` | `https://developer.android.com/reference/kotlin/androidx/xr/compose/subspace/node/SubspaceSemanticsInfo#scale()` The scale factor of this node relative to its parent. |
| `https://developer.android.com/reference/kotlin/androidx/xr/compose/subspace/semantics/SubspaceSemanticsConfiguration?` | `https://developer.android.com/reference/kotlin/androidx/xr/compose/subspace/node/SubspaceSemanticsInfo#semanticsConfiguration()` The semantics configuration of this node. |
| `https://developer.android.com/reference/kotlin/androidx/xr/scenecore/Entity?` | `https://developer.android.com/reference/kotlin/androidx/xr/compose/subspace/node/SubspaceSemanticsInfo#semanticsEntity()` The `https://developer.android.com/reference/kotlin/androidx/xr/scenecore/Entity` associated with this node. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/xr/compose/subspace/node/SubspaceSemanticsInfo#semanticsId()` The unique ID of this semantics node. |
| `https://developer.android.com/reference/kotlin/androidx/xr/compose/unit/IntVolumeSize` | `https://developer.android.com/reference/kotlin/androidx/xr/compose/subspace/node/SubspaceSemanticsInfo#size()` The dimensions of the 3D bounding box for this node. |

## Public properties

### childrenInfo

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

```
val childrenInfo: List<SubspaceSemanticsInfo>
```

The children of this node in the semantics tree.

### components

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

```
open val components: List<Component>?
```

The list of components attached to this node by the Subspace layout update phase.

Returns a collection of `https://developer.android.com/reference/kotlin/androidx/xr/scenecore/Component` objects representing various capabilities or properties (e.g., visual, interactive, or physical behaviors) attached to the `https://developer.android.com/reference/kotlin/androidx/xr/compose/subspace/node/SubspaceSemanticsInfo#semanticsEntity()`. Returns `null` if there is no underlying `Entity`.

### density

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

```
val density: Density
```

The density of this node.

### isRoot

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

```
open val isRoot: Boolean
```

Whether this node is the root of a semantics tree.

### parentInfo

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

```
val parentInfo: SubspaceSemanticsInfo?
```

The parent of this node in the semantics tree.

### pose

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

```
val pose: Pose
```

The pose of this node relative to its parent layout node in the Compose hierarchy.

### poseInRoot

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

```
val poseInRoot: Pose
```

The pose of this node relative to the root of this Compose hierarchy, in pixels.

### scale

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

```
open val scale: Float
```

The scale factor of this node relative to its parent.

### semanticsConfiguration

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

```
val semanticsConfiguration: SubspaceSemanticsConfiguration?
```

The semantics configuration of this node.

This includes all properties attached as modifiers to the current layout node.

### semanticsEntity

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

```
val semanticsEntity: Entity?
```

The `https://developer.android.com/reference/kotlin/androidx/xr/scenecore/Entity` associated with this node.

### semanticsId

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

```
val semanticsId: Int
```

The unique ID of this semantics node.

### size

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

```
val size: IntVolumeSize
```

The dimensions of the 3D bounding box for this node.