Back to Exoplayer

SpannedSubject.WithSpanFlags (ExoPlayer library)

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

latest1.4 KB
Original Source

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

Interface SpannedSubject.WithSpanFlags


public static interfaceSpannedSubject.WithSpanFlags

Allows additional assertions to be made on the flags of matching spans.

Identical to SpannedSubject.AndSpanFlags, but this should be returned from has...() methods while SpannedSubject.AndSpanFlags should be returned from with...() methods.

Method Summary

All Methods Instance Methods Abstract Methods | Modifier and Type | Method | Description | | --- | --- | --- | | void | withFlags​(int flags) | Checks that one of the matched spans has the expected flags. |

Method Detail

- 

withFlags

void withFlags​(int flags)

Checks that one of the matched spans has the expected flags. Parameters:flags - The expected flags. See SPAN_* constants on Spanned for possible values.