retryImport(params: Object)
Requires:
WearKit≥1.7.0@ray-js/ray≥1.7.82
Platforms:
iOSAndroid
Description
Retry import.
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 |
|---|---|
20101 | Number of imported files exceeds the limit (10) |
20102 | File too large |
20103 | Invalid file format |
20104 | Insufficient storage space |
20105 | File does not exist |
20106 | File attributes changed |
20107 | File duration too long |
20108 | SDK initialization failed |
20109 | Failed to start decoding audio |
20110 | Invalid file format, cannot decode |
20111 | Decoding interrupted due to file error |
20112 | Import task interrupted unexpectedly |
20113 | Failed to create MP3 |
20114 | Import canceled by user |