Introduction
Hi there! Today I am going to publish my third extension - BrightnessTools
A simple extension to set your brightness!
Blocks
Documentation
Blocks | Description | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Raises when error occurred
|
||||||||||||
![]() |
Triggered when detected any brightness or adaptive change. The param "changed" indicate what has change.
|
||||||||||||
![]() |
Returns: Number (int) Get Max brightness of user's phone. If max brightness not found, return 255. Note: Android states that the maximum value should be 255. However, different brands of phones have different settings, like some Xiaomi phones have the maximum of 4000. |
||||||||||||
![]() |
Register the listener of Changed |
||||||||||||
![]() ![]() |
Set the brightness of user's phone. Minimum value is 0.
|
||||||||||||
![]() ![]() |
Set brightness to adaptive or non-adaptive. Adaptive if true, otherwise non-adaptive.
|
You need to grant WRITE_SETTINGS permission.
For more please see this post
To do it, please see this post for an example.
Download
v1.1
com.watermelonice.BrightnessTools.aix (14.0 KB)
v1.0
com.watermelonice.BrightnessTools.aix (10.7 KB)
Test AIA
Change Log
v1.1
- Big update! Added Listener for brightness and adaptive change
- Optimized the code
If you have liken it please give me a thumbs up!
This extension will only be distributed in Kodular and AI2 community. Reuploading my work is not allowed.