TextDirectionHeuristicCompat

interface TextDirectionHeuristicCompat
androidx.core.text.TextDirectionHeuristicCompat

Interface for objects that use a heuristic for guessing at the paragraph direction by examining text.

Summary

Public methods
abstract Boolean
isRtl(array: CharArray!, start: Int, count: Int)

Guess if a chars array is in the RTL direction or not.

abstract Boolean
isRtl(cs: CharSequence!, start: Int, count: Int)

Guess if a CharSequence is in the RTL direction or not.

Public methods

isRtl

abstract fun isRtl(array: CharArray!, start: Int, count: Int): Boolean

Guess if a chars array is in the RTL direction or not.

Parameters
array CharArray!: the char array.
start CharArray!: start index, inclusive.
count CharArray!: the length to check, must not be negative and not greater than array.length - start.
Return
Boolean: true if all chars in the range are to be considered in a RTL direction, false otherwise.

isRtl

abstract fun isRtl(cs: CharSequence!, start: Int, count: Int): Boolean

Guess if a CharSequence is in the RTL direction or not.

Parameters
cs CharSequence!: the CharSequence.
start CharSequence!: start index, inclusive.
count CharSequence!: the length to check, must not be negative and not greater than CharSequence.length() - start.
Return
Boolean: true if all chars in the range are to be considered in a RTL direction, false otherwise.