Back to Exoplayer

SpannedSubject.Aligned (ExoPlayer library)

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

latest1.3 KB
Original Source

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

Interface SpannedSubject.Aligned


public static interfaceSpannedSubject.Aligned

Allows assertions about the alignment of a span.

Method Summary

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

Method Detail

- 

withAlignment

[SpannedSubject.AndSpanFlags](SpannedSubject.AndSpanFlags.html "interface in com.google.android.exoplayer2.testutil.truth")withAlignment​([Layout.Alignment](https://developer.android.com/reference/android/text/Layout.Alignment.html "class or interface in android.text")alignment)

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