#[repr(transparent)]pub struct AVCaptureSessionInterruptionReason(pub NSInteger);AVCaptureSession only.Expand description
Constants indicating interruption reason. One of these is returned with the AVCaptureSessionWasInterruptedNotification (see AVCaptureSessionInterruptionReasonKey).
See also Apple’s documentation
Tuple Fields§
§0: NSIntegerImplementations§
Source§impl AVCaptureSessionInterruptionReason
impl AVCaptureSessionInterruptionReason
Sourcepub const VideoDeviceNotAvailableInBackground: Self
pub const VideoDeviceNotAvailableInBackground: Self
An interruption caused by the app being sent to the background while using a camera. Camera usage is prohibited while in the background. Beginning in iOS 9.0, AVCaptureSession no longer produces an AVCaptureSessionRuntimeErrorNotification if you attempt to start running a camera while in the background. Instead, it sends an AVCaptureSessionWasInterruptedNotification with AVCaptureSessionInterruptionReasonVideoDeviceNotAvailableInBackground. Provided you don’t explicitly call AVCaptureSession/stopRunning, your AVCaptureSession/startRunning request is preserved, and when your app comes back to foreground, you receive AVCaptureSessionInterruptionEndedNotification and your session starts running.
Sourcepub const AudioDeviceInUseByAnotherClient: Self
pub const AudioDeviceInUseByAnotherClient: Self
An interruption caused by the audio hardware temporarily being made unavailable, for instance, for a phone call, or alarm.
Sourcepub const VideoDeviceInUseByAnotherClient: Self
pub const VideoDeviceInUseByAnotherClient: Self
An interruption caused by the video device temporarily being made unavailable, for instance, when stolen away by another AVCaptureSession.
Sourcepub const VideoDeviceNotAvailableWithMultipleForegroundApps: Self
pub const VideoDeviceNotAvailableWithMultipleForegroundApps: Self
An interruption caused when the app is running in a multi-app layout, causing resource contention and degraded recording quality of service. Given your present AVCaptureSession configuration, the session may only be run if your app occupies the full screen.
Sourcepub const VideoDeviceNotAvailableDueToSystemPressure: Self
pub const VideoDeviceNotAvailableDueToSystemPressure: Self
An interruption caused by the video device temporarily being made unavailable due to system pressure, such as thermal duress. See AVCaptureDevice/systemPressureState for more information.
Sourcepub const SensitiveContentMitigationActivated: Self
pub const SensitiveContentMitigationActivated: Self
An interruption caused by a SCVideoStreamAnalyzer when it detects sensitive content on an associated AVCaptureDeviceInput. To resume your capture session, call your analyzer’s SCVideoStreamAnalyzer/continueStream method.
Trait Implementations§
Source§impl Clone for AVCaptureSessionInterruptionReason
impl Clone for AVCaptureSessionInterruptionReason
Source§fn clone(&self) -> AVCaptureSessionInterruptionReason
fn clone(&self) -> AVCaptureSessionInterruptionReason
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Ord for AVCaptureSessionInterruptionReason
impl Ord for AVCaptureSessionInterruptionReason
Source§fn cmp(&self, other: &AVCaptureSessionInterruptionReason) -> Ordering
fn cmp(&self, other: &AVCaptureSessionInterruptionReason) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for AVCaptureSessionInterruptionReason
impl PartialEq for AVCaptureSessionInterruptionReason
Source§fn eq(&self, other: &AVCaptureSessionInterruptionReason) -> bool
fn eq(&self, other: &AVCaptureSessionInterruptionReason) -> bool
self and other values to be equal, and is used by ==.