[Free] ThFlashLight A Realistic Flashlight UI component with support for Android 13+ brightness control.

🧩 ThFlashLight

An extension for MIT App Inventor 2.
A Realistic Flashlight UI component with support for Android 13+ brightness control. It renders a customizable view with a slider and power button directly in your App Inventor arrangement. Developed by TechHamara using Fast.
Find More Extension
Terms & Conditions
Find More On BuyMeCoffee Page

:memo: Specifications


:package: Package: io.th.thflashlight
:floppy_disk: Size: 12.96 KB
:gear: Version: 1.0
:iphone: Minimum API Level: 14
:date: Updated On: 2025-12-17T00:00:00Z
:computer: Built & documented using: FAST v5.3.2
:arrow_down: Get aix here
:placard: Get aia/apk on GitHub

Demo




Flash1.gif

Flash2.gif

Blocks

ErrorOccurred_Event
FlashlightStateChanged_Event


TurnOn_Method
TurnOff_Method
Toggle_Method
IsBrightnessSupported_Method

Initialize_Method

Pre build flashlight ui on this functions.


FlashlightHeight_Set_Property
Brightness_Set_Property
BodyColor_Set_Property
BeamColor_Set_Property
KeepOnInBackground_Set_Property
IsFlashlightOn_Get_Property
HeadColor_Set_Property
FlashlightWidth_Set_Property

Documentations

Events:

ThFlashLight has total 2 events.

1. FlashlightStateChanged

Event raised when flashlight state changes

Parameter Type
isOn boolean
brightness number

2. ErrorOccurred

Event raised when an error occurs

Parameter Type
error text

Methods:

ThFlashLight has total 5 methods.

1. Initialize

Initialize inside an arrangement.

Parameter Type
arrangement component

2. TurnOn

Turn on the flashlight

3. TurnOff

Turn off the flashlight

4. Toggle

Toggle the flashlight state

5. Brightness

Set the brightness percentage (0-100)

Parameter Type
percent number

Setters:

ThFlashLight has total 6 setter properties.

1. BodyColor

Set the body color of the flashlight

  • Input type: number

2. HeadColor

Set the head color of the flashlight

  • Input type: number

3. BeamColor

Set the beam color of the flashlight

  • Input type: number

4. KeepOnInBackground

If true, the flashlight stays on when the app is minimized.

  • Input type: boolean

5. FlashlightWidth

Set the width of the flashlight (percentage 1-100)

  • Input type: number

6. FlashlightHeight

Set the height of the flashlight (percentage 1-100)

  • Input type: number

Thank

This This community and builder to help and create awesome app.

Feel free to contact us any quarry or suggestions.
@techhamara

1 Like