Skip to main content
Make the device vibrate briefly for lightweight haptic feedback.

Parameters

PropertyTypeRequiredDescription
successFunctionNoCallback on success
failFunctionNoCallback on failure
completeFunctionNoCallback that always executes

Code Example

my.vibrateShort({
  success: () => {
    console.log('Short vibration triggered');
  }
});

my.vibrate

General vibration

my.vibrateLong

Long vibration