Log in or register to post comments

Flashlight function on toogle button

October 17, 2017 - 7:24pm #1

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

Flashlight function on toogle button

October 18, 2017 - 9:48am #2

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,

-Vuforia Support

Log in or register to post comments