Android 12 Developer Preview is here! Try it out, and give us your feedback!

HapticFeedback

interface HapticFeedback
androidx.compose.ui.hapticfeedback.HapticFeedback

Interface for haptic feedback.

Summary

Public methods
abstract Unit

Provide haptic feedback to the user.

Public methods

performHapticFeedback

abstract fun performHapticFeedback(hapticFeedbackType: HapticFeedbackType): Unit

Provide haptic feedback to the user.