# SpannedSubject.AbsoluteSized

# SpannedSubject.AbsoluteSized

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

*** ** * ** ***

Kotlin\|[Java](https://developer.android.com/reference/androidx/media3/test/utils/truth/SpannedSubject.AbsoluteSized "View this page in Java")

<br />

```
interface SpannedSubject.AbsoluteSized
```

<br />

*** ** * ** ***

Allows assertions about the absolute size of a span.

## Summary

|                                                             ### Public functions                                                              |
|-----------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [SpannedSubject.AndSpanFlags](https://developer.android.com/reference/kotlin/androidx/media3/test/utils/truth/SpannedSubject.AndSpanFlags)`!` | [withAbsoluteSize](https://developer.android.com/reference/kotlin/androidx/media3/test/utils/truth/SpannedSubject.AbsoluteSized#withAbsoluteSize(int))`(size: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`)` Checks that at least one of the matched spans has the expected`size`. |

## Public functions

### withAbsoluteSize

```
fun withAbsoluteSize(size: Int): SpannedSubject.AndSpanFlags!
```

Checks that at least one of the matched spans has the expected`size`.  

|                                     Parameters                                      |
|-------------------------------------------------------------------------------------|--------------------|
| `size: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | The expected size. |

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