The Developer Preview for Android 11 is now available; test it out and share your feedback.

LayoutDirection

enum class LayoutDirection
kotlin.Any
   ↳ kotlin.Enum<androidx.ui.core.LayoutDirection>
   ↳ androidx.ui.core.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.compose
operator T

IMPORTANT: This global operator is TEMPORARY, and should be removed whenever an answer for contextual composers is reached.

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.