On this page
Vibration
vibrateShort
TIP
The API usage is as follows: wx.vibrateShort(Object object)
- Functional description: Make the phone vibrate for a short time (15 ms)
- Parameters and descriptions: Object object。
Properties Type Default value Required Description success Function - No Callback function for successful interface call fail Function - No Callback function for failed interface call complete Function - No Callback function for interface call completion (executed regardless of success or failure)
vibrateLong
TIP
The API usage is as follows: wx.vibrateLong(Object object)
- Functional description: Make the phone vibrate for a long time (400 ms)
- Parameters and descriptions: Object object。
Properties Type Default value Required Description success Function - No Callback function for successful interface call fail Function - No Callback function for failed interface call complete Function - No Callback function for interface call completion (executed regardless of success or failure)