screenBrightness
Last updated
Last updated
Adjust brightness of a mobile device.
No | Name | Description | Data Type | Required | Example |
---|---|---|---|---|---|
The user want adjust the screnn brightness of mobile.
Call the screenBrightness function in a button event.
The mobile device brightness level will be changed.
N/A
N/A
1
level
brightness level
Float
Yes
float 0-1 is a brightness level, -1 represents a system default
2
keepScreenOn
Prevents sleep
Boolean
Yes