# wx.offVoIPChatStateChanged(function listener)

> 基础库 2.16.0 开始支持，低版本需做[兼容处理](1003706)。

> __小程序插件__：不支持
> 
> __微信 Windows 版__：支持
> 
> __微信 Mac 版__：支持

> 相关文档: [多人音视频对话](/miniprogram/dev/framework/open-ability/voip-chat.md)

## 功能描述

移除房间状态变化事件的监听函数

## 参数

### function listener

onVoIPChatStateChanged 传入的监听函数。不传此参数则移除所有监听函数。

## 示例代码
```js
const listener = function (res) { console.log(res) }

wx.onVoIPChatStateChanged(listener)
wx.offVoIPChatStateChanged(listener) // 需传入与监听时同一个的函数对象
```
