public final class CueGroup implements Bundleable


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

Summary

Constants

static final Bundleable.Creator<CueGroup>

This field is deprecated.

Use fromBundle instead.

static final CueGroup

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

Public fields

final ImmutableList<Cue>

The cues in this group.

final long

The presentation time of the cues, in microseconds.

Public constructors

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

Creates a CueGroup.

Public methods

static CueGroup

Restores a final CueGroup from a Bundle.

Bundle

Returns a Bundle representing the information stored in this object.

Constants

CREATOR

@UnstableApi
public static final Bundleable.Creator<CueGroupCREATOR

EMPTY_TIME_ZERO

@UnstableApi
public static final CueGroup EMPTY_TIME_ZERO

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

Public fields

cues

public final ImmutableList<Cuecues

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

The presentation time of the cues, in microseconds.

This time is an offset from the start of the current 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 Bundle.

toBundle

@UnstableApi
public Bundle toBundle()

Returns a Bundle representing the information stored in this object.