LoadingInfo.Builder


class LoadingInfo.Builder


A builder for LoadingInfo instances.

Summary

Public constructors

Creates a new instance with default values.

Public constructors

Builder

Builder()

Creates a new instance with default values.

Public functions

build

fun build(): LoadingInfo!

Returns a new LoadingInfo instance with the current builder values.

setLastRebufferRealtimeMs

@CanIgnoreReturnValue
fun setLastRebufferRealtimeMs(lastRebufferRealtimeMs: Long): LoadingInfo.Builder!

Sets lastRebufferRealtimeMs. The default is TIME_UNSET

Throws
java.lang.IllegalArgumentException

If lastRebufferRealtimeMs is not equal to TIME_UNSET and is negative.

setPlaybackPositionUs

@CanIgnoreReturnValue
fun setPlaybackPositionUs(playbackPositionUs: Long): LoadingInfo.Builder!

Sets playbackPositionUs. The default is TIME_UNSET

setPlaybackSpeed

@CanIgnoreReturnValue
fun setPlaybackSpeed(playbackSpeed: Float): LoadingInfo.Builder!

Sets playbackSpeed. The default is RATE_UNSET

Throws
java.lang.IllegalArgumentException

If playbackSpeed is not equal to RATE_UNSET and is non-positive.