PrecomputedTextCompat.Params
class PrecomputedTextCompat.Params
The information required for building PrecomputedTextCompat. Contains information required for precomputing text measurement metadata, so it can be done in isolation of a android.widget.TextView or StaticLayout, when final layout constraints are not known.
Summary
Nested types |
|---|
|
A builder for creating |
Public constructors |
|---|
@RequiresApi(value = 28) |
Public functions |
|
|---|---|
Boolean |
Check if the same text layout. |
Int |
Returns the break strategy for this text. |
Int |
Returns the hyphenation frequency for this text. |
TextDirectionHeuristic? |
Returns the |
TextPaint |
Returns the |
Int |
hashCode() |
String! |
toString() |
Public constructors
Public functions
equals
fun equals(o: Any?): Boolean
Check if the same text layout.
| Returns | |
|---|---|
Boolean |
true if this and the given param result in the same text layout |
getBreakStrategy
fun getBreakStrategy(): Int
Returns the break strategy for this text.
| Returns | |
|---|---|
Int |
the line break strategy |
getHyphenationFrequency
fun getHyphenationFrequency(): Int
Returns the hyphenation frequency for this text.
| Returns | |
|---|---|
Int |
the hyphenation frequency |
getTextDirection
fun getTextDirection(): TextDirectionHeuristic?
Returns the TextDirectionHeuristic for this text.
| Returns | |
|---|---|
TextDirectionHeuristic? |