checkIsMatterDevice(schema: any, force?: any)

版本要求:
≥1.15.0

描述

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

参数

参数类型必填说明
schemaany是Matter 面板的 schema(数组或 code 为键的对象)
forceany否为 true 时忽略缓存,重新计算

返回值

类型:boolean
是否为 Matter 面板

示例代码

示例

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

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