openCameraInstance
Selects and opens the best hardware camera candidate according to the supplied criteria, waiting for it to be available or claiming the resource if necessary.
Events emitted:
FrameProducer.Event.CameraInitialized If the camera has been selected, opened and initialized.
FrameProducer.Event.InitializationError.CameraNotAvailable If the device does not have a hardware camera or if the selected camera can't be opened.
FrameProducer.Event.InitializationError.InsufficientCamera If the selected camera doesn't satisfy the required features, or if there wasn't any to choose from.
FrameProducer.Event.InitializationError.CameraInitialization If the camera couldn't be configured, the LifecycleOwner or Context wasn't available or there was an execution problem.
NOTE: calling this method will release the camera if it's already initialized.
Parameters
The filter applied to the list of available cameras to choose the best fit.