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
| Description | Required | Type | Default |
|---|---|---|---|
| The bright time of the current device, in seconds, in the range [1, 2147483] | YES | number | - |
result
| Dscription | Type |
|---|---|
result, 0 means the setting is successful | number |
Code example
const result = hmSetting.setBrightScreen(10)