"We offer new support options and therefor the forums are now in read-only mode! Please check out our Support Center for more information." - Vuforia Engine Team

Flashlight function on toogle button

Hello,Regards

 

I've made toogle button in my AR Application,i want to ask how to turn on/off flashlight android with that toogle button,,please so

Hello hananaja132,

You can use the following API to turn the flashlight on and off:

CameraDevice.Instance.SetFlashTorchMode( true / false );

Our sample app has a menu option that does exactly what you are looking to do if you'd like a reference.

Thanks,