{% setvar book_path %}/reference/androidx/_book.yaml{% endsetvar %} {% include "_shared/_reference-head-tags.html" %}

androidx.compose.ui

Annotations

ExperimentalComposeUiApi
InternalComposeUiApi

Unstable API for use only between compose-ui modules sharing the same exact version, subject to change without notice in major, minor, or patch releases.

UiComposable

An annotation that can be used to mark a composable function as being expected to be use in a composable function that is also marked or inferred to be marked as a UiComposable.

Interfaces

Alignment

An interface to calculate the position of a sized box inside an available space.

Alignment.Horizontal

An interface to calculate the position of box of a certain width inside an available width.

Alignment.Vertical

An interface to calculate the position of a box of a certain height inside an available height.

Modifier

An ordered, immutable collection of modifier elements that decorate or add behavior to Compose UI elements.

Modifier.Element

A single element contained within a Modifier chain.

MotionDurationScale

Provides a duration scale for motion such as animations.

Classes

BiasAbsoluteAlignment

An Alignment specified by bias: for example, a bias of -1 represents alignment to the left/top, a bias of 0 will represent centering, and a bias of 1 will represent right/bottom.

BiasAbsoluteAlignment.Horizontal

An Alignment.Horizontal specified by bias: for example, a bias of -1 represents alignment to the left, a bias of 0 will represent centering, and a bias of 1 will represent right.

BiasAlignment

An Alignment specified by bias: for example, a bias of -1 represents alignment to the start/top, a bias of 0 will represent centering, and a bias of 1 will represent end/bottom.

BiasAlignment.Horizontal

An Alignment.Horizontal specified by bias: for example, a bias of -1 represents alignment to the start, a bias of 0 will represent centering, and a bias of 1 will represent end.

BiasAlignment.Vertical

An Alignment.Vertical specified by bias: for example, a bias of -1 represents alignment to the top, a bias of 0 will represent centering, and a bias of 1 will represent bottom.

CombinedModifier

A node in a Modifier chain.

ComposedModifierKt
Modifier.Node

The longer-lived object that is created for each Modifier.Element applied to a androidx.compose.ui.layout.Layout.

ZIndexModifierKt
AbsoluteAlignment

A collection of common Alignments unaware of the layout direction.

Alignment.Companion

A collection of common Alignments aware of layout direction.

Modifier.Companion

The companion object Modifier is the empty, default, or starter Modifier that contains no elements.

MotionDurationScale.Key