# CueGroup

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

*** ** * ** ***

<br />

```
class CueGroup
```

<br />

*** ** * ** ***

Class to represent the state of active `https://developer.android.com/reference/kotlin/androidx/media3/common/text/Cue` at a particular time.

## Summary

| ### Constants |
|---|---|
| `const https://developer.android.com/reference/kotlin/androidx/media3/common/text/CueGroup!` | `@https://developer.android.com/reference/kotlin/androidx/media3/common/util/UnstableApi https://developer.android.com/reference/kotlin/androidx/media3/common/text/CueGroup#EMPTY_TIME_ZERO()` An empty group with no `https://developer.android.com/reference/kotlin/androidx/media3/common/text/Cue` and presentation time of zero. |

| ### Public constructors |
|---|
| `@https://developer.android.com/reference/kotlin/androidx/media3/common/util/UnstableApi https://developer.android.com/reference/kotlin/androidx/media3/common/text/CueGroup#CueGroup(java.util.List<androidx.media3.common.text.Cue>,long)(cues: (https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-mutable-list/index.html)https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html<https://developer.android.com/reference/kotlin/androidx/media3/common/text/Cue!>!, presentationTimeUs: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html)` Creates a CueGroup. |

| ### Public functions |
|---|---|
| `java-static https://developer.android.com/reference/kotlin/androidx/media3/common/text/CueGroup!` | `@https://developer.android.com/reference/kotlin/androidx/media3/common/util/UnstableApi https://developer.android.com/reference/kotlin/androidx/media3/common/text/CueGroup#fromBundle(android.os.Bundle)(bundle: https://developer.android.com/reference/android/os/Bundle.html!)` Restores a `final CueGroup` from a `https://developer.android.com/reference/android/os/Bundle.html`. |
| `https://developer.android.com/reference/android/os/Bundle.html!` | `@https://developer.android.com/reference/kotlin/androidx/media3/common/util/UnstableApi https://developer.android.com/reference/kotlin/androidx/media3/common/text/CueGroup#toBundle()()` |

| ### Public properties |
|---|---|
| `https://guava.dev/releases/snapshot-android/api/docs/com/google/common/collect/ImmutableList.html<https://developer.android.com/reference/kotlin/androidx/media3/common/text/Cue!>!` | `https://developer.android.com/reference/kotlin/androidx/media3/common/text/CueGroup#cues()` The cues in this group. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html` | `@https://developer.android.com/reference/kotlin/androidx/media3/common/util/UnstableApi https://developer.android.com/reference/kotlin/androidx/media3/common/text/CueGroup#presentationTimeUs()` The presentation time of the `https://developer.android.com/reference/kotlin/androidx/media3/common/text/CueGroup#cues()`, in microseconds. |

## Constants

### EMPTY_TIME_ZERO

```
@UnstableApi
const val EMPTY_TIME_ZERO: CueGroup!
```

An empty group with no `https://developer.android.com/reference/kotlin/androidx/media3/common/text/Cue` and presentation time of zero.

## Public constructors

### CueGroup

```
@UnstableApi
CueGroup(cues: (Mutable)List<Cue!>!, presentationTimeUs: Long)
```

Creates a CueGroup.

## Public functions

### fromBundle

```
@UnstableApi
java-static fun fromBundle(bundle: Bundle!): CueGroup!
```

Restores a `final CueGroup` from a `https://developer.android.com/reference/android/os/Bundle.html`.

### toBundle

```
@UnstableApi
fun toBundle(): Bundle!
```

## Public properties

### cues

```
val cues: ImmutableList<Cue!>!
```

The cues in this group.

This list is in ascending order of priority. If any of the cue boxes overlap when displayed, the `https://developer.android.com/reference/kotlin/androidx/media3/common/text/Cue` nearer the end of the list should be shown on top.

This list may be empty if the group represents a state with no cues.

### presentationTimeUs

```
@UnstableApi
val presentationTimeUs: Long
```

The presentation time of the `https://developer.android.com/reference/kotlin/androidx/media3/common/text/CueGroup#cues()`, in microseconds.

This time is an offset from the start of the current `https://developer.android.com/reference/kotlin/androidx/media3/common/Timeline.Period`.