WaveformSlider

fun WaveformSlider(modifier: Modifier = Modifier, style: WaveformSliderStyle = WaveformSliderStyle.defaultStyle(), waveformData: List<Float>, visibleBarLimit: Int = 100, adjustBarWidthToLimit: Boolean = false, progress: Float, isThumbVisible: Boolean = true, onDragStart: (Float) -> Unit = {}, onDrag: (Float) -> Unit = {}, onDragStop: (Float) -> Unit = {})

A slider that displays a waveform and allows the user to seek through it.

Parameters

modifier

Modifier for styling.

waveformData

The waveform data to display.

style

The style for the waveform slider.

visibleBarLimit

The number of bars to display at once.

adjustBarWidthToLimit

Whether to adjust the bar width to fit the visible bar limit.

progress

The current progress of the waveform.

isThumbVisible

Whether to display the thumb.

isTouchable

Whether the waveform is touchable.

onDragStart

Callback when the user starts dragging the thumb.

onDragStop

Callback when the user stops dragging the thumb.