takePicture
Requests the camera to take a picture.
Events emitted:
FrameProducer.Event.FrameProducerWarning.CameraNotInitialized If the camera is not ready to process requests to take pictures.
FrameProducer.Event.FrameProducerWarning.PreviewNotInitialized If the camera preview has not been initialized.
FrameProducer.Event.TakePhotoError.PictureFailed If the camera couldn't take the photo or the resulting image is unusable.
FrameProducer.Event.TakePhotoError.CameraClosed If the camera was closed while taking the photo.
FrameProducer.Event.TakePhotoError.InvalidCamera If the camera can't process the request to take the picture.
FrameProducer.Event.TakePhotoError.Execution If there was an unknown error while taking the photo.