Action.WaitForIsLoading


public final class Action.WaitForIsLoading extends Action

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

Summary

Public constructors

WaitForIsLoading(@Size(max = 23) String tag, boolean targetIsLoading)

Protected methods

void
doActionImpl(
 ExoPlayer player,
 DefaultTrackSelector trackSelector,
 @Nullable Surface surface
)

Called by doActionAndScheduleNextImpl to perform the action.

Public constructors

WaitForIsLoading

public WaitForIsLoading(@Size(max = 23) String tag, boolean targetIsLoading)
Parameters
@Size(max = 23) String tag

A tag to use for logging.

boolean targetIsLoading

The loading state to wait for.

Protected methods

doActionImpl

protected void doActionImpl(
 ExoPlayer player,
 DefaultTrackSelector trackSelector,
 @Nullable Surface surface
)

Called by doActionAndScheduleNextImpl to perform the action.