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

Parameters

PropertyTypeRequiredDescription
successFunctionNoCallback on success
failFunctionNoCallback on failure
completeFunctionNoCallback that always executes

Code Example

my.vibrate({
  success: () => {
    console.log('Vibrated');
  }
});