---
title: AVCaptureSession.InterruptionReason.videoDeviceNotAvailableInBackground
framework: avfoundation
role: symbol
role_heading: Case
path: avfoundation/avcapturesession/interruptionreason/videodevicenotavailableinbackground
---

# AVCaptureSession.InterruptionReason.videoDeviceNotAvailableInBackground

An interruption caused by the app being sent to the background while using a camera.

## Declaration

```swift
case videoDeviceNotAvailableInBackground
```

## Discussion

Discussion 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.audioDeviceInUseByAnotherClient](avfoundation/avcapturesession/interruptionreason/audiodeviceinusebyanotherclient.md)
- [AVCaptureSession.InterruptionReason.videoDeviceInUseByAnotherClient](avfoundation/avcapturesession/interruptionreason/videodeviceinusebyanotherclient.md)
- [AVCaptureSession.InterruptionReason.videoDeviceNotAvailableWithMultipleForegroundApps](avfoundation/avcapturesession/interruptionreason/videodevicenotavailablewithmultipleforegroundapps.md)
- [AVCaptureSession.InterruptionReason.videoDeviceNotAvailableDueToSystemPressure](avfoundation/avcapturesession/interruptionreason/videodevicenotavailableduetosystempressure.md)
- [AVCaptureSession.InterruptionReason.sensitiveContentMitigationActivated](avfoundation/avcapturesession/interruptionreason/sensitivecontentmitigationactivated.md)
