Type Reason Android.Hardware.Camera2.CameraAccessException if the camera device is no longer connected or has encountered a fatal error Java.Lang.IllegalStateException if this session is no longer active, either because the session was explicitly closed, a new session has been created or the camera device has been closed.
Cancel any ongoing repeating capture set by either CameraCaptureSession.SetRepeatingRequest(CaptureRequest, .CaptureCallback, .CaptureCallback) or CameraCaptureSession.setRepeatingBurst(java.util.List<android.hardware.camera2.CaptureRequest>, android.hardware.camera2.CameraCaptureSession.CaptureCallback, android.os.Handler). Has no effect on requests submitted through CameraCaptureSession.Capture(CaptureRequest, .CaptureCallback, .CaptureCallback) or CameraCaptureSession.captureBurst(java.util.List<android.hardware.camera2.CaptureRequest>, android.hardware.camera2.CameraCaptureSession.CaptureCallback, android.os.Handler).
Any currently in-flight captures will still complete, as will any burst that is mid-capture. To ensure that the device has finished processing all of its capture requests and is in ready state, wait for the NoType:android/hardware/camera2/CameraCaptureSession$StateCallback;Href=../../../../reference/android/hardware/camera2/CameraCaptureSession.StateCallback.html#onReady(android.hardware.camera2.CameraCaptureSession) callback after calling this method.