@UnstableApi
public final class RubySpan implements LanguageFeatureSpan


A styling span for ruby text.

The text covered by this span is known as the "base text", and the ruby text is stored in rubyText.

More information on ruby characters and span styling.

Summary

Public fields

final int

The position of the ruby text relative to the base text.

final String

The ruby text, i.e. the smaller explanatory characters.

Public constructors

RubySpan(String rubyText, @TextAnnotation.Position int position)

Public methods

static RubySpan
Bundle

Public fields

position

@TextAnnotation.Position
public final int position

The position of the ruby text relative to the base text.

rubyText

public final String rubyText

The ruby text, i.e. the smaller explanatory characters.

Public constructors

RubySpan

public RubySpan(String rubyText, @TextAnnotation.Position int position)

Public methods

fromBundle

public static RubySpan fromBundle(Bundle bundle)

toBundle

public Bundle toBundle()