class CueGroup : Bundleable


Class to represent the state of active Cues at a particular time.

Summary

Constants

const Bundleable.Creator<CueGroup!>!

This property is deprecated.

Use fromBundle instead.

const CueGroup!

An empty group with no Cues and presentation time of zero.

Public constructors

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

Creates a CueGroup.

Public functions

java-static CueGroup!

Restores a final CueGroup from a Bundle.

Bundle!

Returns a Bundle representing the information stored in this object.

Public properties

ImmutableList<Cue!>!

The cues in this group.

Long

The presentation time of the cues, in microseconds.

Constants

CREATOR

@UnstableApi
const val CREATORBundleable.Creator<CueGroup!>!

EMPTY_TIME_ZERO

@UnstableApi
const val EMPTY_TIME_ZEROCueGroup!

An empty group with no Cues 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 Bundle.

toBundle

@UnstableApi
fun toBundle(): Bundle!

Returns a Bundle representing the information stored in this object.

Public properties

cues

val cuesImmutableList<Cue!>!

The cues in this group.

This list is in ascending order of priority. If any of the cue boxes overlap when displayed, the 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 presentationTimeUsLong

The presentation time of the cues, in microseconds.

This time is an offset from the start of the current Timeline.Period.