---
name: "offGetWifiList"
mode: "kit"
versionRequirements:
  - { name: "BaseKit", version: "2.4.3" }
  - { name: "@ray-js/ray", version: "0.5.9" }
platform:
  - "iOS"
  - "Android"
async: true
title: "offGetWifiList - 移除监听：监听获取到 Wi-Fi 列表数据事件"
---

## offGetWifiList

> [VERSION] BaseKit >= 2.4.3 | @ray-js/ray >= 0.5.9

> [PLATFORM] iOS, Android

> ⚡ **支持 Promise 调用** — 不传 success / fail / complete 回调时，该方法返回 Promise。

### 描述

监听获取到 Wi-Fi 列表数据事件

### 参数

`(listener: Function)`

| 参数 | 类型 | 必填 | 默认值 | 描述 |
| --- | --- | --- | --- | --- |
| `listener` | `(params: WifiListResponse) => void` | 是 | - |  |

### 引用对象

##### `interface` WifiListResponse

| 属性 | 类型 | 最低版本 | 描述 |
| --- | --- | --- | --- |
| `wifiList` | `WifiInfo[]` | `2.4.3` | Wi-Fi列表 |

##### `interface` WifiInfo

| 属性 | 类型 | 最低版本 | 描述 |
| --- | --- | --- | --- |
| `ssid` | `string` | `4.17.0` | wifi名称 |
| `password` | `string` | `4.17.0` | 密码 |


### 示例代码

#### Demo

```tsx
import { onGetWifiList, offGetWifiList } from '@ray-js/ray'

const listener = function (res) { console.log(res) }
onGetWifiList(listener)
offGetWifiList(listener)
```
