#[repr(transparent)]pub struct AVAudioSessionInterruptionReason(pub NSUInteger);AVAudioSessionTypes only.Expand description
Values for AVAudioSessionInterruptionReasonKey in AVAudioSessionInterruptionNotification’s userInfo dictionary.
The audio session was interrupted because another session was activated.
The audio session was interrupted due to the app being suspended by the operating sytem. Deprecated. Interruption notifications with reason ‘wasSuspended’ not present from iOS 16 onwards.
The audio session was interrupted due to the built-in mic being muted e.g. due to an iPad’s Smart Folio being closed.
The audio session was interrupted due to route getting disconnected.
The audio session was interrupted due to device being doffed or locked.
See also Apple’s documentation
Tuple Fields§
§0: NSUIntegerImplementations§
Source§impl AVAudioSessionInterruptionReason
impl AVAudioSessionInterruptionReason
pub const Default: Self
pub const AppWasSuspended: Self
wasSuspended reason no longer present
pub const BuiltInMicMuted: Self
Sourcepub const RouteDisconnected: Self
pub const RouteDisconnected: Self
The audio session was interrupted because route was disconnected.
Trait Implementations§
Source§impl Clone for AVAudioSessionInterruptionReason
impl Clone for AVAudioSessionInterruptionReason
Source§fn clone(&self) -> AVAudioSessionInterruptionReason
fn clone(&self) -> AVAudioSessionInterruptionReason
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Ord for AVAudioSessionInterruptionReason
impl Ord for AVAudioSessionInterruptionReason
Source§fn cmp(&self, other: &AVAudioSessionInterruptionReason) -> Ordering
fn cmp(&self, other: &AVAudioSessionInterruptionReason) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for AVAudioSessionInterruptionReason
impl PartialEq for AVAudioSessionInterruptionReason
Source§fn eq(&self, other: &AVAudioSessionInterruptionReason) -> bool
fn eq(&self, other: &AVAudioSessionInterruptionReason) -> bool
self and other values to be equal, and is used by ==.