Added in API level 18
TextDirectionHeuristic
interface TextDirectionHeuristic
| android.text.TextDirectionHeuristic |
Interface for objects that use a heuristic for guessing at the paragraph direction by examining text.
Summary
| Public methods | |
|---|---|
| abstract Boolean |
Guess if a chars array is in the RTL direction or not. |
| abstract Boolean |
isRtl(cs: CharSequence!, start: Int, count: Int)Guess if a |
Public methods
isRtl
Added in API level 18
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 |
Int: start index, inclusive. |
count |
Int: 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
Added in API level 18
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 |
Int: start index, inclusive. |
count |
Int: 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. |