Skip to content

Latest commit

 

History

History
50 lines (32 loc) · 1.31 KB

index.md

File metadata and controls

50 lines (32 loc) · 1.31 KB

com.vibrationapps.vibration

This plugin provides a way to vibrate the device.

Installation

cordova plugin add https://github.com/Rickgbw/cordova-plugin-vibrator

Supported Platforms

  • Android

vibration.vibrate

Vibrates the device for the specified amount of time.

vibration.vibrate(time)
  • time: Milliseconds to vibrate the device. (Number)

Example

// Vibrate for 2.5 seconds
vibration.vibrate(2500);

vibration.cancel

Cancel actual vibration

vibration.cancel()