# SpatialBiasAlignment.Vertical

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


```
class SpatialBiasAlignment.Vertical : SpatialAlignment.Vertical
```

<br />

*** ** * ** ***

Creates a weighted alignment that specifies a vertical bias.

## Summary

| ### Public constructors |
|---|
| `https://developer.android.com/reference/kotlin/androidx/xr/compose/subspace/layout/SpatialBiasAlignment.Vertical#Vertical(kotlin.Float)(verticalBias: @https://developer.android.com/reference/kotlin/androidx/annotation/FloatRange(from = -1.0, to = 1.0) https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html)` |

| ### Public functions |
|---|---|
| `open https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/xr/compose/subspace/layout/SpatialBiasAlignment.Vertical#align(kotlin.Int,kotlin.Int)(size: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, space: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)` Provides the vertical alignment offset from the origin of the space to the origin of the content. |
| `https://developer.android.com/reference/kotlin/androidx/xr/compose/subspace/layout/SpatialBiasAlignment.Vertical` | `https://developer.android.com/reference/kotlin/androidx/xr/compose/subspace/layout/SpatialBiasAlignment.Vertical#copy(kotlin.Float)(bias: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html)` |
| `open operator https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/kotlin/androidx/xr/compose/subspace/layout/SpatialBiasAlignment.Vertical#equals(kotlin.Any)(other: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html?)` |
| `open https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/xr/compose/subspace/layout/SpatialBiasAlignment.Vertical#hashCode()()` |
| `open https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | `https://developer.android.com/reference/kotlin/androidx/xr/compose/subspace/layout/SpatialBiasAlignment.Vertical#toString()()` |

| ### Public properties |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` | `https://developer.android.com/reference/kotlin/androidx/xr/compose/subspace/layout/SpatialBiasAlignment.Vertical#verticalBias()` Must be within the range of -1, 1 with -1 being bottom and 1 being top. |

## Public constructors

### Vertical

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

```
Vertical(verticalBias: @FloatRange(from = -1.0, to = 1.0) Float)
```

| Parameters |
|---|---|
| `verticalBias: @https://developer.android.com/reference/kotlin/androidx/annotation/FloatRange(from = -1.0, to = 1.0) https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` | Must be within the range of -1, 1 with -1 being bottom and 1 being top. |

## Public functions

### align

```
open fun align(size: Int, space: Int): Int
```

Provides the vertical alignment offset from the origin of the space to the origin of the content.

| Parameters |
|---|---|
| `size: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | The content size in pixels. |
| `space: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | The available space in pixels. |

### copy

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

```
fun copy(bias: Float = this.verticalBias): SpatialBiasAlignment.Vertical
```

### equals

```
open operator fun equals(other: Any?): Boolean
```

### hashCode

```
open fun hashCode(): Int
```

### toString

```
open fun toString(): String
```

## Public properties

### verticalBias

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

```
val verticalBias: Float
```

Must be within the range of -1, 1 with -1 being bottom and 1 being top.