View on Asset Store (opens in new tab)
Package details
- Latest version
- 1.0.2
- Last updated
- First released
- Unity version
- 2019.4.10 or later
- Package size
- 1.6 MB
- Files
- 43
- Favorites
- 11
- Views in the past week
- 4
Price tracking
- Last checked
- Tracked since
- Lowest recorded
- $7.99 on
Keywords
Native Flashlight for Android Pro
Add to your application the ability to turn on and off the phone's flashlight!
Affiliate link · Purchases support this site
Price history
Last 6 months
USDAsset preview
1 / 3
Native Flashlight for Android Pro screenshot 1
About this asset
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.
From the publisher's Asset Store listing.
Technical details
Supported platforms: Android
Documentation: Included
Compatibility
| Unity version | Built-in | URP | HDRP |
|---|---|---|---|
| 2023.1.0f1 | Compatible | Compatible | Compatible |
| 2022.1.10f1 | Compatible | Compatible | Compatible |
| 2021.2.0f1 | Compatible | Compatible | Compatible |
| 2020.3.0f1 | Compatible | Compatible | Compatible |
| 2019.4.10f1 | Compatible | Compatible | Compatible |
As listed on the Asset Store.