Back to Exoplayer

SpannedSubject.Typefaced (ExoPlayer library)

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

latest1.3 KB
Original Source

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

Interface SpannedSubject.Typefaced


public static interfaceSpannedSubject.Typefaced

Allows assertions about the typeface of a span.

Method Summary

All Methods Instance Methods Abstract Methods | Modifier and Type | Method | Description | | --- | --- | --- | | SpannedSubject.AndSpanFlags | withFamily​(String fontFamily) | Checks that at least one of the matched spans has the expected fontFamily. |

Method Detail

- 

withFamily

[SpannedSubject.AndSpanFlags](SpannedSubject.AndSpanFlags.html "interface in com.google.android.exoplayer2.testutil.truth")withFamily​([String](https://developer.android.com/reference/java/lang/String.html "class or interface in java.lang")fontFamily)

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