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

TextDirection.Companion

public static class TextDirection.Companion


Summary

Public methods

static final @NonNull TextDirection

This value indicates that the text direction depends on the first strong directional character in the text according to the Unicode Bidirectional Algorithm.

static final @NonNull TextDirection

This value indicates that the text direction depends on the first strong directional character in the text according to the Unicode Bidirectional Algorithm.

static final @NonNull TextDirection

This value indicates that the text direction depends on the first strong directional character in the text according to the Unicode Bidirectional Algorithm.

static final @NonNull TextDirection

Always sets the text direction to be Left to Right.

static final @NonNull TextDirection

Always sets the text direction to be Right to Left.

Public methods

getContent

public static final @NonNull TextDirection getContent()

This value indicates that the text direction depends on the first strong directional character in the text according to the Unicode Bidirectional Algorithm. If no strong directional character is present, then androidx.compose.ui.unit.LayoutDirection is used to resolve the final TextDirection.

getContentOrLtr

public static final @NonNull TextDirection getContentOrLtr()

This value indicates that the text direction depends on the first strong directional character in the text according to the Unicode Bidirectional Algorithm. If no strong directional character is present, then Left to Right will be used as the default direction.

getContentOrRtl

public static final @NonNull TextDirection getContentOrRtl()

This value indicates that the text direction depends on the first strong directional character in the text according to the Unicode Bidirectional Algorithm. If no strong directional character is present, then Right to Left will be used as the default direction.

getLtr

public static final @NonNull TextDirection getLtr()

Always sets the text direction to be Left to Right.

getRtl

public static final @NonNull TextDirection getRtl()

Always sets the text direction to be Right to Left.