Action.WaitForIsLoading


class Action.WaitForIsLoading : Action


Waits for a specified loading state, returning either immediately or after a call to onIsLoadingChanged.

Summary

Public constructors

WaitForIsLoading(tag: @Size(max = 23) String!, targetIsLoading: Boolean)

Protected functions

Unit
doActionImpl(
    player: ExoPlayer!,
    trackSelector: DefaultTrackSelector!,
    surface: Surface?
)

Called by doActionAndScheduleNextImpl to perform the action.

Public constructors

WaitForIsLoading

WaitForIsLoading(tag: @Size(max = 23) String!, targetIsLoading: Boolean)
Parameters
tag: @Size(max = 23) String!

A tag to use for logging.

targetIsLoading: Boolean

The loading state to wait for.

Protected functions

doActionImpl

protected fun doActionImpl(
    player: ExoPlayer!,
    trackSelector: DefaultTrackSelector!,
    surface: Surface?
): Unit

Called by doActionAndScheduleNextImpl to perform the action.

Parameters
player: ExoPlayer!

The player to which the action should be applied.

trackSelector: DefaultTrackSelector!

The track selector to which the action should be applied.

surface: Surface?

The surface to use when applying actions, or null if no surface is needed.