title: androidx.camera.view.CameraView how to detect if camera has flash/torch?
body: <p>Im using androidx.camera:camera-view:1.0.0-alpha05 in my project to take photos from front and back camera of the phone. I don't need all the advanced features which are present in examples here <a href="https://github.com/android/camera-samples/tree/master/CameraXBasic" rel="nofollow noreferrer">https://github.com/android/camera-samples/tree/master/CameraXBasic</a> also at the present moment the examples are outdated and do not work with latest libs. So all the features are fine in androidx.camera:camera-view, except that I can't detect if flash/torch is present for front or back camera, and there is no way to get this from CameraView. While there are methods like hasCameraWithLensFacing to check if specified camera is present and it also possible set the flash mode via flash property of CameraView. Also there is no way to Get CameraInfo which is referenced in the android documentation for androidx.camera:camera-core. </p>
  
  <p>So how can I detect if flash is present using only androidx.camera:camera-view:1.0.0 which is -alpha05 currently?</p>