Params

class Params(source)

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.

Constructors

Link copied to clipboard
@RequiresApi(value = 28)
constructor(@NonNull wrapped: PrecomputedText.Params)

Types

Link copied to clipboard
open class Builder
A builder for creating Params.

Functions

Link copied to clipboard
open fun equals(@Nullable o: Any): Boolean
Check if the same text layout.
Link copied to clipboard
Similar to equals but don't compare text direction
Link copied to clipboard
@RequiresApi(value = 23)
open fun getBreakStrategy(): Int
Returns the break strategy for this text.
Link copied to clipboard
@RequiresApi(value = 23)
open fun getHyphenationFrequency(): Int
Returns the hyphenation frequency for this text.
Link copied to clipboard
Link copied to clipboard
Returns the TextPaint for this text.
Link copied to clipboard
open fun hashCode(): Int
Link copied to clipboard
open fun toString(): String