replaceMediaItems

expect open fun replaceMediaItems(fromIndex: Int, toIndex: Int, mediaItems: List<AstroMediaItem>)

Replaces a range of media items in the playlist with a new list of media items.

Parameters

fromIndex

The starting index of the media items to replace (inclusive).

toIndex

The ending index of the media items to replace (exclusive).

mediaItems

The list of new media items to insert.

actual open fun replaceMediaItems(fromIndex: Int, toIndex: Int, mediaItems: List<AstroMediaItem>)
actual open fun replaceMediaItems(fromIndex: Int, toIndex: Int, mediaItems: List<AstroMediaItem>)

Replaces a range of media items in the playlist with a new list of media items.

Parameters

fromIndex

The starting index of the media items to replace (inclusive).

toIndex

The ending index of the media items to replace (exclusive).

mediaItems

The list of new media items to insert.