Skip to content

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。
    PropertiesTypeDefault valueRequiredDescription
    successFunction-NoCallback function for successful interface call
    failFunction-NoCallback function for failed interface call
    completeFunction-NoCallback 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。
    PropertiesTypeDefault valueRequiredDescription
    successFunction-NoCallback function for successful interface call
    failFunction-NoCallback function for failed interface call
    completeFunction-NoCallback function for interface call completion (executed regardless of success or failure)