Skip to main content
Use this API to set the screen brightness level. This is useful for QR code display screens or reading modes.

Parameters

Code Example

Basic Usage

QR Code Display

Reading Mode Toggle

Brightness Slider

Always restore the original brightness when leaving a page that modified it. Users may find it disruptive if brightness changes persist unexpectedly.

my.getScreenBrightness

Get current brightness