sendToNote
Requires:
WearKit≥1.4.0@ray-js/ray≥1.7.82
Platforms:
iOSAndroid
Method signature
sendToNote(params: )Description
Send translation to summary API.
Parameters
| Property | Type | Required | Description | Minimum SDK versions |
|---|---|---|---|---|
fileId | string | No | File ID in the translation table |
|
recordId | string | No | recordid in the translation table |
|
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 |
|---|---|---|
fileId | string | Record ID generated after sending to Note |
recordId | string | recordid in the translation table |
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 |
10012 | Record not found |