Class SpannableString

com.yandex.mapkit

java.lang.Object ⇽ SpannableString

public class SpannableString

A string that supports spans in it.

Nested Classes

Constructors

SpannableString()

Use constructor with parameters in your code.

SpannableString(@NonNull String text, @NonNull List< Span > spans)

Methods

String getNativeName()
synchronized List< Span > getSpans()

The spans in stored text.

synchronized String getText()

The text of the spannable string.

void serialize(Archive archive)

Constructor Detail

SpannableString

public SpannableString ()

Use constructor with parameters in your code.

This one is for serialization only!

SpannableString

public SpannableString (@NonNull String text, @NonNull List< Span > spans)

Method Detail

getNativeName

public static String getNativeName ()

getSpans

public synchronized List< Span > getSpans ()

The spans in stored text.

getText

public synchronized String getText ()

The text of the spannable string.

serialize

public void serialize (Archive archive)