# SpannedSubject.WithSpanFlags

Artifact: [androidx.media3:media3-test-utils](https://developer.android.com/jetpack/androidx/releases/media3) [View Source](https://cs.android.com/search?q=file:androidx/media3/test/utils/truth/SpannedSubject.java+class:androidx.media3.test.utils.truth.SpannedSubject.WithSpanFlags)

*** ** * ** ***


```
public interface SpannedSubject.WithSpanFlags
```

<br />

*** ** * ** ***

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

Identical to `https://developer.android.com/reference/androidx/media3/test/utils/truth/SpannedSubject.AndSpanFlags`, but this should be returned from `has...()` methods while `https://developer.android.com/reference/androidx/media3/test/utils/truth/SpannedSubject.AndSpanFlags` should be returned from `with...()` methods.

## Summary

| ### Public methods |
|---|---|
| `abstract void` | `https://developer.android.com/reference/androidx/media3/test/utils/truth/SpannedSubject.WithSpanFlags#withFlags(int)(int flags)` Checks that one of the matched spans has the expected `flags`. |

## Public methods

### withFlags

```
abstract void withFlags(int flags)
```

Checks that one of the matched spans has the expected `flags`.

| Parameters |
|---|---|
| `int flags` | The expected flags. See SPAN_\* constants on `https://developer.android.com/reference/android/text/Spanned.html` for possible values. |