moveTrackInPlaylist

abstract suspend fun moveTrackInPlaylist(playlist: Playlist, tracks: List<Track>, fromIndex: Int, toIndex: Int)

Moves a track in a playlist.

Parameters

playlist

the playlist to move the track in.

tracks

the tracks in the playlist.

fromIndex

the index to move the tracks from.

toIndex

the index to move the tracks to.