mapMediaItems

expect open fun <T> mapMediaItems(transform: (AstroMediaItem) -> T): List<T>

Applies a transformation function to each media item in the playlist and returns a list of the transformed results.

Return

A list containing the results of applying the transformation function to each media item.

Parameters

transform

The transformation function to apply to each media item.

actual open fun <T> mapMediaItems(transform: (AstroMediaItem) -> T): List<T>
actual open fun <T> mapMediaItems(transform: (AstroMediaItem) -> T): List<T>

Applies a transformation function to each media item in the playlist and returns a list of the transformed results.

Return

A list containing the results of applying the transformation function to each media item.

Parameters

transform

The transformation function to apply to each media item.