getTTSData(params: Object)
Requires:
OutdoorKit≥1.0.1@ray-js/ray≥1.4.40
Platforms:
iOSAndroid
Description
Get cycling voice broadcast data
Parameters
| Property | Type | Required | Description |
|---|---|---|---|
complete | () => void | No | Completion callback (executed on both success and failure) |
success | (params: Object) => void | No | Callback on successful API call |
fail | (params: Object) => void | No | Failure callback |
success callback parameters
| Property | Type | Description |
|---|---|---|
ttsMainSwitch | boolean | Global switch for cycling data broadcast |
weather | boolean | Weather |
abnormalWear | boolean | Abnormal wear voice alert switch |
cyclingMileage | boolean | Cycling distance voice alert switch |
lowBattery | boolean | Low battery |
electricThreshold | number | Low-battery voice alert threshold; triggers when the battery falls below this percentage |
callReminder | boolean | Incoming call voice alert switch |
fail callback parameters
| Property | Type | Description |
|---|---|---|
errorMsg | string | Error message |
errorCode | string | number | Error code |
| Error extension |
Return Value
None