TextDirectionHeuristicsCompat

Added in 1.1.0

class TextDirectionHeuristicsCompat


Some objects that implement TextDirectionHeuristic.

Summary

Constants

const TextDirectionHeuristicCompat!

If the text contains any strong right to left non-format character, determines that the direction is right to left, falling back to left to right if it finds none.

const TextDirectionHeuristicCompat!

Determines the direction based on the first strong directional character, including bidi format chars, falling back to left to right if it finds none.

const TextDirectionHeuristicCompat!

Determines the direction based on the first strong directional character, including bidi format chars, falling back to right to left if it finds none.

const TextDirectionHeuristicCompat!

Force the paragraph direction to the Locale direction.

const TextDirectionHeuristicCompat!

Always decides that the direction is left to right.

const TextDirectionHeuristicCompat!

Always decides that the direction is right to left.

Constants

ANYRTL_LTR

Added in 1.1.0
const val ANYRTL_LTRTextDirectionHeuristicCompat!

If the text contains any strong right to left non-format character, determines that the direction is right to left, falling back to left to right if it finds none.

FIRSTSTRONG_LTR

Added in 1.1.0
const val FIRSTSTRONG_LTRTextDirectionHeuristicCompat!

Determines the direction based on the first strong directional character, including bidi format chars, falling back to left to right if it finds none. This is the default behavior of the Unicode Bidirectional Algorithm.

FIRSTSTRONG_RTL

Added in 1.1.0
const val FIRSTSTRONG_RTLTextDirectionHeuristicCompat!

Determines the direction based on the first strong directional character, including bidi format chars, falling back to right to left if it finds none. This is similar to the default behavior of the Unicode Bidirectional Algorithm, just with different fallback behavior.

LOCALE

Added in 1.1.0
const val LOCALETextDirectionHeuristicCompat!

Force the paragraph direction to the Locale direction. Falls back to left to right.

LTR

Added in 1.1.0
const val LTRTextDirectionHeuristicCompat!

Always decides that the direction is left to right.

RTL

Added in 1.1.0
const val RTLTextDirectionHeuristicCompat!

Always decides that the direction is right to left.