I'm using CameraDemo-Layout as an example for how to properly put buttons on a screen with the camera fragment.
I'm trying to use setCameraView()
/**
* Use this if you are overriding onCreateView() and are
* inflating a layout containing your CameraView, to tell
* the fragment the CameraView, so the fragment can help
* manage it. You do not need to call this if you are
* allowing the fragment to create its own CameraView
* instance.
*
* @param cameraView
* the CameraView from your inflated layout
*/
protected void setCameraView(CameraView cameraView) {
this.cameraView=cameraView;
}
but, I can't use it since it's protected. I'm using the CameraDemo - Layout as an example. I have my own CustomCam, CustomCamFragment, and CustomCamHost.
In CustomCamFragment in onCreateView I'm attempting to use setCameraView, but it is undefined. Was this by mistake or should I follow the rule "You do not need to call this..." because I don't quite understand that part?