@UnstableApi
class Metadata : Parcelable


A collection of metadata entries.

Summary

Nested types

A metadata entry.

Constants

const Parcelable.Creator<Metadata!>!

Public constructors

Metadata(presentationTimeUs: Long, entries: Array<Metadata.Entry!>!)
Metadata(
    presentationTimeUs: Long,
    entries: (Mutable)List<Metadata.Entry!>!
)

Public functions

Metadata!

Returns a copy of this metadata with the specified entries appended.

Metadata!

Returns a copy of this metadata with the entries of the specified metadata appended.

Metadata!
copyWithPresentationTimeUs(presentationTimeUs: Long)

Returns a copy of this metadata with the specified presentation time.

Int
Boolean
equals(obj: Any?)
Metadata.Entry!
get(index: Int)

Returns the entry at the specified index.

Int
Int

Returns the number of metadata entries.

String!
Unit
writeToParcel(dest: Parcel!, flags: Int)

Public properties

Long

The presentation time of the metadata, in microseconds.

Constants

CREATOR

const val CREATORParcelable.Creator<Metadata!>!

Public constructors

Metadata

Metadata(entries: Array<Metadata.Entry!>!)
Parameters
entries: Array<Metadata.Entry!>!

The metadata entries.

Metadata

Metadata(entries: (Mutable)List<Metadata.Entry!>!)
Parameters
entries: (Mutable)List<Metadata.Entry!>!

The metadata entries.

Metadata

Metadata(presentationTimeUs: Long, entries: Array<Metadata.Entry!>!)
Parameters
presentationTimeUs: Long

The presentation time for the metadata entries.

entries: Array<Metadata.Entry!>!

The metadata entries.

Metadata

Metadata(
    presentationTimeUs: Long,
    entries: (Mutable)List<Metadata.Entry!>!
)
Parameters
presentationTimeUs: Long

The presentation time for the metadata entries.

entries: (Mutable)List<Metadata.Entry!>!

The metadata entries.

Public functions

copyWithAppendedEntries

fun copyWithAppendedEntries(entriesToAppend: Array<Metadata.Entry!>!): Metadata!

Returns a copy of this metadata with the specified entries appended.

Parameters
entriesToAppend: Array<Metadata.Entry!>!

The entries to append.

Returns
Metadata!

The metadata instance with the appended entries.

copyWithAppendedEntriesFrom

fun copyWithAppendedEntriesFrom(other: Metadata?): Metadata!

Returns a copy of this metadata with the entries of the specified metadata appended. Returns this instance if other is null.

Parameters
other: Metadata?

The metadata that holds the entries to append. If null, this methods returns this instance.

Returns
Metadata!

The metadata instance with the appended entries.

copyWithPresentationTimeUs

fun copyWithPresentationTimeUs(presentationTimeUs: Long): Metadata!

Returns a copy of this metadata with the specified presentation time.

Parameters
presentationTimeUs: Long

The new presentation time, in microseconds.

Returns
Metadata!

The metadata instance with the new presentation time.

describeContents

fun describeContents(): Int

equals

fun equals(obj: Any?): Boolean

get

fun get(index: Int): Metadata.Entry!

Returns the entry at the specified index.

Parameters
index: Int

The index of the entry.

Returns
Metadata.Entry!

The entry at the specified index.

hashCode

fun hashCode(): Int

length

fun length(): Int

Returns the number of metadata entries.

toString

fun toString(): String!

writeToParcel

fun writeToParcel(dest: Parcel!, flags: Int): Unit

Public properties

presentationTimeUs

val presentationTimeUsLong

The presentation time of the metadata, in microseconds.

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

This time is TIME_UNSET when not known or undefined.