title: Taro.onVoIPChatStateChanged(callback)
sidebar_label: onVoIPChatStateChanged
监听房间状态变化事件
支持情况:
类型
(callback: Callback) => void
参数
参数 | 类型 |
---|---|
callback | Callback |
Result
参数 | 类型 | 说明 |
---|---|---|
code | number |
事件码 |
data | Record<any, any> |
附加信息 |
errCode | number |
错误码 |
errMsg | string |
调用结果 |
Callback
房间状态变化事件的回调函数
(res: Result) => void
参数 | 类型 |
---|---|
res | Result |