Native Flashlight for Android Pro

$7
Publisher Isle of Assets
File size 1.65MB
Number of files 43
Latest version 1.0.1
Latest release date 2023-01-03 08:55:12
First release date 2022-08-30 12:09:14
Supported Unity versions 2018.4.2 or higher

Most of the cameras on the phone have an LED flash that can be used as a flashlight. This tool will allow you to turn on the flashlight on a variety of android versions. To do this, the code uses different approaches depending on the API level of the phone.


📌 The flashlight is switched on and off in one line of code.


📌 If you want to use this tool together with the Vuforia Engine, then the asset contains instructions with a couple of simple steps on how to do it.


📌 Permission to use the camera to operate the flashlight is granted directly from the application, if necessary.


The flashlight has been tested on these Android versions:

  • 4.4.2 (ZTE Blade L370);
  • 9 (HUAWEI P smart);
  • 11 (Galaxy A52, HUAWEI nova 9, Xiaomi POCO M3);
  • 12 (POCO X3 Pro).

The demo scene uses a toggle switch that is pleasant to use, as well as a button that allows you to change the flicker frequency.


Below you can find a link to the apk file to make sure the asset is working properly for you.


📄 Documentation.pdf


🎮 Demo App.apk

Top Publisher Assets