# Space

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

*** ** * ** ***


```
public final class Space
```

<br />

*** ** * ** ***

Coordinate spaces in which to apply transformation values.

## Summary

| ### Public fields |
|---|---|
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/xr/scenecore/Space` | `https://developer.android.com/reference/androidx/xr/scenecore/Space#ACTIVITY()` The global coordinate space, at the root of the scene graph for the activity. |
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/xr/scenecore/Space` | `https://developer.android.com/reference/androidx/xr/scenecore/Space#PARENT()` The coordinate space of an `https://developer.android.com/reference/androidx/xr/scenecore/Entity`'s parent, such that the child Entity's pose, scale, etc., are expressed relative to the parent. |

| ### Public methods |
|---|---|
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/xr/scenecore/Space#toString()()` |

## Public fields

### ACTIVITY

```
public static final @NonNull Space ACTIVITY
```

The global coordinate space, at the root of the scene graph for the activity.

### PARENT

```
public static final @NonNull Space PARENT
```

The coordinate space of an `https://developer.android.com/reference/androidx/xr/scenecore/Entity`'s parent, such that the child Entity's pose, scale, etc., are expressed relative to the parent.

## Public methods

### toString

```
public @NonNull String toString()
```