isRtl

open fun isRtl(str: String): Boolean(source)

Estimates the directionality of a string using the default text direction heuristic.

Return

true if str's estimated overall directionality is RTL. Otherwise returns false.

Parameters

str

String whose directionality is to be estimated.


open fun isRtl(str: CharSequence): Boolean(source)

Operates like isRtl, but takes a CharSequence instead of a string.

Return

true if str's estimated overall directionality is RTL. Otherwise returns false.

Parameters

str

CharSequence whose directionality is to be estimated.