How to programmatically enable/disable haptic feedback in System Settings in a device running SDK API level 30+?

509 Views Asked by At

Since as of API level 30, System.HAPTIC_FEEDBACK_ENABLED has been marked as deprecated, how would one programmatically enable/disable haptic feedback in System Settings(i.e. globally) on a device running SDK API level 30+ using the VibrationAttributes-related APIs?

0

There are 0 best solutions below