getAudioImportStatus(params: Object)
Requires:
WearKit≥1.7.0@ray-js/ray≥1.7.82
Platforms:
iOSAndroid
Description
Get audio import 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 |
|---|---|---|
status | number | Import status 0: Not started 1: Importing 2: Completed 3: Interrupted (error occurred, entire flow stopped) |
errorCode | number | Error code (used when status = 3) Corresponds to code in FileImportStatus |
errorMessage | string | Error message (used when status = 3) Corresponds to msg in FileImportStatus |
totalFileCount | number | Total number of files |
successCount | number | Number of files imported successfully |
| List of files that failed to import (failed files are skipped) Each failed file includes the filename and reason | ||
timestamp | number | Timestamp |
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 |