Property

LocalSoundEffect

The CompositionLocal to provide platform sound effects.

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.

Jetpack Compose beyond MaterialFree components, screens and templates for apps that don’t look like Google’s. Copy them into your app, or let your coding agent add them.Browse for free

Content updated: