core-ktx / androidx.text

Package androidx.text

Extensions for External Classes

android.text.Spannable

android.text.SpannableStringBuilder

android.text.Spanned

kotlin.CharSequence

kotlin.String

Functions

buildSpannedString

fun buildSpannedString(builderAction: SpannableStringBuilder.() -> Unit): SpannedString

Builds new string by populating a newly created SpannableStringBuilder using the provided builderAction and then converting it to SpannedString.