getSpans

inline fun <T : Any> Spanned.getSpans(start: Int = 0, end: Int = length): Array<out T>

Get all spans that are instance of T.