public class TextDirection internal constructor(public val value: Int)
Defines the algorithm used to determine text direction.
Members
Companion
public companion object
Properties
Ltr
public val Ltr: TextDirection
Sets the text direction to Left-to-Right.
Rtl
public val Rtl: TextDirection
Sets the text direction to Right-to-Left.
Content
public val Content: TextDirection
Resolves direction using the first strong directional character according to the Unicode Bidirectional Algorithm.
If no strong directional characters are present, falls back to androidx.compose.ui.unit.LayoutDirection, or to androidx.compose.ui.text.intl.LocaleList when creating a androidx.compose.ui.text.Paragraph (ignoring androidx.compose.ui.unit.LayoutDirection).
ContentOrLtr
public val ContentOrLtr: TextDirection
Resolves direction based on the first strong directional character according to the Unicode Bidirectional Algorithm.
Falls back to Left-to-Right if no strong directional characters are found.
ContentOrRtl
public val ContentOrRtl: TextDirection
Resolves direction based on the first strong directional character according to the Unicode Bidirectional Algorithm.
Falls back to Right-to-Left if no strong directional characters are found.
Unspecified
public val Unspecified: TextDirection
Represents an unset TextDirection value.
Functions
valueOf
public fun valueOf(value: Int): TextDirection
Creates TextDirection from value.
Useful for serialization/deserialization.
Parameters
| value | internal integer representation. |
Throws: IllegalArgumentException
if value is invalid.