create
open fun create(@NonNull text: CharSequence, @NonNull params: PrecomputedTextCompat.Params): PrecomputedTextCompat(source)
Create a new PrecomputedText which will pre-compute text measurement and glyph positioning information.
This can be expensive, so computing this on a background thread before your text will be presented can save work on the UI thread.
Note that any android.text.NoCopySpan attached to the text won't be passed to the created PrecomputedText.Return
Parameters
text
the text to be measured
params
parameters that define how text will be precomputed