-
public final class WaveformSliderKt
-
-
Method Summary
Modifier and Type Method Description final static UnitWaveformSlider(Modifier modifier, WaveformSliderStyle style, List<Float> waveformData, Integer visibleBarLimit, Boolean adjustBarWidthToLimit, Float progress, Boolean isThumbVisible, Function1<Float, Unit> onDragStart, Function1<Float, Unit> onDrag, Function1<Float, Unit> onDragStop)A slider that displays a waveform and allows the user to seek through it. final static UnitStaticWaveformSlider(Modifier modifier, WaveformSliderStyle style, List<Float> waveformData, Integer visibleBarLimit, Boolean adjustBarWidthToLimit, Float progress, Boolean isThumbVisible, Function1<Float, Unit> onDragStart, Function1<Float, Unit> onDrag, Function1<Float, Unit> onDragStop)A slider that displays a waveform. -
-
Method Detail
-
WaveformSlider
@Composable() final static Unit WaveformSlider(Modifier modifier, WaveformSliderStyle style, List<Float> waveformData, Integer visibleBarLimit, Boolean adjustBarWidthToLimit, Float progress, Boolean isThumbVisible, Function1<Float, Unit> onDragStart, Function1<Float, Unit> onDrag, Function1<Float, Unit> onDragStop)
A slider that displays a waveform and allows the user to seek through it.
- Parameters:
modifier- Modifier for styling.style- The style for the waveform slider.waveformData- The waveform data to display.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.onDragStart- Callback when the user starts dragging the thumb.onDragStop- Callback when the user stops dragging the thumb.
-
StaticWaveformSlider
@Composable() final static Unit StaticWaveformSlider(Modifier modifier, WaveformSliderStyle style, List<Float> waveformData, Integer visibleBarLimit, Boolean adjustBarWidthToLimit, Float progress, Boolean isThumbVisible, Function1<Float, Unit> onDragStart, Function1<Float, Unit> onDrag, Function1<Float, Unit> onDragStop)
A slider that displays a waveform.
- Parameters:
modifier- Modifier for styling.style- The style for the waveform slider.waveformData- The waveform data to display.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.onDragStart- Callback when the user starts dragging the thumb.onDrag- Callback when the user drags the thumb.onDragStop- Callback when the user stops dragging the thumb.
-
-
-
-