Stay organized with collections Save and categorize content based on your preferences.

SpannedStringKt

public final class SpannedStringKt


Summary

Public methods

static final @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

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

Get all spans that are instance of T.

SpannedStringKt.toSpanned

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

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