---
title: "OrbiterPosition.EdgeAlignment"
description: "Specifies how the [Orbiter] is aligned relative to its parent's layout boundary."
type: "class"
lastmod: "2026-09-24"
---
## API Reference

> Source set: Android

```kotlin
public class EdgeAlignment private constructor(private val value: Int)
```

Specifies how the [Orbiter](/jetpack-compose/androidx.xr.compose/compose/composable-functions/Orbiter/api) is aligned relative to its parent's layout boundary.

Note: Calculates alignment based on the parent's rectangular layout bounds, not its visual
shape or rounded corners. Use a custom offset in [DpVolumeOffset](/jetpack-compose/androidx.xr.compose/compose/classes/DpVolumeOffset/api) to align with curved or
non-rectangular contours.

## Members

### Companion

> Source set: Android

```kotlin
public companion object
```

## Properties

### Outside

> Source set: Android

```kotlin
public val Outside: EdgeAlignment = EdgeAlignment(0)
```

Positions the [Orbiter](/jetpack-compose/androidx.xr.compose/compose/composable-functions/Orbiter/api) fully outside the parent's layout boundary.

The orbiter does not overlap the parent panel's layout bounds. For example, a side
rail will sit completely to the side of the parent.

```
+------------------------+
|                        |
+---------+                        |
| Orbiter |      SpatialPanel      |
+---------+                        |
|                        |
+------------------------+
```

### Inside

> Source set: Android

```kotlin
public val Inside: EdgeAlignment = EdgeAlignment(1)
```

Positions the [Orbiter](/jetpack-compose/androidx.xr.compose/compose/composable-functions/Orbiter/api) fully inside the parent's layout boundary.

The orbiter completely overlaps the parent panel's layout bounds, functioning as an
overlay.

```
+------------------------+
|      SpatialPanel      |
+-----------+            |
|  Orbiter  |            |
+-----------+            |
|                        |
+------------------------+
```

### Center

> Source set: Android

```kotlin
public val Center: EdgeAlignment = EdgeAlignment(2)
```

Centers the [Orbiter](/jetpack-compose/androidx.xr.compose/compose/composable-functions/Orbiter/api) directly on the parent's layout boundary line.

The boundary line bisects the orbiter, placing it half-inside and half-outside the
parent.

```
+------------------------+
|                        |
+-----|-----+                  |
|  Orbiter  | SpatialPanel     |
+-----|-----+                  |
|                        |
+------------------------+
```
