SpannedStringKt

public final class SpannedStringKt


Summary

Public methods

static final @NonNull Array<@NonNull T>
<T extends Object> SpannedStringKt.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

SpannedStringKt.getSpans

@NonNull
public static final Array<@NonNull T> <T extends Object> SpannedStringKt.getSpans(
    @NonNull Spanned receiver,
    int start,
    int end
)

Get all spans that are instance of T.

SpannedStringKt.toSpanned

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

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