Action.MoveMediaItem


class Action.MoveMediaItem : Action


Calls moveMediaItem.

Summary

Public constructors

MoveMediaItem(tag: @Size(max = 23) String!, currentIndex: Int, newIndex: Int)

Protected functions

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

Called by doActionAndScheduleNextImpl to perform the action.

Public constructors

MoveMediaItem

MoveMediaItem(tag: @Size(max = 23) String!, currentIndex: Int, newIndex: Int)
Parameters
tag: @Size(max = 23) String!

A tag to use for logging.

currentIndex: Int

The current index of the media item.

newIndex: Int

The new index of the media item.

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.