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

amoledwatchfaces

12/09/2023, 9:59 AM
Hello, I'm using compose-bom:2023.10.01, click on navbar buttons or any other button in my app does not have any sound effect (click). Should I do something specific to make it work? (clickable modifiers etc)
n

Nat Strangerweather

12/10/2023, 9:07 AM
Copy code
val view = LocalView.current

Button(onClick = { view.playSoundEffect(SoundEffectConstants.CLICK) }) {}
plus green 1
a

amoledwatchfaces

12/10/2023, 9:12 AM
Thanks @Nat Strangerweather! 🙂
👍 1