AVCaptureSessionWasInterruptedNotification

Static AVCaptureSessionWasInterruptedNotification 

Source
pub unsafe static AVCaptureSessionWasInterruptedNotification: &'static NSNotificationName
Available on crate feature AVCaptureSession only.
Expand description

Posted when an instance of AVCaptureSession becomes interrupted.

Clients may observe the AVCaptureSessionWasInterruptedNotification to know when an instance of AVCaptureSession has been interrupted, for example, by an incoming phone call, or alarm, or another application taking control of needed hardware resources. When appropriate, the AVCaptureSession instance will stop running automatically in response to an interruption.

Beginning in iOS 9.0, the AVCaptureSessionWasInterruptedNotification userInfo dictionary contains an AVCaptureSessionInterruptionReasonKey indicating the reason for the interruption.

See also Apple’s documentation