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
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.
Are you sure you want to delete this message?
Are you sure you want to delete this conversation?