Action.WaitForTimelineChanged
public final class Action.WaitForTimelineChanged extends Action
| java.lang.Object | ||
| ↳ | androidx.media3.test.utils.Action | |
| ↳ | androidx.media3.test.utils.Action.WaitForTimelineChanged |
Waits for onTimelineChanged.
Summary
Public constructors |
|---|
|
Creates action waiting for any timeline change for any reason. |
WaitForTimelineChanged(Creates action waiting for a timeline change for a given reason. |
Protected methods |
|
|---|---|
void |
doActionImpl(Called by |
Public constructors
WaitForTimelineChanged
public WaitForTimelineChanged(String tag)
Creates action waiting for any timeline change for any reason.
| Parameters | |
|---|---|
String tag |
A tag to use for logging. |
WaitForTimelineChanged
public WaitForTimelineChanged(
String tag,
@Nullable Timeline expectedTimeline,
@Player.TimelineChangeReason int expectedReason
)
Creates action waiting for a timeline change for a given reason.
| Parameters | |
|---|---|
String tag |
A tag to use for logging. |
@Nullable Timeline expectedTimeline |
The expected timeline or |
@Player.TimelineChangeReason int expectedReason |
The expected timeline change reason. |
Protected methods
doActionImpl
protected void doActionImpl(
ExoPlayer player,
DefaultTrackSelector trackSelector,
@Nullable Surface surface
)
Called by doActionAndScheduleNextImpl to perform the action.
| Parameters | |
|---|---|
ExoPlayer player |
The player to which the action should be applied. |
DefaultTrackSelector trackSelector |
The track selector to which the action should be applied. |
@Nullable Surface surface |
The surface to use when applying actions, or |