Use this API to trigger a relatively short period of vibration (40 ms) on the device.
Parameters
Property
Type
Required
Description
type
String
No
Level of device vibration intensity. If the current device does not support setting the vibration level, the default intensity (light) is used, and no error is triggered. Valid values: heavy, medium, light (default)
success
Function
No
Callback on success
fail
Function
No
Callback on failure. Receives error (Number, error code) and errorMessage (String)