SmartSupportAbility.isSupportDp(dpCode: any, isForce?: boolean)

版本要求:
@ray-js/panel-sdk≥1.0.0

描述

检查给定的功能点编码是否受设备支持

参数

参数类型必填说明
dpCodeany是功能点编码
isForceboolean否是否跳过缓存强制检查,默认 false

返回值

类型:boolean
该功能点是否支持

示例代码

示例

const hasBright = sdm.support.isSupportDp('bright_value');
const hasSwitch = sdm.support.isSupportDp('switch_led');
console.log('支持亮度:', hasBright, '支持开关:', hasSwitch);