# 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 />

```
public final class CueGroup
```

<br />

*** ** * ** ***

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

## Summary

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

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

| ### Public constructors |
|---|
| `@https://developer.android.com/reference/androidx/media3/common/util/UnstableApi https://developer.android.com/reference/androidx/media3/common/text/CueGroup#CueGroup(java.util.List<androidx.media3.common.text.Cue>,long)(https://developer.android.com/reference/java/util/List.html<https://developer.android.com/reference/androidx/media3/common/text/Cue> cues, long presentationTimeUs)` Creates a CueGroup. |

| ### Public methods |
|---|---|
| `static https://developer.android.com/reference/androidx/media3/common/text/CueGroup` | `@https://developer.android.com/reference/androidx/media3/common/util/UnstableApi https://developer.android.com/reference/androidx/media3/common/text/CueGroup#fromBundle(android.os.Bundle)(https://developer.android.com/reference/android/os/Bundle.html bundle)` 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/androidx/media3/common/util/UnstableApi https://developer.android.com/reference/androidx/media3/common/text/CueGroup#toBundle()()` |

## Constants

### EMPTY_TIME_ZERO

```
@UnstableApi
public static final CueGroup EMPTY_TIME_ZERO
```

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

## Public fields

### cues

```
public final ImmutableList<Cue> cues
```

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/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
public final long presentationTimeUs
```

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

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

## Public constructors

### CueGroup

```
@UnstableApi
public CueGroup(List<Cue> cues, long presentationTimeUs)
```

Creates a CueGroup.

## Public methods

### fromBundle

```
@UnstableApi
public static CueGroup fromBundle(Bundle bundle)
```

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

### toBundle

```
@UnstableApi
public Bundle toBundle()
```