Skip to main content
Make the device vibrate for an extended duration, suitable for alerts or confirmations.

Parameters

PropertyTypeRequiredDescription
successFunctionNoCallback on success
failFunctionNoCallback on failure
completeFunctionNoCallback that always executes

Code Example

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

my.vibrate

General vibration

my.vibrateShort

Short vibration