AVCaptureSession.InterruptionReason.videoDeviceNotAvailableInBackground
An interruption caused by the app being sent to the background while using a camera.
Declaration
case videoDeviceNotAvailableInBackgroundDiscussion
Camera usage is prohibited while in the background. If you attempt to start running a camera while in the background, the capture session sends an wasInterruptedNotification with this interruption reason. If you don’t explicitly call the stopRunning() method, your startRunning() request is preserved, and when your app comes back to foreground, you receive interruptionEndedNotification and your session starts running.
See Also
Constants
AVCaptureSession.InterruptionReason.audioDeviceInUseByAnotherClientAVCaptureSession.InterruptionReason.videoDeviceInUseByAnotherClientAVCaptureSession.InterruptionReason.videoDeviceNotAvailableWithMultipleForegroundAppsAVCaptureSession.InterruptionReason.videoDeviceNotAvailableDueToSystemPressureAVCaptureSession.InterruptionReason.sensitiveContentMitigationActivated