Enumeration

AVCaptureSessionInterruptionReason

Constants identifying the reason a capture session was interrupted, found in an AVCaptureSessionWasInterruptedNotification user info dictionary.

Declaration

typedef enum AVCaptureSessionInterruptionReason : NSInteger {
    ...
} AVCaptureSessionInterruptionReason;

Topics

Constants

AVCaptureSessionInterruptionReasonVideoDeviceNotAvailableInBackground

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

AVCaptureSessionInterruptionReasonAudioDeviceInUseByAnotherClient

An interruption caused by the audio hardware temporarily being made unavailable (for example, for a phone call or alarm).

AVCaptureSessionInterruptionReasonVideoDeviceInUseByAnotherClient

An interruption caused by the video device temporarily being made unavailable (for example, when used by another capture session).

AVCaptureSessionInterruptionReasonVideoDeviceNotAvailableWithMultipleForegroundApps

An interruption caused when your app is running in Slide Over, Split View, or Picture in Picture mode on iPad.

AVCaptureSessionInterruptionReasonVideoDeviceNotAvailableDueToSystemPressure

An interruption due to system pressure, such as thermal duress.

See Also

Managing Running State

- startRunning

Tells the receiver to start running.

- stopRunning

Tells the receiver to stop running.

running

Indicates whether the receiver is running.

interrupted

Indicates whether the receiver has been interrupted.

AVCaptureSessionRuntimeErrorNotification

Posted if an error occurred during a capture session.

AVCaptureSessionDidStartRunningNotification

Posted when a capture session starts.

AVCaptureSessionDidStopRunningNotification

Posted when a capture session stops.

AVCaptureSessionWasInterruptedNotification

Posted if a capture session is interrupted.

AVCaptureSessionInterruptionEndedNotification

Posted if an interruption to a capture session finishes.

AVCaptureSessionErrorKey

Key to retrieve the error object from a AVCaptureSessionRuntimeErrorNotification user info dictionary.

AVCaptureSessionInterruptionReasonKey

Key to retrieve information about a capture interruption from a AVCaptureSessionWasInterruptedNotification user info dictionary.

AVCaptureSessionInterruptionSystemPressureStateKey

The key for retrieving information about system pressure factors that caused a capture session interruption.