ChapterTocFrame


@UnstableApi
public final class ChapterTocFrame extends Id3Frame


Chapter table of contents ID3 frame.

Summary

Constants

static final Parcelable.Creator<ChapterTocFrame>
static final String
ID = "CTOC"

Public fields

final String[]
final String
final boolean
final boolean

Public constructors

ChapterTocFrame(
    String elementId,
    boolean isRoot,
    boolean isOrdered,
    String[] children,
    Id3Frame[] subFrames
)

Public methods

boolean
Id3Frame
getSubFrame(int index)

Returns the sub-frame at index.

int

Returns the number of sub-frames.

int
void
writeToParcel(Parcel dest, int flags)

Inherited Constants

From android.os.Parcelable
static final int
static final int

Inherited fields

From androidx.media3.extractor.metadata.id3.Id3Frame
final String

The frame ID.

Inherited methods

From androidx.media3.extractor.metadata.id3.Id3Frame
From androidx.media3.common.Metadata.Entry
@Nullable byte[]

Returns the bytes of the wrapped metadata in this Entry, or null if it doesn't contain wrapped metadata.

@Nullable Format

Returns the Format that can be used to decode the wrapped metadata in getWrappedMetadataBytes, or null if this Entry doesn't contain wrapped metadata.

void

Updates the MediaMetadata.Builder with the type-specific values stored in this Entry.

From android.os.Parcelable
abstract int

Constants

CREATOR

public static final Parcelable.Creator<ChapterTocFrameCREATOR

ID

public static final String ID = "CTOC"

Public fields

children

public final String[] children

elementId

public final String elementId

isOrdered

public final boolean isOrdered

isRoot

public final boolean isRoot

Public constructors

ChapterTocFrame

public ChapterTocFrame(
    String elementId,
    boolean isRoot,
    boolean isOrdered,
    String[] children,
    Id3Frame[] subFrames
)

Public methods

equals

public boolean equals(@Nullable Object obj)

getSubFrame

public Id3Frame getSubFrame(int index)

Returns the sub-frame at index.

getSubFrameCount

public int getSubFrameCount()

Returns the number of sub-frames.

hashCode

public int hashCode()

writeToParcel

public void writeToParcel(Parcel dest, int flags)