Source set: Common
public val LocalSoundEffect: ProvidableCompositionLocal<SoundEffect> =
if (androidx.compose.ui.ComposeUiFlags.isMinimalistLocalsEnabled) {
staticCompositionLocalWithComputedDefaultOf { LocalOwner.currentValue.soundEffect }
} else {
staticCompositionLocalOf { NoSoundEffect }
}
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.