# OrbiterAlignment.CenterEnd

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


```
class OrbiterAlignment.CenterEnd : OrbiterAlignment
```

<br />

|---|---|---|
| [kotlin.Any](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html) |||
| ↳ | [androidx.xr.compose.spatial.OrbiterAlignment](https://developer.android.com/reference/kotlin/androidx/xr/compose/spatial/OrbiterAlignment) ||
|   | ↳ | [androidx.xr.compose.spatial.OrbiterAlignment.CenterEnd](https://developer.android.com/reference/kotlin/androidx/xr/compose/spatial/OrbiterAlignment.CenterEnd) |

*** ** * ** ***

> [!CAUTION]
> **This class is deprecated.**   
> Use OrbiterPosition instead, use this instead:
>
> ```kotlin
> OrbiterPosition
> ```

Center-End edge alignment.

## Summary

| ### Public constructors |
|---|
| `[CenterEnd](https://developer.android.com/reference/kotlin/androidx/xr/compose/spatial/OrbiterAlignment.CenterEnd#CenterEnd(androidx.xr.compose.spatial.OrbiterEdgeOffsetType,androidx.xr.compose.unit.DpVolumeOffset))(edgeOffsetType: https://developer.android.com/reference/kotlin/androidx/xr/compose/spatial/OrbiterEdgeOffsetType, offset: https://developer.android.com/reference/kotlin/androidx/xr/compose/unit/DpVolumeOffset)` **This function is deprecated.** Use OrbiterPosition instead. |

## Public constructors

### CenterEnd

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

```
[CenterEnd](https://developer.android.com/reference/kotlin/androidx/xr/compose/spatial/OrbiterAlignment.CenterEnd#CenterEnd(androidx.xr.compose.spatial.OrbiterEdgeOffsetType,androidx.xr.compose.unit.DpVolumeOffset))(
    edgeOffsetType: OrbiterEdgeOffsetType = OrbiterEdgeOffsetType.OuterEdge,
    offset: DpVolumeOffset = DpVolumeOffset(0.dp, 0.dp, OrbiterDefaults.Elevation)
)
```

> [!CAUTION]
> **This function is deprecated.**   
> Use OrbiterPosition instead, use this instead:
>
> ```kotlin
> OrbiterPosition
> ```

| Parameters |
|---|---|
| `edgeOffsetType: https://developer.android.com/reference/kotlin/androidx/xr/compose/spatial/OrbiterEdgeOffsetType = OrbiterEdgeOffsetType.OuterEdge` | boundary offset behavior relative to the parent bounds |
| `offset: https://developer.android.com/reference/kotlin/androidx/xr/compose/unit/DpVolumeOffset = DpVolumeOffset(0.dp, 0.dp, OrbiterDefaults.Elevation)` | manual offset applied to the orbiter after the `https://developer.android.com/reference/kotlin/androidx/xr/compose/spatial/OrbiterAlignment.CenterEnd#(androidx.xr.compose.spatial.OrbiterEdgeOffsetType,androidx.xr.compose.unit.DpVolumeOffset)`'s offset is applied. This offset will automatically adjust the horizontal offset according to the layout direction: when the layout direction is LTR, positive x offsets will move the content to the right and when the layout direction is RTL, positive x offsets will move the content to the left. |