https://kotlinlang.org logo
#compose
Title
# compose
a

Ahmed Shehata

06/10/2022, 11:04 AM
Hi everyone, I 'm developing a music player app using compose But I want to detect if user has touched or moving the slider component so I can stop playing music and update the slider value upon the user moves. But ths Slider in compose has only onValueChange listener that has been fired after user changes the slider value not while changing the value. How can I solve this problem?
r

Rajat Singh Jasrotia

06/10/2022, 12:09 PM
a

Ahmed Shehata

06/10/2022, 12:42 PM
Thanks but I tried it before. it's not working as expected.
a

Albert Chang

06/10/2022, 12:43 PM
onValueChange
is called while the value is being changed. What is only called after the change is
onValueChangeFinished
.
❤️ 1
9 Views