checkIsMatterHasWhite(dpSchema: any, force?: any)

Requires:
≥1.15.0

Description

Determine whether the Matter device supports white light (related to channel count: 1/2/4/5 channels = true; 3 channels = false).

Parameters

ParameterTypeRequiredDescription
dpSchemaanyYesdpSchema object
forceanyNoPass true when matter-kit is not integrated to infer the channel count

Return Value

Type: boolean
Whether white light is supported

Examples

Example

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

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