A decision block that checks the screen brightness settings.
If the proceed option is set to Immediately, then check the current brightness settings without pausing the fiber. If set to When changed, then the fiber will pause until the brightness settings has changed.
If both minimum brightness and maximum brightness is set
and doesn’t evaluate to null
then the brightness must be within the range.
If only minimum is set, then the level must be greater than or equal to it.
If only maximum is set, then the level must be less than or equal to it.
If none of the input arguments are set, then the current settings is just assigned to
current automatic and current brightness variables without a check.
Since Android 15 and possibly lower on some devices this block may not check nor output a correct brightness level due an Android bug. A workaround is to use the System setting get block with category System and name Screen brightness to get the unnormalized level value, that due to the bug may not be between 0 and 255 as documented.
Note! Android 6 contains a bug which prevents access to the current adjustment value.