bind Preview
This method is used to bind the camera preview and make the capture analyzer process the frames from the camera. When called, this method will also create a new session and reset the UI. Any exception from the SDK will be caught and shown in the UI.
Parameters
camera Provider
The camera provider