You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there any possibility to toggle the flashlight via code?
Maybe expose a function in QRActivity class that can allow us to toggle the flashlight programmatically instead of clicking in the camera preview? 😅
I've tried to switch on the flashlight using a utility flashlight class before launching the QRActivity (camera preview), however it always turns off the flashlight.
Is there any possibility to toggle the flashlight via code?
Maybe expose a function in
QRActivity
class that can allow us to toggle the flashlight programmatically instead of clicking in the camera preview? 😅I've tried to switch on the flashlight using a utility flashlight class before launching the QRActivity (camera preview), however it always turns off the flashlight.
My flashlight util class:
The text was updated successfully, but these errors were encountered: