saveTTSData(params: Object)
Requires:
OutdoorKit≥1.0.1@ray-js/ray≥1.4.40
Platforms:
iOSAndroid
Description
Save cycling voice broadcast data
Parameters
| Property | Type | Required | Description |
|---|---|---|---|
ttsMainSwitch | boolean | Yes | Global switch for cycling data broadcast |
weather | boolean | Yes | Weather |
abnormalWear | boolean | Yes | Abnormal wear voice alert switch |
cyclingMileage | boolean | Yes | Cycling distance voice alert switch |
lowBattery | boolean | Yes | Low battery |
electricThreshold | number | Yes | Low-battery voice alert threshold; triggers when the battery falls below this percentage |
callReminder | boolean | Yes | Incoming call voice alert switch |
complete | () => void | No | Completion callback (executed on both success and failure) |
| 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