---
name: "SmartDeviceModel.offBluetoothAdapterStateChange"
mode: "api"
versionRequirements:
  - { name: "@ray-js/panel-sdk", version: "1.0.0" }
---

## SmartDeviceModel.offBluetoothAdapterStateChange

> [VERSION] @ray-js/panel-sdk >= 1.0.0

### 描述

取消监听蓝牙适配器状态变化事件

### 参数

`Params`

| 参数 | 类型 | 必填 | 描述 |
| --- | --- | --- | --- |
| `id` | `number` | 是 | onBluetoothAdapterStateChange 返回的监听器 ID |

### 返回值

无


### 示例代码

#### 示例

```typescript
// 先注册监听
const id = device.onBluetoothAdapterStateChange((data) => {
  console.log('蓝牙状态变化:', data.available ? '可用' : '不可用');
});
// 需要时取消
device.offBluetoothAdapterStateChange(id);
```
