Demo to preview the plugin:
Introduction
This simplest plugin allows you to turn on/off the flashlight on Android. Use its single action to enable or disable the flashlight.
👛 Please support our efforts to keep this plugin free—your donations help us invest the time and resources needed to continue maintaining and improving it for everyone’s benefit: https://zeroqo.de/support.
How to setup
- Add the Plugin Element
- Drag and drop the Flash Light element onto your Bubble page.
- This is the main element that enables the plugin to interact with the device's flashlight.
- Ensure the element is placed on the page where you want to use the flashlight functionality.
- Configure the Events
- This event is triggered when the flashlight is successfully turned on.
- Use this event to perform actions or display notifications indicating the flashlight is on.
- This event is triggered when the flashlight is successfully turned off.
- Use this event to perform actions or display notifications indicating the flashlight is off.
A Flash Light Light_on
A Flash Light Light_off
- Configure the Actions
- This action allows you to control the flashlight, toggling it between ON and OFF states.
- Parameters:
- State: Defines whether the flashlight should be turned ON or OFF.
Turn On/Off Torch A Flash Light
Plugin Element Properties
Flash Light
Element Actions
- Turn on/off torch - This action allows you to control the flashlight by toggling it between ON and OFF states. You can use this in workflows to programmatically activate or deactivate the device's flashlight based on user interaction or other triggers.
Element Events
Title | Description |
light_on | Triggered when the flashlight is successfully turned on. Use this to perform actions such as displaying a notification or updating the app's UI to reflect the flashlight's state. |
light_off | Triggered when the flashlight is successfully turned off. Use this to perform actions like notifying the user or updating the app's UI to indicate the flashlight has been deactivated. |