core-ktx / androidx.text / android.text.Spanned

Extensions for android.text.Spanned

getSpans

fun <T : Any> Spanned.getSpans(): Array<out T>

Get all spans that are instance of T.