androidhaptic-feedback

Which is equivalent in Android for iOS selectionChanged() haptic?


I was looking for selectionChanged() for android. I found some constants on android but nothing for 'selectionChanged' : https://developer.android.com/reference/android/os/VibrationEffect

Here is apple doc: https://developer.apple.com/documentation/uikit/uiselectionfeedbackgenerator/2374284-selectionchanged

Which could be the equivalent for android ?


Solution

  • performHapticFeedback...
    

    This is the native way