🧩 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
Specifications
Package: io.th.thflashlight
Size: 12.96 KB
Version: 1.0
Minimum API Level: 14
Updated On: 2025-12-17T00:00:00Z
Built & documented using: FAST v5.3.2
Get aix here
Get aia/apk on GitHub
Demo
Blocks
Pre build flashlight ui on this functions.
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


