<div class='sourceset sourceset-common'>Common</div>

```kotlin
value class Direction internal constructor(internal val value: Int)
```

Represents the direction from where the offset will be calculated.

## Companion Object

#### Properties

<div class='sourceset sourceset-common'>Common</div>

```kotlin
val FromStart = Direction(OffsetFromStartType)
```

Indicates the offset will be calculated from the start. For example, if the
offset is 150.dp, the resulted anchor will be at the position that is 150dp away
from the start side of the associated layout.

<div class='sourceset sourceset-common'>Common</div>

```kotlin
val FromEnd = Direction(OffsetFromEndType)
```

Indicates the offset will be calculated from the end. For example, if the offset
is 150.dp, the resulted anchor will be at the position that is 150dp away from
the end side of the associated layout.