Skip to main content
Version: v2

hmSetting.getBrightness()

Returns the screen brightness of the current device.

Type

() => result

Parameters

result

DescriptionType
The screen brightness of the current device, in the range [0, 100]number

Code example

const result = hmSetting.getBrightness()