---
name: "checkIsMatterDevice"
mode: "api"
versionRequirements:
  - { name: "", version: "1.15.0" }
title: "checkIsMatterDevice"
summary: "根据 schema 判断当前设备是否为 Matter 面板。"
questions:
  - "checkIsMatterDevice 通常与哪类 schema 入参配合？"
  - "force 参数可能用于什么场景？"
---

## checkIsMatterDevice

> [VERSION] v1.15.0+

### 描述

根据 schema 判断当前设备是否为 Matter 照明面板。

### 参数

`Params`

| 参数 | 类型 | 必填 | 描述 |
| --- | --- | --- | --- |
| `schema` | `any` | 是 | Matter 面板的 schema（数组或 code 为键的对象） |
| `force` | `any` | 否 | 为 true 时忽略缓存，重新计算 |

### 返回值

无


### 示例代码

#### 示例

```ts
import { createMatterKit, useDpSchema } from '@ray-js/panel-sdk';

const matterKit = createMatterKit();
const dpSchema = useDpSchema();
const isMatter = matterKit.utils.checkIsMatterDevice(dpSchema);
```
