setBrightness

open fun setBrightness(@IntRange(from = 0, to = 255brightness: Int): Boolean

设置屏幕亮度

需添加权限 {@code }

并得到授权

Parameters

brightness

亮度值