switchRecordChannel
Requires:
WearKit≥1.1.3@ray-js/ray≥1.7.82
Platforms:
iOSAndroid
Method signature
switchRecordChannel(params: )Description
Switch recording channel.
Parameters
| Property | Type | Required | Description | Minimum SDK versions |
|---|---|---|---|---|
deviceId | string | Yes | Device ID |
|
recordChannel | number | Yes | Recording channel 1: BT 2: Microphone |
|
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 |
|---|---|
10001 | Internal error |
10041 | Operation error |
10048 | Device is not recording |
10061 | Device error |