SpannedStringKt

Added in 1.1.0

public final class SpannedStringKt


Summary

Public methods

static final @NonNull T[]
<T extends Object> getSpans(@NonNull 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

getSpans

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

Get all spans that are instance of T.

toSpanned

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

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