# SpannedSubject.EmphasizedText

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

*** ** * ** ***


```
public interface SpannedSubject.EmphasizedText
```

<br />

*** ** * ** ***

Allows assertions about a span's text emphasis mark and its position.

## Summary

| ### Public methods |
|---|---|
| `abstract https://developer.android.com/reference/androidx/media3/test/utils/truth/SpannedSubject.AndSpanFlags` | `https://developer.android.com/reference/androidx/media3/test/utils/truth/SpannedSubject.EmphasizedText#withMarkAndPosition(int,int,int)( @https://developer.android.com/reference/androidx/media3/common/text/TextEmphasisSpan.MarkShape int markShape, @https://developer.android.com/reference/androidx/media3/common/text/TextEmphasisSpan.MarkFill int markFill, @https://developer.android.com/reference/androidx/media3/common/text/TextAnnotation.Position int position )` Checks that at least one of the matched spans has the expected `mark` and ` position`. |

## Public methods

### withMarkAndPosition

```
abstract SpannedSubject.AndSpanFlags withMarkAndPosition(
    @TextEmphasisSpan.MarkShape int markShape,
    @TextEmphasisSpan.MarkFill int markFill,
    @TextAnnotation.Position int position
)
```

Checks that at least one of the matched spans has the expected `mark` and `
position`.

| Parameters |
|---|---|
| `@https://developer.android.com/reference/androidx/media3/common/text/TextEmphasisSpan.MarkShape int markShape` | The expected mark shape. |
| `@https://developer.android.com/reference/androidx/media3/common/text/TextEmphasisSpan.MarkFill int markFill` | The expected mark fill style. |
| `@https://developer.android.com/reference/androidx/media3/common/text/TextAnnotation.Position int position` | The expected position of the mark. |

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