[FREE] BrightnessTools - Tools that set brightness of your phone

Introduction

Hi there! Today I am going to publish my third extension - BrightnessTools
A simple extension to set your brightness! :iphone: :bulb:

Blocks

component_event

component_method

component_set_get (1)

component_set_get (2)

component_set_get (3)

component_set_get

Documentation


Blocks Description
WhenErrorOccurred
Raises when error occured

Params Type Description
error String Return a description of error

MaxBrightness 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.
GetBrightness
SetBrightness

Set the brightness of user's phone. Minimum value is 0.

Params Type Description
Brightness Number (int) Set/Return the brightness depends on the given integer

GetBrightness
SetBrightness

Set brightness to adaptive or non-adaptive. Adaptive if true, otherwise non-adaptive.

Params Type Description
Adaptive Boolean Set/Return adaptive or non-adaptive

You need to grant WRITE_SETTINGS permission.

Download

v1.0

com.watermelonice.BrightnessTools.aix (10.7 KB)

If you have liken it please give me a thumbs up!

Note

THIS EXTENSION WILL ONLY BE DISTRIBUTED IN KODULAR AND AI2 COMMUNITY. REUPLOAD MY WORK IS NOT ALLOWED.

9 Likes

Can other users from other builders cant use your extension?

You misunderstood. I mean distributing my extension. That's mean only I can distribute this extension. Do not reupload it.

And yes, you can use it in other builder

1 Like