SpannedStringKt

public final class SpannedStringKt


Summary

Public methods

static final T[]
<T extends Object> SpannedStringKt.getSpans(Spanned receiver, int start, int end)

Get all spans that are instance of T.

static final @NonNull Spanned

Returns a new Spanned from CharSequence, or the source itself if it is already an instance of SpannedString.

Public methods

SpannedStringKt.getSpans

public static final T[] <T extends Object> SpannedStringKt.getSpans(Spanned receiver, int start, int end)

Get all spans that are instance of T.

SpannedStringKt.toSpanned

public static final @NonNull Spanned SpannedStringKt.toSpanned(CharSequence receiver)

Returns a new Spanned from CharSequence, or the source itself if it is already an instance of SpannedString.