Back to Exoplayer

SpannedSubject.RubyText (ExoPlayer library)

docs/doc/reference/com/google/android/exoplayer2/testutil/truth/SpannedSubject.RubyText.html

latest1.6 KB
Original Source

Package com.google.android.exoplayer2.testutil.truth

Interface SpannedSubject.RubyText


public static interfaceSpannedSubject.RubyText

Allows assertions about a span's ruby text and its position.

Method Summary

All Methods Instance Methods Abstract Methods | Modifier and Type | Method | Description | | --- | --- | --- | | SpannedSubject.AndSpanFlags | withTextAndPosition​(String text, @com.google.android.exoplayer2.text.span.TextAnnotation.Position int position) | Checks that at least one of the matched spans has the expected text. |

Method Detail

- 

withTextAndPosition

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

Checks that at least one of the matched spans has the expected text. Parameters:text - The expected text.position - The expected position of the text.Returns:A SpannedSubject.WithSpanFlags object for optional additional assertions on the flags.