Google is committed to advancing racial equity for Black communities. See how.

LayoutDirection

enum class LayoutDirection
kotlin.Any
   ↳ kotlin.Enum<androidx.compose.ui.unit.LayoutDirection>
   ↳ androidx.compose.ui.unit.LayoutDirection

A class for defining layout directions.

A layout direction can be left-to-right (LTR) or right-to-left (RTL).

Summary

Enum values

Horizontal layout direction is from Left to Right.

Horizontal layout direction is from Right to Left.

Inherited extension functions
From androidx.core.util
infix Range<T>
T.rangeTo(that: T)

Creates a range from this Comparable value to that.

Enum values

Ltr

enum val Ltr : LayoutDirection

Horizontal layout direction is from Left to Right.

Rtl

enum val Rtl : LayoutDirection

Horizontal layout direction is from Right to Left.