Flashlight plugin for Android

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.

How to setup

  1. 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.
    1. Configure the Events
      1. A Flash Light Light_on
        • 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.
        A Flash Light Light_off
        • 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.
      1. Configure the Actions
        1. Turn On/Off Torch A Flash Light
          • 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.

        Plugin Element Properties

        Flash Light

        Element Actions

        1. 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.

          Changelogs