---
title: "SubspaceSemanticsConfiguration"
description: "Configuration of semantics properties for a spatial node."
type: "class"
lastmod: "2026-07-19T07:47:45.838976Z"
---
## API Reference

> Source set: Android

```kotlin
public class SubspaceSemanticsConfiguration
internal constructor(private val config: SemanticsConfiguration) :
    SubspaceSemanticsPropertyReceiver, Iterable<Map.Entry<SemanticsPropertyKey<*>, Any?>>
```

Configuration of semantics properties for a spatial node.

## Secondary Constructors

```kotlin
public constructor() : this(SemanticsConfiguration())
```

Creates a new, empty [SubspaceSemanticsConfiguration](/jetpack-compose/androidx.xr.compose/compose/classes/SubspaceSemanticsConfiguration).

## Functions

### contains

```kotlin
public operator fun <T> contains(key: SemanticsPropertyKey<T>): Boolean
```

Returns true if the configuration contains the given [key](/jetpack-compose/androidx.compose.ui/ui/classes/Key).

### getOrElseNullable

```kotlin
public fun <T> getOrElseNullable(key: SemanticsPropertyKey<T>, defaultValue: () -> T?): T?
```

Returns the value for the given [key](/jetpack-compose/androidx.compose.ui/ui/classes/Key) if present, or the result of `defaultValue` if not.

### getOrElse

```kotlin
public fun <T> getOrElse(key: SemanticsPropertyKey<T>, defaultValue: () -> T): T
```

Returns the value for the given [key](/jetpack-compose/androidx.compose.ui/ui/classes/Key) if present, or the result of `defaultValue` if not.

### get

```kotlin
public operator fun <T> get(key: SemanticsPropertyKey<T>): T
```

Returns the value for the given [key](/jetpack-compose/androidx.compose.ui/ui/classes/Key) if present, or throws `IllegalStateException` if not.

### getOrNull

```kotlin
public fun <T> getOrNull(key: SemanticsPropertyKey<T>): T?
```

Returns the value for the given [key](/jetpack-compose/androidx.compose.ui/ui/classes/Key) if present, or null if not.
