By hananaja132
on Wed, 10/18/2017 - 02:24
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,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,
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,