public class

Action.RemoveMediaItems

extends Action

 java.lang.Object

androidx.media3.test.utils.Action

↳androidx.media3.test.utils.Action.RemoveMediaItems

Overview

Calls Player.removeMediaItems(int, int).

Summary

Constructors
publicRemoveMediaItems(java.lang.String tag, int fromIndex, int toIndex)

Methods
protected abstract voiddoActionImpl(ExoPlayer player, DefaultTrackSelector trackSelector, Surface surface)

Called by Action to perform the action.

from ActiondoActionAndScheduleNext, doActionAndScheduleNextImpl
from java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructors

public RemoveMediaItems(java.lang.String tag, int fromIndex, int toIndex)

Parameters:

tag: A tag to use for logging.
fromIndex: The start if the range of media items to remove.
toIndex: The end of the range of media items to remove (exclusive).

Methods

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

Called by Action to perform the action.

Parameters:

player: The player to which the action should be applied.
trackSelector: The track selector to which the action should be applied.
surface: The surface to use when applying actions, or null if no surface is needed.