SimpleBasePlayer.PeriodData.Builder


class SimpleBasePlayer.PeriodData.Builder


A builder for PeriodData objects.

Summary

Public constructors

Builder(uid: Any!)

Creates the builder.

Public functions

SimpleBasePlayer.PeriodData!

Builds the PeriodData.

SimpleBasePlayer.PeriodData.Builder!

Sets the AdPlaybackState.

SimpleBasePlayer.PeriodData.Builder!

Sets the total duration of the period, in microseconds, or TIME_UNSET if unknown.

SimpleBasePlayer.PeriodData.Builder!

Sets whether this period contains placeholder information because the real information has yet to be loaded

SimpleBasePlayer.PeriodData.Builder!

Sets the unique identifier of the period within its media item.

Public constructors

Builder

Builder(uid: Any!)

Creates the builder.

Parameters
uid: Any!

The unique identifier of the period within its media item.

Public functions

build

fun build(): SimpleBasePlayer.PeriodData!

Builds the PeriodData.

setAdPlaybackState

@CanIgnoreReturnValue
fun setAdPlaybackState(adPlaybackState: AdPlaybackState!): SimpleBasePlayer.PeriodData.Builder!

Sets the AdPlaybackState.

Parameters
adPlaybackState: AdPlaybackState!

The AdPlaybackState, or NONE if there are no ads.

Returns
SimpleBasePlayer.PeriodData.Builder!

This builder.

setDurationUs

@CanIgnoreReturnValue
fun setDurationUs(durationUs: Long): SimpleBasePlayer.PeriodData.Builder!

Sets the total duration of the period, in microseconds, or TIME_UNSET if unknown.

Only the last period in a media item can have an unknown duration.

Parameters
durationUs: Long

The total duration of the period, in microseconds, or TIME_UNSET if unknown.

Returns
SimpleBasePlayer.PeriodData.Builder!

This builder.

setIsPlaceholder

@CanIgnoreReturnValue
fun setIsPlaceholder(isPlaceholder: Boolean): SimpleBasePlayer.PeriodData.Builder!

Sets whether this period contains placeholder information because the real information has yet to be loaded

Parameters
isPlaceholder: Boolean

Whether this period contains placeholder information because the real information has yet to be loaded.

Returns
SimpleBasePlayer.PeriodData.Builder!

This builder.

setUid

@CanIgnoreReturnValue
fun setUid(uid: Any!): SimpleBasePlayer.PeriodData.Builder!

Sets the unique identifier of the period within its media item.

Parameters
uid: Any!

The unique identifier of the period within its media item.

Returns
SimpleBasePlayer.PeriodData.Builder!

This builder.