# wx.vibrateShort(Object object)
Start from base library version 1.2.0. Please remaining backward compatible.
with Promise style call: Supported
Mini Program plugin: Support, need to Mini Program base library version no less than 1.9.6
Make the mobile phone vibrate for a short time (15 ms)。 Only in iPhone 7 / 7 More
Above and Android Model entry into force
# parameter
# Object object
attribute | type | Default values | Required | Introductions | Minimum version |
---|---|---|---|---|---|
type | string | yes | Vibration intensity type, valid values are: heavy, medium, light | 2.13.0 | |
success | function | no | Interface calls the successful callback function | ||
fail | function | no | Interface calls failed callback functions | ||
complete | function | no | Callback function at the end of an interface call (both successful and unsuccessful calls are executed) |