Parcelablepublic final class TrackGroup extends Object implements Parcelable
Parcelable.ClassLoaderCreator<T extends Object>, Parcelable.Creator<T extends Object>| Modifier and Type | Field | Description |
|---|---|---|
static Parcelable.Creator<TrackGroup> |
CREATOR |
|
int |
length |
The number of tracks in the group.
|
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE| Constructor | Description |
|---|---|
TrackGroup(Format... formats) |
| Modifier and Type | Method | Description |
|---|---|---|
int |
describeContents() |
|
boolean |
equals(Object obj) |
|
Format |
getFormat(int index) |
Returns the format of the track at a given index.
|
int |
hashCode() |
|
int |
indexOf(Format format) |
Returns the index of the track with the given format in the group.
|
void |
writeToParcel(Parcel dest,
int flags) |
public final int length
public static final Parcelable.Creator<TrackGroup> CREATOR
public Format getFormat(int index)
index - The index of the track.public int indexOf(Format format)
group.indexOf(group.getFormat(index)) == index even if
multiple tracks have formats that contain the same values.format - The format.C.INDEX_UNSET if no such track exists.public int describeContents()
describeContents in interface Parcelablepublic void writeToParcel(Parcel dest, int flags)
writeToParcel in interface Parcelable