syncNoteRecord(params: Object)
Requires:
WearKit≥1.5.0@ray-js/ray≥1.7.82
Platforms:
iOSAndroid
Description
Sync upload Note records (file + audio) and download Note files.
Parameters
| Property | Type | Required | Description |
|---|---|---|---|
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
Error Code
| Error Code | Error Message |
|---|---|
10001 | Internal error |
10011 | Network error |
10200 | Duplicate upload |
10201 | Source file does not exist |
10202 | Failed to encrypt file |
10203 | Failed to get storage configuration |
10204 | Upload error |
10205 | Failed to sync results to the server |
10206 | Duplicate download |
10207 | Failed to get decryption key |
10208 | Failed to get download URL |
10209 | Encrypted file does not exist |
10210 | Failed to decrypt file |
10211 | Download error |
10213 | Cloud sync switch not enabled |
10214 | Cloud sync network type mismatch |