checkIsMatterDevice(schema: any, force?: any)

Requires:
≥1.15.0

Description

Determine whether the current device is a Matter lighting panel based on the schema.

Parameters

ParameterTypeRequiredDescription
schemaanyYesSchema of the Matter panel (an array or an object keyed by code)
forceanyNoIgnore cache and recompute when true

Return Value

Type: boolean
Whether it is a Matter panel

Examples

Example

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

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