# SpannedSubject.AndSpanFlags

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.AndSpanFlags)

*** ** * ** ***


```
public interface SpannedSubject.AndSpanFlags
```

<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.WithSpanFlags`, but this should be returned from `with...()` methods while `https://developer.android.com/reference/androidx/media3/test/utils/truth/SpannedSubject.WithSpanFlags` should be returned from `has...()` methods.

See Flag constants on `https://developer.android.com/reference/android/text/Spanned.html` for possible values.

## Summary

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

## Public methods

### andFlags

```
abstract void andFlags(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. |