@UnstableApi
class RubySpan : 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 constructors

RubySpan(rubyText: String!, @TextAnnotation.Position position: Int)

Public functions

java-static RubySpan!
fromBundle(bundle: Bundle!)
Bundle!

Public properties

Int

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

String!

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

Public constructors

RubySpan

RubySpan(rubyText: String!, @TextAnnotation.Position position: Int)

Public functions

fromBundle

java-static fun fromBundle(bundle: Bundle!): RubySpan!

toBundle

fun toBundle(): Bundle!

Public properties

position

@TextAnnotation.Position
val positionInt

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

rubyText

val rubyTextString!

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