generateTracks

fun generateTracks(    count: Int,     idPrefix: String = "-track-",     titlePrefix: String = "Track ",     trackDuration: Duration = DEFAULT_GENERATED_TRACK_DURATION,     metadata: (builder: IviMediaItemBuilder) -> Unit = {}): List<IviMediaItem>

Generate count playable media items as children of this item.

Each track will have the given idPrefix followed by its 1-based index as IviMediaItem.id, the given titlePrefix followed by its 1-based index as IviMediaItem.title, and the given trackDuration as IviMediaItem.duration. If metadata is specified, each track will have the specified metadata applied.

This FakeMusicCatalogBuilder must be browsable for the items to be visible in the media browser.

Return

A list of copies of the added items.