getTranslateFileList(params: Object)
Requires:
WearKit≥1.4.0@ray-js/ray≥1.7.82
Platforms:
iOSAndroid
Description
Get translation record list.
Parameters
| Property | Type | Required | Description |
|---|---|---|---|
directoryId | string | No | Directory ID; if omitted, all directories are returned |
recordType | string | No | Translation type: 0: All record types 1: Real-time speech transcription 2: Face-to-face Translation Pro 3: Face-to-face Translation Basic 4: Text translation |
deviceId | string | No | Device ID; if omitted, all devices will be queried |
orderBy | string | No | Sort field: 0-fileId, 1-recordTime, 2-updateAt; default is fileId if omitted |
source | string | No | Audio source, consistent with audioSource |
asc | string | No | Sort order: 0-desc, 1-asc; default is desc if omitted |
lastRecordTransferId | string | No | Last record ID; if omitted or 0, no limit |
pageSize | number | No | Page size; if omitted or 0, no pagination (all) |
complete | () => void | No | Completion callback (executed on both success and failure) |
| 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 |