Skip to main content
Version: v3.x

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()