getDeviceOfflineFileStatus(params: Object)
Requires:
WearKit≥1.1.3@ray-js/ray≥1.7.82
Platforms:
iOSAndroid
Description
Query current device offline file download status.
Parameters
| Property | Type | Required | Description |
|---|---|---|---|
deviceId | string | No | deviceId; if empty, checks whether the current app has a recording task |
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 | WearKit Since |
|---|---|---|---|
status | number | Current download status 0: Not started 1: Downloading 2: Completed | - |
sessionId | number | Current task ID, used to uniquely identify a single task 0 indicates the task has not started | - |
| Download status of the current resource | - | ||
errorCode | number | Error codes during download 10096: The current Wi-Fi hotspot connection has been disconnected. Please restart file upload. | Confirm button [AP hotspot network was switched] 10095: Abnormal transfer rate. Please keep the device close to the phone. [Transfer speed is 0 for 10s continuously] 10094: Please enable Wi-Fi before using Quick Transfer. [Wi-Fi permission not enabled] | v1.6.12 |
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 |
10061 | Device error |
10083 | Device offline |