Back to Exoplayer

RubySpan (ExoPlayer library)

docs/doc/reference/com/google/android/exoplayer2/text/span/RubySpan.html

latest2.8 KB
Original Source

Package com.google.android.exoplayer2.text.span

Class RubySpan

  • java.lang.Object

    • com.google.android.exoplayer2.text.span.RubySpan
  • All Implemented Interfaces:LanguageFeatureSpan


[@Deprecated](https://developer.android.com/reference/java/lang/Deprecated.html "class or interface in java.lang")public final classRubySpanextends[Object](https://developer.android.com/reference/java/lang/Object.html "class or interface in java.lang")implements[LanguageFeatureSpan](LanguageFeatureSpan.html "interface in com.google.android.exoplayer2.text.span")

Deprecated. com.google.android.exoplayer2 is deprecated. Please migrate to androidx.media3 (which contains the same ExoPlayer code). See the migration guide for more details, including a script to help with the migration.

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.

Field Summary

Fields | Modifier and Type | Field | Description | | --- | --- | --- | | @com.google.android.exoplayer2.text.span.TextAnnotation.Position int | position | Deprecated.

The position of the ruby text relative to the base text. | | String | rubyText | Deprecated.

The ruby text, i.e. |

Constructor Summary

Constructors | Constructor | Description | | --- | --- | | RubySpan​(String rubyText, @com.google.android.exoplayer2.text.span.TextAnnotation.Position int position) | Deprecated. |

Method Summary

- 

Methods inherited from class java.lang.Object

clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Field Detail

- 

rubyText

public final[String](https://developer.android.com/reference/java/lang/String.html "class or interface in java.lang")rubyText

Deprecated.

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

- 

position

public final @com.google.android.exoplayer2.text.span.TextAnnotation.Position int position

Deprecated.

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

Constructor Detail

- 

RubySpan

public RubySpan​([String](https://developer.android.com/reference/java/lang/String.html "class or interface in java.lang")rubyText,
                @com.google.android.exoplayer2.text.span.TextAnnotation.Position int position)

Deprecated.