Skip to main content
Version: v1.0

hmSetting.setBrightScreen(brightTime)

Set the bright screen time. When you need the screen to be always on, you can set a larger bright screen time.

Type

(brightTime: number) => result

Parameters

brightTime

DescriptionRequiredTypeDefault
The bright time of the current device, in seconds, in the range [1, 2147483]YESnumber-

result

DscriptionType
result, 0 means the setting is successfulnumber

Code example

const result = hmSetting.setBrightScreen(10)