# SpannedSubject.RelativeSized

# SpannedSubject.RelativeSized

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

*** ** * ** ***

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

<br />

```
interface SpannedSubject.RelativeSized
```

<br />

*** ** * ** ***

Allows assertions about the relative size of a span.

## Summary

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

## Public functions

### withSizeChange

```
fun withSizeChange(sizeChange: Float): SpannedSubject.AndSpanFlags!
```

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

|                                          Parameters                                           |
|-----------------------------------------------------------------------------------------------|---------------------------|
| `sizeChange: `[Float](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html) | The expected size change. |

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