touchEvents

Create a Flow of touch events on the RangeSlider instance.

Note: Created flow keeps a strong reference to the RangeSlider instance until the coroutine that launched the flow collector is cancelled.

Example of usage:

rangeSlider.touchEvents()
.onEach { event ->
// handle event
}
.launchIn(uiScope)

Create a Flow of touch events on the Slider instance.

Note: Created flow keeps a strong reference to the Slider instance until the coroutine that launched the flow collector is cancelled.

Example of usage:

slider.touchEvents()
.onEach { event ->
// handle event
}
.launchIn(uiScope)