Back to Exoplayer

SpannedSubject.RelativeSized (ExoPlayer library)

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

latest1.2 KB
Original Source

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

Interface SpannedSubject.RelativeSized


public static interfaceSpannedSubject.RelativeSized

Allows assertions about the relative size of a span.

Method Summary

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

Method Detail

- 

withSizeChange

[SpannedSubject.AndSpanFlags](SpannedSubject.AndSpanFlags.html "interface in com.google.android.exoplayer2.testutil.truth")withSizeChange​(float sizeChange)

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