syncDownloadNoteAudio
Requires:
WearKit≥1.5.0@ray-js/ray≥1.7.82
Platforms:
iOSAndroid
Method signature
syncDownloadNoteAudio(params: )Description
Sync download Note audio.
Parameters
| Property | Type | Required | Description | WearKit Since | Minimum SDK versions |
|---|---|---|---|---|---|
fileId | number | Yes | File ID | v1.6.0 |
|
recordId | string | Yes | Recording ID | v1.6.0 |
|
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 |
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 |
10212 | File record does not exist |