# SpatialCapabilities

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/platform/SpatialCapabilities.kt+class:androidx.xr.compose.platform.SpatialCapabilities) Added in [1.0.0-beta02](https://developer.android.com/jetpack/androidx/releases/xr-compose#1.0.0-beta02)


```
sealed interface SpatialCapabilities
```

<br />

*** ** * ** ***

Provides information and functionality related to the spatial capabilities of the application.

## Summary

| ### Public companion properties |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/xr/compose/platform/SpatialCapabilities` | `https://developer.android.com/reference/kotlin/androidx/xr/compose/platform/SpatialCapabilities#NoCapabilities()` |

| ### Public properties |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/kotlin/androidx/xr/compose/platform/SpatialCapabilities#isAppEnvironmentEnabled()` Indicates whether the application may set the environment. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/kotlin/androidx/xr/compose/platform/SpatialCapabilities#isContent3dEnabled()` Indicates whether the application may create 3D objects. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/kotlin/androidx/xr/compose/platform/SpatialCapabilities#isPassthroughControlEnabled()` Indicates whether the application may control the passthrough state. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/kotlin/androidx/xr/compose/platform/SpatialCapabilities#isSpatialAudioEnabled()` Indicates whether the application may use spatial audio. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/kotlin/androidx/xr/compose/platform/SpatialCapabilities#isSpatialUiEnabled()` Indicates whether the application may create spatial UI elements (e.g. SpatialPanel). |

## Public companion properties

### NoCapabilities

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

```
val NoCapabilities: SpatialCapabilities
```

## Public properties

### isAppEnvironmentEnabled

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

```
val isAppEnvironmentEnabled: Boolean
```

Indicates whether the application may set the environment.

This is a State-based value that should trigger recomposition in composable functions.

### isContent3dEnabled

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

```
val isContent3dEnabled: Boolean
```

Indicates whether the application may create 3D objects.

This is a State-based value that should trigger recomposition in composable functions.

### isPassthroughControlEnabled

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

```
val isPassthroughControlEnabled: Boolean
```

Indicates whether the application may control the passthrough state.

This is a State-based value that should trigger recomposition in composable functions.

### isSpatialAudioEnabled

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

```
val isSpatialAudioEnabled: Boolean
```

Indicates whether the application may use spatial audio.

This is a State-based value that should trigger recomposition in composable functions.

### isSpatialUiEnabled

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

```
val isSpatialUiEnabled: Boolean
```

Indicates whether the application may create spatial UI elements (e.g. SpatialPanel).

This is a State-based value that should trigger recomposition in composable functions.