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

ResolvedTextDirection

public enum ResolvedTextDirection extends Enum

java.lang.Object
   ↳ kotlin.Enum
     ↳ androidx.compose.ui.text.style.ResolvedTextDirection

Describes the directionality of a text.

See also
TextDirection
getParagraphDirection
getBidiRunDirection

Summary

Enum Values

Ltr

Represents the text that is left-to-right.

Rtl

Represents the text that is right-to-left.

Public methods

final @NonNull EnumEntries<@NonNull ResolvedTextDirection>

Describes the directionality of a text.

final @NonNull ResolvedTextDirection

Returns the enum constant of this type with the specified name.

final @NonNull ResolvedTextDirection[]

Returns an array containing the constants of this enum type, in the order they're declared.

Enum Values

Ltr

ResolvedTextDirection ResolvedTextDirection.Ltr

Represents the text that is left-to-right.

Rtl

ResolvedTextDirection ResolvedTextDirection.Rtl

Represents the text that is right-to-left.

Public methods

getEntries

public final @NonNull EnumEntries<@NonNull ResolvedTextDirectiongetEntries()

Describes the directionality of a text.

valueOf

public final @NonNull ResolvedTextDirection valueOf(@NonNull String value)

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Throws
kotlin.IllegalArgumentException

if this enum type has no constant with the specified name

values

public final @NonNull ResolvedTextDirection[] values()

Returns an array containing the constants of this enum type, in the order they're declared.

This method may be used to iterate over the constants.