Global Variable


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


let AVCaptureSessionInterruptionSystemPressureStateKey: String


If a capture session is interrupted due to system pressure, the userInfo dictionary for the AVCaptureSessionWasInterrupted notification contains this key, whose corresponding value is an AVCaptureDevice.SystemPressureState object providing details about the system pressure level and contributing factors that caused the interruption.

See Also

Managing Running State

func startRunning()

Tells the receiver to start running.

func stopRunning()

Tells the receiver to stop running.

var isRunning: Bool

Indicates whether the receiver is running.

var isInterrupted: Bool

Indicates whether the receiver has been interrupted.

static let AVCaptureSessionRuntimeError: NSNotification.Name

Posted if an error occurred during a capture session.

static let AVCaptureSessionWasInterrupted: NSNotification.Name

Posted if a capture session is interrupted.

static let AVCaptureSessionInterruptionEnded: NSNotification.Name

Posted if an interruption to a capture session finishes.

let AVCaptureSessionErrorKey: String

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

let AVCaptureSessionInterruptionReasonKey: String

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

enum AVCaptureSession.InterruptionReason

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