setRequestedSurfaceViewForCameraDisplay
In order to display camera preview, camera view must use one of two android's view's that are capable of displaying camera preview video stream: android.view.SurfaceView and android.view.TextureView. By default, android.view.SurfaceView will be preferred because it is faster and more power efficient. Sometimes, when you create complex UI on top of camera screen, animations or UI may render incorrectly on some devices when using android.view.SurfaceView for displaying camera preview. In that case, you can use this method to force setting the surface you want.
Parameters
requestedSurface
Which view should be used to display camera preview.