setPrecomputedText

open fun setPrecomputedText(@NonNull textView: @NonNull TextView, @NonNull precomputed: @NonNull PrecomputedTextCompat)(source)

Sets the PrecomputedTextCompat to the TextView If the given PrecomputeTextCompat is not compatible with textView, throws an IllegalArgumentException.

Parameters

textView

the TextView

precomputed

the precomputed text

Throws

if precomputed text is not compatible with textView.