# SubtitleParser.OutputOptions

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

*** ** * ** ***


```
class SubtitleParser.OutputOptions
```

<br />

*** ** * ** ***

Options to control the output behavior of `https://developer.android.com/reference/kotlin/androidx/media3/extractor/text/SubtitleParser` methods that emit their output incrementally using a `https://developer.android.com/reference/java/util/function/Consumer.html` provided by the caller.

## Summary

| ### Public functions |
|---|---|
| `java-static https://developer.android.com/reference/kotlin/androidx/media3/extractor/text/SubtitleParser.OutputOptions!` | `https://developer.android.com/reference/kotlin/androidx/media3/extractor/text/SubtitleParser.OutputOptions#allCues()()` Output all `https://developer.android.com/reference/kotlin/androidx/media3/extractor/text/CuesWithTiming` instances. |
| `java-static https://developer.android.com/reference/kotlin/androidx/media3/extractor/text/SubtitleParser.OutputOptions!` | `https://developer.android.com/reference/kotlin/androidx/media3/extractor/text/SubtitleParser.OutputOptions#cuesAfterThenRemainingCuesBefore(long)(startTimeUs: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html)` Output `https://developer.android.com/reference/kotlin/androidx/media3/extractor/text/CuesWithTiming` where `https://developer.android.com/reference/kotlin/androidx/media3/extractor/text/CuesWithTiming#startTimeUs()` is at least ` startTimeUs`, followed by the remaining `https://developer.android.com/reference/kotlin/androidx/media3/extractor/text/CuesWithTiming` instances. |
| `java-static https://developer.android.com/reference/kotlin/androidx/media3/extractor/text/SubtitleParser.OutputOptions!` | `https://developer.android.com/reference/kotlin/androidx/media3/extractor/text/SubtitleParser.OutputOptions#onlyCuesAfter(long)(startTimeUs: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html)` Only output `https://developer.android.com/reference/kotlin/androidx/media3/extractor/text/CuesWithTiming` instances where `https://developer.android.com/reference/kotlin/androidx/media3/extractor/text/CuesWithTiming#startTimeUs()` is at least `startTimeUs`. |

| ### Public properties |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/kotlin/androidx/media3/extractor/text/SubtitleParser.OutputOptions#outputAllCues()` Whether to eventually emit all cues, or only those after `https://developer.android.com/reference/kotlin/androidx/media3/extractor/text/SubtitleParser.OutputOptions#startTimeUs()`. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html` | `https://developer.android.com/reference/kotlin/androidx/media3/extractor/text/SubtitleParser.OutputOptions#startTimeUs()` Cues after this time (inclusive) will be emitted first. |

## Public functions

### allCues

```
java-static fun allCues(): SubtitleParser.OutputOptions!
```

Output all `https://developer.android.com/reference/kotlin/androidx/media3/extractor/text/CuesWithTiming` instances.

### cuesAfterThenRemainingCuesBefore

```
java-static fun cuesAfterThenRemainingCuesBefore(startTimeUs: Long): SubtitleParser.OutputOptions!
```

Output `https://developer.android.com/reference/kotlin/androidx/media3/extractor/text/CuesWithTiming` where `https://developer.android.com/reference/kotlin/androidx/media3/extractor/text/CuesWithTiming#startTimeUs()` is at least `
startTimeUs`, followed by the remaining `https://developer.android.com/reference/kotlin/androidx/media3/extractor/text/CuesWithTiming` instances.

Beyond this, the order in which `https://developer.android.com/reference/kotlin/androidx/media3/extractor/text/CuesWithTiming` instances are emitted is not defined.

### onlyCuesAfter

```
java-static fun onlyCuesAfter(startTimeUs: Long): SubtitleParser.OutputOptions!
```

Only output `https://developer.android.com/reference/kotlin/androidx/media3/extractor/text/CuesWithTiming` instances where `https://developer.android.com/reference/kotlin/androidx/media3/extractor/text/CuesWithTiming#startTimeUs()` is at least `startTimeUs`.

The order in which `https://developer.android.com/reference/kotlin/androidx/media3/extractor/text/CuesWithTiming` instances are emitted is not defined.

## Public properties

### outputAllCues

```
val outputAllCues: Boolean
```

Whether to eventually emit all cues, or only those after `https://developer.android.com/reference/kotlin/androidx/media3/extractor/text/SubtitleParser.OutputOptions#startTimeUs()`. Ignored if `https://developer.android.com/reference/kotlin/androidx/media3/extractor/text/SubtitleParser.OutputOptions#startTimeUs()` is not set.

### startTimeUs

```
val startTimeUs: Long
```

Cues after this time (inclusive) will be emitted first. Cues before this time might be emitted later, depending on `https://developer.android.com/reference/kotlin/androidx/media3/extractor/text/SubtitleParser.OutputOptions#outputAllCues()`. Can be `https://developer.android.com/reference/kotlin/androidx/media3/common/C#TIME_UNSET()` to emit all cues.