# SpannedSubject

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)

*** ** * ** ***

<br />

```
@UnstableApi
class SpannedSubject : Subject
```

<br />

|---|---|---|
| [kotlin.Any](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html) |||
| ↳ | [com.google.common.truth.Subject](https://truth.dev/api/0.41/com/google/common/truth/Subject.html) ||
|   | ↳ | [androidx.media3.test.utils.truth.SpannedSubject](https://developer.android.com/reference/kotlin/androidx/media3/test/utils/truth/SpannedSubject) |

*** ** * ** ***

A Truth `https://truth.dev/api/0.41/com/google/common/truth/Subject.html` for assertions on `https://developer.android.com/reference/android/text/Spanned.html` instances containing text styling.

## Summary

| ### Nested types |
|---|
| `interface https://developer.android.com/reference/kotlin/androidx/media3/test/utils/truth/SpannedSubject.AbsoluteSized` Allows assertions about the absolute size of a span. |
| `interface https://developer.android.com/reference/kotlin/androidx/media3/test/utils/truth/SpannedSubject.Aligned` Allows assertions about the alignment of a span. |
| `interface https://developer.android.com/reference/kotlin/androidx/media3/test/utils/truth/SpannedSubject.AndSpanFlags` Allows additional assertions to be made on the flags of matching spans. |
| `interface https://developer.android.com/reference/kotlin/androidx/media3/test/utils/truth/SpannedSubject.Colored` Allows assertions about the color of a span. |
| `interface https://developer.android.com/reference/kotlin/androidx/media3/test/utils/truth/SpannedSubject.EmphasizedText` Allows assertions about a span's text emphasis mark and its position. |
| `interface https://developer.android.com/reference/kotlin/androidx/media3/test/utils/truth/SpannedSubject.RelativeSized` Allows assertions about the relative size of a span. |
| `interface https://developer.android.com/reference/kotlin/androidx/media3/test/utils/truth/SpannedSubject.RubyText` Allows assertions about a span's ruby text and its position. |
| `interface https://developer.android.com/reference/kotlin/androidx/media3/test/utils/truth/SpannedSubject.Typefaced` Allows assertions about the typeface of a span. |
| `interface https://developer.android.com/reference/kotlin/androidx/media3/test/utils/truth/SpannedSubject.VoiceText` Allows assertions about a span's voice its position. |
| `interface https://developer.android.com/reference/kotlin/androidx/media3/test/utils/truth/SpannedSubject.WithSpanFlags` Allows additional assertions to be made on the flags of matching spans. |

| ### Public functions |
|---|---|
| `java-static https://developer.android.com/reference/kotlin/androidx/media3/test/utils/truth/SpannedSubject!` | `https://developer.android.com/reference/kotlin/androidx/media3/test/utils/truth/SpannedSubject#assertThat(android.text.Spanned)(spanned: https://developer.android.com/reference/android/text/Spanned.html?)` Convenience method to create a SpannedSubject. |
| `https://developer.android.com/reference/kotlin/androidx/media3/test/utils/truth/SpannedSubject.AbsoluteSized!` | `https://developer.android.com/reference/kotlin/androidx/media3/test/utils/truth/SpannedSubject#hasAbsoluteSizeSpanBetween(int,int)(start: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, end: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)` Checks that the subject has a `https://developer.android.com/reference/android/text/style/AbsoluteSizeSpan.html` from `start` to `end`. |
| `https://developer.android.com/reference/kotlin/androidx/media3/test/utils/truth/SpannedSubject.Aligned!` | `https://developer.android.com/reference/kotlin/androidx/media3/test/utils/truth/SpannedSubject#hasAlignmentSpanBetween(int,int)(start: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, end: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)` Checks that the subject has a `https://developer.android.com/reference/android/text/style/AlignmentSpan.html` from `start` to `end`. |
| `https://developer.android.com/reference/kotlin/androidx/media3/test/utils/truth/SpannedSubject.Colored!` | `https://developer.android.com/reference/kotlin/androidx/media3/test/utils/truth/SpannedSubject#hasBackgroundColorSpanBetween(int,int)(start: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, end: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)` Checks that the subject has a `https://developer.android.com/reference/android/text/style/BackgroundColorSpan.html` from `start` to `end`. |
| `https://developer.android.com/reference/kotlin/androidx/media3/test/utils/truth/SpannedSubject.WithSpanFlags!` | `https://developer.android.com/reference/kotlin/androidx/media3/test/utils/truth/SpannedSubject#hasBoldItalicSpanBetween(int,int)(start: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, end: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)` Checks that the subject has bold and italic styling from `start` to `end`. |
| `https://developer.android.com/reference/kotlin/androidx/media3/test/utils/truth/SpannedSubject.WithSpanFlags!` | `https://developer.android.com/reference/kotlin/androidx/media3/test/utils/truth/SpannedSubject#hasBoldSpanBetween(int,int)(start: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, end: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)` Checks that the subject has a bold span from `start` to `end`. |
| `https://developer.android.com/reference/kotlin/androidx/media3/test/utils/truth/SpannedSubject.Colored!` | `https://developer.android.com/reference/kotlin/androidx/media3/test/utils/truth/SpannedSubject#hasForegroundColorSpanBetween(int,int)(start: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, end: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)` Checks that the subject has a `https://developer.android.com/reference/android/text/style/ForegroundColorSpan.html` from `start` to `end`. |
| `https://developer.android.com/reference/kotlin/androidx/media3/test/utils/truth/SpannedSubject.WithSpanFlags!` | `https://developer.android.com/reference/kotlin/androidx/media3/test/utils/truth/SpannedSubject#hasHorizontalTextInVerticalContextSpanBetween(int,int)(start: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, end: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)` Checks that the subject has an `https://developer.android.com/reference/kotlin/androidx/media3/common/text/HorizontalTextInVerticalContextSpan` from `start` to `end`. |
| `https://developer.android.com/reference/kotlin/androidx/media3/test/utils/truth/SpannedSubject.WithSpanFlags!` | `https://developer.android.com/reference/kotlin/androidx/media3/test/utils/truth/SpannedSubject#hasItalicSpanBetween(int,int)(start: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, end: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)` Checks that the subject has an italic span from `start` to `end`. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/media3/test/utils/truth/SpannedSubject#hasNoAbsoluteSizeSpanBetween(int,int)(start: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, end: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)` Checks that the subject has no `https://developer.android.com/reference/android/text/style/AbsoluteSizeSpan.html`s on any of the text between ` start` and `end`. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/media3/test/utils/truth/SpannedSubject#hasNoAlignmentSpanBetween(int,int)(start: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, end: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)` Checks that the subject has no `https://developer.android.com/reference/android/text/style/AlignmentSpan.html`s on any of the text between `start` and `end`. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/media3/test/utils/truth/SpannedSubject#hasNoBackgroundColorSpanBetween(int,int)(start: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, end: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)` Checks that the subject has no `https://developer.android.com/reference/android/text/style/BackgroundColorSpan.html`s on any of the text between ` start` and `end`. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/media3/test/utils/truth/SpannedSubject#hasNoForegroundColorSpanBetween(int,int)(start: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, end: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)` Checks that the subject has no `https://developer.android.com/reference/android/text/style/ForegroundColorSpan.html`s on any of the text between ` start` and `end`. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/media3/test/utils/truth/SpannedSubject#hasNoHorizontalTextInVerticalContextSpanBetween(int,int)(start: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, end: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)` Checks that the subject has no `https://developer.android.com/reference/kotlin/androidx/media3/common/text/HorizontalTextInVerticalContextSpan`s on any of the text between `start` and `end`. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/media3/test/utils/truth/SpannedSubject#hasNoRelativeSizeSpanBetween(int,int)(start: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, end: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)` Checks that the subject has no `https://developer.android.com/reference/android/text/style/RelativeSizeSpan.html`s on any of the text between ` start` and `end`. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/media3/test/utils/truth/SpannedSubject#hasNoRubySpanBetween(int,int)(start: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, end: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)` Checks that the subject has no `https://developer.android.com/reference/kotlin/androidx/media3/common/text/RubySpan`s on any of the text between `start` and `end`. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/media3/test/utils/truth/SpannedSubject#hasNoSpans()()` |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/media3/test/utils/truth/SpannedSubject#hasNoStrikethroughSpanBetween(int,int)(start: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, end: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)` Checks that the subject has no `https://developer.android.com/reference/android/text/style/StrikethroughSpan.html`s on any of the text between ` start` and `end`. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/media3/test/utils/truth/SpannedSubject#hasNoStyleSpanBetween(int,int)(start: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, end: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)` Checks that the subject has no `https://developer.android.com/reference/android/text/style/StyleSpan.html`s on any of the text between `start` and `end`. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/media3/test/utils/truth/SpannedSubject#hasNoTextEmphasisSpanBetween(int,int)(start: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, end: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)` Checks that the subject has no `https://developer.android.com/reference/kotlin/androidx/media3/common/text/TextEmphasisSpan`s on any of the text between ` start` and `end`. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/media3/test/utils/truth/SpannedSubject#hasNoTypefaceSpanBetween(int,int)(start: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, end: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)` Checks that the subject has no `https://developer.android.com/reference/android/text/style/TypefaceSpan.html`s on any of the text between `start` and `end`. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/media3/test/utils/truth/SpannedSubject#hasNoUnderlineSpanBetween(int,int)(start: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, end: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)` Checks that the subject has no `https://developer.android.com/reference/android/text/style/UnderlineSpan.html`s on any of the text between `start` and `end`. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/media3/test/utils/truth/SpannedSubject#hasNoVoiceSpanBetween(int,int)(start: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, end: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)` Checks that the subject has no `https://developer.android.com/reference/kotlin/androidx/media3/common/text/VoiceSpan`s on any of the text between `start` and `end`. |
| `https://developer.android.com/reference/kotlin/androidx/media3/test/utils/truth/SpannedSubject.RelativeSized!` | `https://developer.android.com/reference/kotlin/androidx/media3/test/utils/truth/SpannedSubject#hasRelativeSizeSpanBetween(int,int)(start: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, end: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)` Checks that the subject has a `https://developer.android.com/reference/android/text/style/RelativeSizeSpan.html` from `start` to `end`. |
| `https://developer.android.com/reference/kotlin/androidx/media3/test/utils/truth/SpannedSubject.RubyText!` | `https://developer.android.com/reference/kotlin/androidx/media3/test/utils/truth/SpannedSubject#hasRubySpanBetween(int,int)(start: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, end: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)` Checks that the subject has a `https://developer.android.com/reference/kotlin/androidx/media3/common/text/RubySpan` from `start` to `end`. |
| `https://developer.android.com/reference/kotlin/androidx/media3/test/utils/truth/SpannedSubject.WithSpanFlags!` | `https://developer.android.com/reference/kotlin/androidx/media3/test/utils/truth/SpannedSubject#hasStrikethroughSpanBetween(int,int)(start: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, end: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)` Checks that the subject has an `https://developer.android.com/reference/android/text/style/StrikethroughSpan.html` from `start` to `end`. |
| `https://developer.android.com/reference/kotlin/androidx/media3/test/utils/truth/SpannedSubject.EmphasizedText!` | `https://developer.android.com/reference/kotlin/androidx/media3/test/utils/truth/SpannedSubject#hasTextEmphasisSpanBetween(int,int)(start: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, end: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)` Checks that the subject has an `https://developer.android.com/reference/kotlin/androidx/media3/common/text/TextEmphasisSpan` from `start` to `end`. |
| `https://developer.android.com/reference/kotlin/androidx/media3/test/utils/truth/SpannedSubject.Typefaced!` | `https://developer.android.com/reference/kotlin/androidx/media3/test/utils/truth/SpannedSubject#hasTypefaceSpanBetween(int,int)(start: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, end: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)` Checks that the subject has a `https://developer.android.com/reference/android/text/style/TypefaceSpan.html` from `start` to `end`. |
| `https://developer.android.com/reference/kotlin/androidx/media3/test/utils/truth/SpannedSubject.WithSpanFlags!` | `https://developer.android.com/reference/kotlin/androidx/media3/test/utils/truth/SpannedSubject#hasUnderlineSpanBetween(int,int)(start: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, end: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)` Checks that the subject has an `https://developer.android.com/reference/android/text/style/UnderlineSpan.html` from `start` to `end`. |
| `https://developer.android.com/reference/kotlin/androidx/media3/test/utils/truth/SpannedSubject.VoiceText!` | `https://developer.android.com/reference/kotlin/androidx/media3/test/utils/truth/SpannedSubject#hasVoiceSpanBetween(int,int)(start: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, end: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)` Checks that the subject has an `https://developer.android.com/reference/kotlin/androidx/media3/common/text/VoiceSpan` from `start` to `end`. |
| `java-static https://truth.dev/api/0.41/com/google/common/truth/Subject.Factory.html<https://developer.android.com/reference/kotlin/androidx/media3/test/utils/truth/SpannedSubject!, https://developer.android.com/reference/android/text/Spanned.html!>!` | `https://developer.android.com/reference/kotlin/androidx/media3/test/utils/truth/SpannedSubject#spanned()()` |

### Inherited functions

From [com.google.common.truth.Subject](https://truth.dev/api/0.41/com/google/common/truth/Subject.html) `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` `https://truth.dev/api/0.41/com/google/common/truth/Subject.html#actualCustomStringRepresentation--()` `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` `https://truth.dev/api/0.41/com/google/common/truth/Subject.html#equals-java.lang.Object-(o: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html!)`

**This function is deprecated.**
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `https://truth.dev/api/0.41/com/google/common/truth/Subject.html#failWithActual-java.lang.String-java.lang.Object-(key: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!, value: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html!)` `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `https://truth.dev/api/0.41/com/google/common/truth/Subject.html#failWithoutActual-com.google.common.truth.Fact-com.google.common.truth.Fact...-(first: https://truth.dev/api/0.41/com/google/common/truth/Fact.html!, rest: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-array/index.html<https://truth.dev/api/0.41/com/google/common/truth/Fact.html!>!)` `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` `https://truth.dev/api/0.41/com/google/common/truth/Subject.html#hashCode--()`

**This function is deprecated.**
`https://truth.dev/api/0.41/com/google/common/truth/StandardSubjectBuilder.html!` `https://truth.dev/api/0.41/com/google/common/truth/Subject.html#ignoreCheck--()` `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `https://truth.dev/api/0.41/com/google/common/truth/Subject.html#isAnyOf-java.lang.Object-java.lang.Object-java.lang.Object...-(first: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html!, second: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html!, rest: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-array/index.html<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html!>!)` `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `https://truth.dev/api/0.41/com/google/common/truth/Subject.html#isEqualTo-java.lang.Object-(expected: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html!)` `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `https://truth.dev/api/0.41/com/google/common/truth/Subject.html#isIn-java.lang.Iterable&lt;?&gt;-(iterable: (https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-mutable-iterable/index.html)https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-iterable/index.html<*>!)` `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `https://truth.dev/api/0.41/com/google/common/truth/Subject.html#isInstanceOf-java.lang.Class&lt;?&gt;-(clazz: https://developer.android.com/reference/java/lang/Class.html<*>!)` `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `https://truth.dev/api/0.41/com/google/common/truth/Subject.html#isNoneOf-java.lang.Object-java.lang.Object-java.lang.Object...-(first: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html!, second: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html!, rest: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-array/index.html<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html!>!)` `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `https://truth.dev/api/0.41/com/google/common/truth/Subject.html#isNotEqualTo-java.lang.Object-(unexpected: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html!)` `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `https://truth.dev/api/0.41/com/google/common/truth/Subject.html#isNotIn-java.lang.Iterable&lt;?&gt;-(iterable: (https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-mutable-iterable/index.html)https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-iterable/index.html<*>!)` `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `https://truth.dev/api/0.41/com/google/common/truth/Subject.html#isNotInstanceOf-java.lang.Class&lt;?&gt;-(clazz: https://developer.android.com/reference/java/lang/Class.html<*>!)` `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `https://truth.dev/api/0.41/com/google/common/truth/Subject.html#isNotNull--()` `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `https://truth.dev/api/0.41/com/google/common/truth/Subject.html#isNotSameInstanceAs-java.lang.Object-(unexpected: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html!)` `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `https://truth.dev/api/0.41/com/google/common/truth/Subject.html#isNull--()` `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `https://truth.dev/api/0.41/com/google/common/truth/Subject.html#isSameInstanceAs-java.lang.Object-(expected: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html!)` `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` `https://truth.dev/api/0.41/com/google/common/truth/Subject.html#toString--()`

## Public functions

### assertThat

```
java-static fun assertThat(spanned: Spanned?): SpannedSubject!
```

Convenience method to create a SpannedSubject.

Can be statically imported alongside other Truth `assertThat` methods.

| Parameters |
|---|---|
| `spanned: https://developer.android.com/reference/android/text/Spanned.html?` | The subject under test. |

| Returns |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/media3/test/utils/truth/SpannedSubject!` | An object for conducting assertions on the subject. |

### hasAbsoluteSizeSpanBetween

```
fun hasAbsoluteSizeSpanBetween(start: Int, end: Int): SpannedSubject.AbsoluteSized!
```

Checks that the subject has a `https://developer.android.com/reference/android/text/style/AbsoluteSizeSpan.html` from `start` to `end`.

The size is asserted in a follow-up method call on the return `https://developer.android.com/reference/kotlin/androidx/media3/test/utils/truth/SpannedSubject.AbsoluteSized` object.

| Parameters |
|---|---|
| `start: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | The start of the expected span. |
| `end: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | The end of the expected span. |

| Returns |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/media3/test/utils/truth/SpannedSubject.AbsoluteSized!` | A `https://developer.android.com/reference/kotlin/androidx/media3/test/utils/truth/SpannedSubject.AbsoluteSized` object to assert on the size of the matching spans. |

### hasAlignmentSpanBetween

```
fun hasAlignmentSpanBetween(start: Int, end: Int): SpannedSubject.Aligned!
```

Checks that the subject has a `https://developer.android.com/reference/android/text/style/AlignmentSpan.html` from `start` to `end`.

The alignment is asserted in a follow-up method call on the return `https://developer.android.com/reference/kotlin/androidx/media3/test/utils/truth/SpannedSubject.Aligned` object.

| Parameters |
|---|---|
| `start: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | The start of the expected span. |
| `end: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | The end of the expected span. |

| Returns |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/media3/test/utils/truth/SpannedSubject.Aligned!` | A `https://developer.android.com/reference/kotlin/androidx/media3/test/utils/truth/SpannedSubject.Aligned` object to assert on the alignment of the matching spans. |

### hasBackgroundColorSpanBetween

```
fun hasBackgroundColorSpanBetween(start: Int, end: Int): SpannedSubject.Colored!
```

Checks that the subject has a `https://developer.android.com/reference/android/text/style/BackgroundColorSpan.html` from `start` to `end`.

The color is asserted in a follow-up method call on the return `https://developer.android.com/reference/kotlin/androidx/media3/test/utils/truth/SpannedSubject.Colored` object.

| Parameters |
|---|---|
| `start: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | The start of the expected span. |
| `end: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | The end of the expected span. |

| Returns |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/media3/test/utils/truth/SpannedSubject.Colored!` | A `https://developer.android.com/reference/kotlin/androidx/media3/test/utils/truth/SpannedSubject.Colored` object to assert on the color of the matching spans. |

### hasBoldItalicSpanBetween

```
fun hasBoldItalicSpanBetween(start: Int, end: Int): SpannedSubject.WithSpanFlags!
```

Checks that the subject has bold and italic styling from `start` to `end`.

This can either be:

- A single `https://developer.android.com/reference/android/text/style/StyleSpan.html` with `span.getStyle() == Typeface.BOLD_ITALIC`.
- Two `https://developer.android.com/reference/android/text/style/StyleSpan.html`s, one with `span.getStyle() == Typeface.BOLD` and the other with `span.getStyle() == Typeface.ITALIC`.

| Parameters |
|---|---|
| `start: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | The start of the expected span. |
| `end: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | The end of the expected span. |

| Returns |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/media3/test/utils/truth/SpannedSubject.WithSpanFlags!` | A `https://developer.android.com/reference/kotlin/androidx/media3/test/utils/truth/SpannedSubject.WithSpanFlags` object for optional additional assertions on the flags. |

### hasBoldSpanBetween

```
fun hasBoldSpanBetween(start: Int, end: Int): SpannedSubject.WithSpanFlags!
```

Checks that the subject has a bold span from `start` to `end`.

| Parameters |
|---|---|
| `start: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | The start of the expected span. |
| `end: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | The end of the expected span. |

| Returns |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/media3/test/utils/truth/SpannedSubject.WithSpanFlags!` | A `https://developer.android.com/reference/kotlin/androidx/media3/test/utils/truth/SpannedSubject.WithSpanFlags` object for optional additional assertions on the flags. |

### hasForegroundColorSpanBetween

```
fun hasForegroundColorSpanBetween(start: Int, end: Int): SpannedSubject.Colored!
```

Checks that the subject has a `https://developer.android.com/reference/android/text/style/ForegroundColorSpan.html` from `start` to `end`.

The color is asserted in a follow-up method call on the return `https://developer.android.com/reference/kotlin/androidx/media3/test/utils/truth/SpannedSubject.Colored` object.

| Parameters |
|---|---|
| `start: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | The start of the expected span. |
| `end: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | The end of the expected span. |

| Returns |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/media3/test/utils/truth/SpannedSubject.Colored!` | A `https://developer.android.com/reference/kotlin/androidx/media3/test/utils/truth/SpannedSubject.Colored` object to assert on the color of the matching spans. |

### hasHorizontalTextInVerticalContextSpanBetween

```
fun hasHorizontalTextInVerticalContextSpanBetween(start: Int, end: Int): SpannedSubject.WithSpanFlags!
```

Checks that the subject has an `https://developer.android.com/reference/kotlin/androidx/media3/common/text/HorizontalTextInVerticalContextSpan` from `start` to `end`.

| Parameters |
|---|---|
| `start: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | The start of the expected span. |
| `end: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | The end of the expected span. |

| Returns |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/media3/test/utils/truth/SpannedSubject.WithSpanFlags!` | A `https://developer.android.com/reference/kotlin/androidx/media3/test/utils/truth/SpannedSubject.WithSpanFlags` object for optional additional assertions on the flags. |

### hasItalicSpanBetween

```
fun hasItalicSpanBetween(start: Int, end: Int): SpannedSubject.WithSpanFlags!
```

Checks that the subject has an italic span from `start` to `end`.

| Parameters |
|---|---|
| `start: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | The start of the expected span. |
| `end: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | The end of the expected span. |

| Returns |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/media3/test/utils/truth/SpannedSubject.WithSpanFlags!` | A `https://developer.android.com/reference/kotlin/androidx/media3/test/utils/truth/SpannedSubject.WithSpanFlags` object for optional additional assertions on the flags. |

### hasNoAbsoluteSizeSpanBetween

```
fun hasNoAbsoluteSizeSpanBetween(start: Int, end: Int): Unit
```

Checks that the subject has no `https://developer.android.com/reference/android/text/style/AbsoluteSizeSpan.html`s on any of the text between ` start` and `end`.

This fails even if the start and end indexes don't exactly match.

| Parameters |
|---|---|
| `start: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | The start index to start searching for spans. |
| `end: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | The end index to stop searching for spans. |

### hasNoAlignmentSpanBetween

```
fun hasNoAlignmentSpanBetween(start: Int, end: Int): Unit
```

Checks that the subject has no `https://developer.android.com/reference/android/text/style/AlignmentSpan.html`s on any of the text between `start` and `end`.

This fails even if the start and end indexes don't exactly match.

| Parameters |
|---|---|
| `start: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | The start index to start searching for spans. |
| `end: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | The end index to stop searching for spans. |

### hasNoBackgroundColorSpanBetween

```
fun hasNoBackgroundColorSpanBetween(start: Int, end: Int): Unit
```

Checks that the subject has no `https://developer.android.com/reference/android/text/style/BackgroundColorSpan.html`s on any of the text between ` start` and `end`.

This fails even if the start and end indexes don't exactly match.

| Parameters |
|---|---|
| `start: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | The start index to start searching for spans. |
| `end: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | The end index to stop searching for spans. |

### hasNoForegroundColorSpanBetween

```
fun hasNoForegroundColorSpanBetween(start: Int, end: Int): Unit
```

Checks that the subject has no `https://developer.android.com/reference/android/text/style/ForegroundColorSpan.html`s on any of the text between ` start` and `end`.

This fails even if the start and end indexes don't exactly match.

| Parameters |
|---|---|
| `start: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | The start index to start searching for spans. |
| `end: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | The end index to stop searching for spans. |

### hasNoHorizontalTextInVerticalContextSpanBetween

```
fun hasNoHorizontalTextInVerticalContextSpanBetween(start: Int, end: Int): Unit
```

Checks that the subject has no `https://developer.android.com/reference/kotlin/androidx/media3/common/text/HorizontalTextInVerticalContextSpan`s on any of the text between `start` and `end`.

This fails even if the start and end indexes don't exactly match.

| Parameters |
|---|---|
| `start: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | The start index to start searching for spans. |
| `end: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | The end index to stop searching for spans. |

### hasNoRelativeSizeSpanBetween

```
fun hasNoRelativeSizeSpanBetween(start: Int, end: Int): Unit
```

Checks that the subject has no `https://developer.android.com/reference/android/text/style/RelativeSizeSpan.html`s on any of the text between ` start` and `end`.

This fails even if the start and end indexes don't exactly match.

| Parameters |
|---|---|
| `start: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | The start index to start searching for spans. |
| `end: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | The end index to stop searching for spans. |

### hasNoRubySpanBetween

```
fun hasNoRubySpanBetween(start: Int, end: Int): Unit
```

Checks that the subject has no `https://developer.android.com/reference/kotlin/androidx/media3/common/text/RubySpan`s on any of the text between `start` and `end`.

This fails even if the start and end indexes don't exactly match.

| Parameters |
|---|---|
| `start: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | The start index to start searching for spans. |
| `end: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | The end index to stop searching for spans. |

### hasNoSpans

```
fun hasNoSpans(): Unit
```

### hasNoStrikethroughSpanBetween

```
fun hasNoStrikethroughSpanBetween(start: Int, end: Int): Unit
```

Checks that the subject has no `https://developer.android.com/reference/android/text/style/StrikethroughSpan.html`s on any of the text between ` start` and `end`.

This fails even if the start and end indexes don't exactly match.

| Parameters |
|---|---|
| `start: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | The start index to start searching for spans. |
| `end: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | The end index to stop searching for spans. |

### hasNoStyleSpanBetween

```
fun hasNoStyleSpanBetween(start: Int, end: Int): Unit
```

Checks that the subject has no `https://developer.android.com/reference/android/text/style/StyleSpan.html`s on any of the text between `start` and `end`.

This fails even if the start and end indexes don't exactly match.

| Parameters |
|---|---|
| `start: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | The start index to start searching for spans. |
| `end: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | The end index to stop searching for spans. |

### hasNoTextEmphasisSpanBetween

```
fun hasNoTextEmphasisSpanBetween(start: Int, end: Int): Unit
```

Checks that the subject has no `https://developer.android.com/reference/kotlin/androidx/media3/common/text/TextEmphasisSpan`s on any of the text between ` start` and `end`.

This fails even if the start and end indexes don't exactly match.

| Parameters |
|---|---|
| `start: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | The start index to start searching for spans. |
| `end: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | The end index to stop searching for spans. |

### hasNoTypefaceSpanBetween

```
fun hasNoTypefaceSpanBetween(start: Int, end: Int): Unit
```

Checks that the subject has no `https://developer.android.com/reference/android/text/style/TypefaceSpan.html`s on any of the text between `start` and `end`.

This fails even if the start and end indexes don't exactly match.

| Parameters |
|---|---|
| `start: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | The start index to start searching for spans. |
| `end: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | The end index to stop searching for spans. |

### hasNoUnderlineSpanBetween

```
fun hasNoUnderlineSpanBetween(start: Int, end: Int): Unit
```

Checks that the subject has no `https://developer.android.com/reference/android/text/style/UnderlineSpan.html`s on any of the text between `start` and `end`.

This fails even if the start and end indexes don't exactly match.

| Parameters |
|---|---|
| `start: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | The start index to start searching for spans. |
| `end: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | The end index to stop searching for spans. |

### hasNoVoiceSpanBetween

```
fun hasNoVoiceSpanBetween(start: Int, end: Int): Unit
```

Checks that the subject has no `https://developer.android.com/reference/kotlin/androidx/media3/common/text/VoiceSpan`s on any of the text between `start` and `end`.

This fails even if the start and end indexes don't exactly match.

| Parameters |
|---|---|
| `start: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | The start index to start searching for spans. |
| `end: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | The end index to stop searching for spans. |

### hasRelativeSizeSpanBetween

```
fun hasRelativeSizeSpanBetween(start: Int, end: Int): SpannedSubject.RelativeSized!
```

Checks that the subject has a `https://developer.android.com/reference/android/text/style/RelativeSizeSpan.html` from `start` to `end`.

The size is asserted in a follow-up method call on the return `https://developer.android.com/reference/kotlin/androidx/media3/test/utils/truth/SpannedSubject.RelativeSized` object.

| Parameters |
|---|---|
| `start: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | The start of the expected span. |
| `end: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | The end of the expected span. |

| Returns |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/media3/test/utils/truth/SpannedSubject.RelativeSized!` | A `https://developer.android.com/reference/kotlin/androidx/media3/test/utils/truth/SpannedSubject.RelativeSized` object to assert on the size of the matching spans. |

### hasRubySpanBetween

```
fun hasRubySpanBetween(start: Int, end: Int): SpannedSubject.RubyText!
```

Checks that the subject has a `https://developer.android.com/reference/kotlin/androidx/media3/common/text/RubySpan` from `start` to `end`.

The ruby-text is asserted in a follow-up method call on the return `https://developer.android.com/reference/kotlin/androidx/media3/test/utils/truth/SpannedSubject.RubyText` object.

| Parameters |
|---|---|
| `start: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | The start of the expected span. |
| `end: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | The end of the expected span. |

| Returns |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/media3/test/utils/truth/SpannedSubject.RubyText!` | A `https://developer.android.com/reference/kotlin/androidx/media3/test/utils/truth/SpannedSubject.Colored` object to assert on the color of the matching spans. |

### hasStrikethroughSpanBetween

```
fun hasStrikethroughSpanBetween(start: Int, end: Int): SpannedSubject.WithSpanFlags!
```

Checks that the subject has an `https://developer.android.com/reference/android/text/style/StrikethroughSpan.html` from `start` to `end`.

| Parameters |
|---|---|
| `start: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | The start of the expected span. |
| `end: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | The end of the expected span. |

| Returns |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/media3/test/utils/truth/SpannedSubject.WithSpanFlags!` | A `https://developer.android.com/reference/kotlin/androidx/media3/test/utils/truth/SpannedSubject.WithSpanFlags` object for optional additional assertions on the flags. |

### hasTextEmphasisSpanBetween

```
fun hasTextEmphasisSpanBetween(start: Int, end: Int): SpannedSubject.EmphasizedText!
```

Checks that the subject has an `https://developer.android.com/reference/kotlin/androidx/media3/common/text/TextEmphasisSpan` from `start` to `end`.

| Parameters |
|---|---|
| `start: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | The start of the expected span. |
| `end: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | The end of the expected span. |

| Returns |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/media3/test/utils/truth/SpannedSubject.EmphasizedText!` | A `https://developer.android.com/reference/kotlin/androidx/media3/test/utils/truth/SpannedSubject.EmphasizedText` object for optional additional assertions on the flags. |

### hasTypefaceSpanBetween

```
fun hasTypefaceSpanBetween(start: Int, end: Int): SpannedSubject.Typefaced!
```

Checks that the subject has a `https://developer.android.com/reference/android/text/style/TypefaceSpan.html` from `start` to `end`.

The font is asserted in a follow-up method call on the return `https://developer.android.com/reference/kotlin/androidx/media3/test/utils/truth/SpannedSubject.Typefaced` object.

| Parameters |
|---|---|
| `start: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | The start of the expected span. |
| `end: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | The end of the expected span. |

| Returns |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/media3/test/utils/truth/SpannedSubject.Typefaced!` | A `https://developer.android.com/reference/kotlin/androidx/media3/test/utils/truth/SpannedSubject.Typefaced` object to assert on the font of the matching spans. |

### hasUnderlineSpanBetween

```
fun hasUnderlineSpanBetween(start: Int, end: Int): SpannedSubject.WithSpanFlags!
```

Checks that the subject has an `https://developer.android.com/reference/android/text/style/UnderlineSpan.html` from `start` to `end`.

| Parameters |
|---|---|
| `start: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | The start of the expected span. |
| `end: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | The end of the expected span. |

| Returns |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/media3/test/utils/truth/SpannedSubject.WithSpanFlags!` | A `https://developer.android.com/reference/kotlin/androidx/media3/test/utils/truth/SpannedSubject.WithSpanFlags` object for optional additional assertions on the flags. |

### hasVoiceSpanBetween

```
fun hasVoiceSpanBetween(start: Int, end: Int): SpannedSubject.VoiceText!
```

Checks that the subject has an `https://developer.android.com/reference/kotlin/androidx/media3/common/text/VoiceSpan` from `start` to `end`.

| Parameters |
|---|---|
| `start: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | The start of the expected span. |
| `end: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | The end of the expected span. |

| Returns |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/media3/test/utils/truth/SpannedSubject.VoiceText!` | A `https://developer.android.com/reference/kotlin/androidx/media3/common/text/VoiceSpan` object for optional additional assertions on the flags. |

### spanned

```
java-static fun spanned(): Subject.Factory<SpannedSubject!, Spanned!>!
```