public final class

PrecomputedTextCompat.Params

extends java.lang.Object

 java.lang.Object

↳androidx.core.text.PrecomputedTextCompat.Params

Overview

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

Constructors
publicParams(PrecomputedText.Params wrapped)

Methods
public booleanequals(java.lang.Object o)

Check if the same text layout.

public booleanequalsWithoutTextDirection(PrecomputedTextCompat.Params other)

Similar to equals but don't compare text direction

public intgetBreakStrategy()

Returns the break strategy for this text.

public intgetHyphenationFrequency()

Returns the hyphenation frequency for this text.

public TextDirectionHeuristicgetTextDirection()

Returns the for this text.

public TextPaintgetTextPaint()

Returns the for this text.

public inthashCode()

public java.lang.StringtoString()

from java.lang.Objectclone, finalize, getClass, notify, notifyAll, wait, wait, wait

Constructors

public Params(PrecomputedText.Params wrapped)

Methods

public TextPaint getTextPaint()

Returns the for this text.

Returns:

A

public TextDirectionHeuristic getTextDirection()

Returns the for this text. On API 17 and below, this returns null, otherwise returns non-null TextDirectionHeuristic.

Returns:

the

public int getBreakStrategy()

Returns the break strategy for this text. On API 22 and below, this returns 0.

Returns:

the line break strategy

public int getHyphenationFrequency()

Returns the hyphenation frequency for this text. On API 22 and below, this returns 0.

Returns:

the hyphenation frequency

public boolean equalsWithoutTextDirection(PrecomputedTextCompat.Params other)

Similar to equals but don't compare text direction

public boolean equals(java.lang.Object o)

Check if the same text layout.

Returns:

true if this and the given param result in the same text layout

public int hashCode()

public java.lang.String toString()