Skip to main content
Version: v1.0

hmSetting.setBrightScreenCancel()

Cancel the bright screen time.

You need to call setBrightScreenCancel method in the app destroy function after you have called setBrightScreen method to set the bright screen time.

Type

() => result

Parameters

result

DescriptionType
The result of the operation, 0 means the setting was successfulnumber

Code example

hmSetting.setBrightScreen(10)
hmSetting.setBrightScreenCancel()