Back to Exoplayer

SpannedSubject.Colored (ExoPlayer library)

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

latest1.2 KB
Original Source

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

Interface SpannedSubject.Colored


public static interfaceSpannedSubject.Colored

Allows assertions about the color of a span.

Method Summary

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

Method Detail

- 

withColor

[SpannedSubject.AndSpanFlags](SpannedSubject.AndSpanFlags.html "interface in com.google.android.exoplayer2.testutil.truth")withColor​(@ColorInt
                                      int color)

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