Source set: Common
public val LocalSoundEffect: ProvidableCompositionLocal<SoundEffect> =
staticCompositionLocalWithComputedDefaultOf {
LocalOwner.currentValue.soundEffect
}
The CompositionLocal to provide platform sound effects.
This is used to trigger sounds on user interaction, like clicks. To enable, disable, or customize sound interaction scopes, utilize SoundEffectOnInteraction.