Brightness Management
Brightness Management
Importing Modules
import brightness from '@system.brightness'
API
setKeepScreenOn
Sets whether to keep the screen on. When mode is set to true, the screen stays on; when mode is set to false, the screen-on state is canceled.
