ButtonFeedback

data class ButtonFeedback(val soundEffect: Int? = SoundEffectConstants.CLICK, val hapticFeedbackType: HapticFeedbackType? = HapticFeedbackType.ContextClick)(source)

Configures feedback behavior for button interactions.

Parameters

soundEffect

The Android sound effect to play, or null to disable sound.

hapticFeedbackType

The haptic feedback type to perform, or null to disable haptics.

Constructors

Link copied to clipboard
constructor(soundEffect: Int? = SoundEffectConstants.CLICK, hapticFeedbackType: HapticFeedbackType? = HapticFeedbackType.ContextClick)

Properties

Link copied to clipboard

Functions

Link copied to clipboard
fun performClick(view: View, hapticFeedback: HapticFeedback)

Performs the configured feedback using the provided View and HapticFeedback.