BidiFormatter.Builder
class BidiFormatter.Builder
A class for building a BidiFormatter with non-default options.
Summary
Public constructors |
|---|
Builder()Constructor. |
|
Constructor. |
|
Constructor. |
Public functions |
|
|---|---|
BidiFormatter! |
build() |
BidiFormatter.Builder! |
setTextDirectionHeuristic(heuristic: TextDirectionHeuristicCompat!)Specifies the default directionality estimation algorithm to be used by the BidiFormatter. |
BidiFormatter.Builder! |
stereoReset(stereoReset: Boolean)Specifies whether the BidiFormatter to be built should also "reset" directionality before a string being bidi-wrapped, not just after it. |
Public constructors
Public functions
build
fun build(): BidiFormatter!
| Returns | |
|---|---|
BidiFormatter! |
A BidiFormatter with the specified options. |
setTextDirectionHeuristic
fun setTextDirectionHeuristic(heuristic: TextDirectionHeuristicCompat!): BidiFormatter.Builder!
Specifies the default directionality estimation algorithm to be used by the BidiFormatter. By default, uses the first-strong heuristic.
| Parameters | |
|---|---|
heuristic: TextDirectionHeuristicCompat! |
the |
| Returns | |
|---|---|
BidiFormatter.Builder! |
the builder itself. |
stereoReset
fun stereoReset(stereoReset: Boolean): BidiFormatter.Builder!
Specifies whether the BidiFormatter to be built should also "reset" directionality before a string being bidi-wrapped, not just after it. The default is true.