SmartSupportAbility.isSupportBright(isForce?: boolean)

Requires:
@ray-js/panel-sdk≥1.0.0

Description

Determine whether the device supports the white brightness DP

Parameters

ParameterTypeRequiredDescription
isForcebooleanNoWhether to bypass the cache and force a check; default: false

Return Value

Type: boolean
Whether white brightness is supported

Examples

Example

if (sdm.support.isSupportBright()) {
  console.log('The device supports brightness adjustment');
}