# TextOutput

# TextOutput

Artifact:[androidx.media3:media3-exoplayer](https://developer.android.com/jetpack/androidx/releases/media3)  
[View Source](https://cs.android.com/search?q=file:androidx/media3/exoplayer/text/TextOutput.java+class:androidx.media3.exoplayer.text.TextOutput)

*** ** * ** ***

Kotlin\|[Java](https://developer.android.com/reference/androidx/media3/exoplayer/text/TextOutput "View this page in Java")

<br />

```
@UnstableApi
interface TextOutput
```

<br />

*** ** * ** ***

Receives text output.

## Summary

|                             ### Public functions                              |
|-------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [Unit](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html) | [onCues](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/text/TextOutput#onCues(androidx.media3.common.text.CueGroup))`(cueGroup: `[CueGroup](https://developer.android.com/reference/kotlin/androidx/media3/common/text/CueGroup)`!)` Called when there is a change in the[CueGroup](https://developer.android.com/reference/kotlin/androidx/media3/common/text/CueGroup).                                                                                                                                                                                                                                                                      |
| [Unit](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html) | ~~[onCues](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/text/TextOutput#onCues(java.util.List<androidx.media3.common.text.Cue>))~~`(cues: (`[Mutable](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-mutable-list/index.html)`)`[List](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html)`<`[Cue](https://developer.android.com/reference/kotlin/androidx/media3/common/text/Cue)`!>!)` **This function is deprecated.** Use[onCues](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/text/TextOutput#onCues(androidx.media3.common.text.CueGroup))instead. <br /> |

## Public functions

### onCues

```
fun onCues(cueGroup: CueGroup!): Unit
```

Called when there is a change in the[CueGroup](https://developer.android.com/reference/kotlin/androidx/media3/common/text/CueGroup).

Both[onCues](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/text/TextOutput#onCues(java.util.List<androidx.media3.common.text.Cue>))and[onCues](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/text/TextOutput#onCues(androidx.media3.common.text.CueGroup))are called when there is a change in the cues. You should only implement one or the other.  

### onCues

```
fun [onCues](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/text/TextOutput#onCues(java.util.List<androidx.media3.common.text.Cue>))(cues: (Mutable)List<Cue!>!): Unit
```
| **This function is deprecated.**   
|
| Use[onCues](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/text/TextOutput#onCues(androidx.media3.common.text.CueGroup))instead.

Called when there is a change in the[Cues](https://developer.android.com/reference/kotlin/androidx/media3/common/text/Cue).

Both[onCues](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/text/TextOutput#onCues(java.util.List<androidx.media3.common.text.Cue>))and[onCues](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/text/TextOutput#onCues(androidx.media3.common.text.CueGroup))are called when there is a change in the cues. You should only implement one or the other.