checkIsMatterHasWhite(dpSchema: any, force?: any)

版本要求:
≥1.15.0

描述

判断 Matter 设备是否具备白光能力(与路数相关:1、2、4、5 路为 true,3 路为 false)。

参数

参数类型必填说明
dpSchemaany是dpSchema 对象
forceany否未接入 matter-kit 推断路数时需传入 true

返回值

类型:boolean
是否具备白光

示例代码

示例

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

const matterKit = createMatterKit();
const dpSchema = useDpSchema();
const hasWhite = matterKit.utils.checkIsMatterHasWhite(dpSchema);