getCloudSyncSwitchStatus(params: Object)
Requires:
WearKit≥1.5.0@ray-js/ray≥1.7.82
Platforms:
iOSAndroid
Description
Get cloud sync switch status.
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 | WearKit Since |
|---|---|---|---|
enabled | boolean | Switch state | v1.6.0 |
syncType | number | Sync type: 0 for all, 1 for Wi-Fi; default 0. | v1.6.0 |
modifyTime | number | Update time, default -1 | v1.6.0 |
fail callback parameters
| Property | Type | Description |
|---|---|---|
errorMsg | string | Error message |
errorCode | string | number | Error code |
| Error extension |
Return Value
None
Error Code
| Error Code | Error Message |
|---|---|
10001 | Internal error |