vibrateShort
Requires:
BaseKit≥2.3.2@ray-js/ray≥0.3.23
Platforms:
iOSAndroid
Method signature
vibrateShort(params: )Minimum SDK versions
- iOS
ThingSmartBaseKitBizBundle - ≥ 5.2.1
- Android
com.thingclips.smart:thingsmart-bizbundle-basekit - ≥ 5.2.0
Description
Trigger a short vibration (30 ms)
Parameters
| Property | Type | Required | Description | Minimum SDK versions |
|---|---|---|---|---|
type | string | Yes | Vibration intensity type. Valid values: heavy, medium, light | — |
complete | () => void | No | Completion callback (executed on both success and failure) | — |
success | () => void | No | Callback on successful API call | — |
fail | (params: Object) => void | No | Failure callback | — |
fail callback parameters
| Property | Type | Description |
|---|---|---|
errorMsg | string | Error message |
errorCode | string | number | Error code |
| Error extension |
Return Value
None