Skip to main content

Manage device Vibrator

Manage device Vibrator

Use this component to vibrate the device

To get started using it, you must use KmpVibration. Below are the functions available.


_3
// vibrates the device for 5 seconds
_3
KmpVibration.startVibrating(5000)
_3
KmpVibration.stopVibrating()

Android Setup

For android please add this into your manifest:


_1
<uses-permission android:name="android.permission.VIBRATE" />