#[repr(transparent)]pub struct AVAudioSessionInterruptionReason(pub NSUInteger);Available on crate feature
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
👎Deprecated: 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
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
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 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for AVAudioSessionInterruptionReason
impl PartialEq for AVAudioSessionInterruptionReason
Source§fn eq(&self, other: &AVAudioSessionInterruptionReason) -> bool
fn eq(&self, other: &AVAudioSessionInterruptionReason) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for AVAudioSessionInterruptionReason
impl PartialOrd for AVAudioSessionInterruptionReason
Source§impl RefEncode for AVAudioSessionInterruptionReason
impl RefEncode for AVAudioSessionInterruptionReason
Source§const ENCODING_REF: Encoding
const ENCODING_REF: Encoding
The Objective-C type-encoding for a reference of this type. Read more
impl Copy for AVAudioSessionInterruptionReason
impl Eq for AVAudioSessionInterruptionReason
impl StructuralPartialEq for AVAudioSessionInterruptionReason
Auto Trait Implementations§
impl Freeze for AVAudioSessionInterruptionReason
impl RefUnwindSafe for AVAudioSessionInterruptionReason
impl Send for AVAudioSessionInterruptionReason
impl Sync for AVAudioSessionInterruptionReason
impl Unpin for AVAudioSessionInterruptionReason
impl UnwindSafe for AVAudioSessionInterruptionReason
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> EncodeArgument for Twhere
T: Encode,
impl<T> EncodeArgument for Twhere
T: Encode,
Source§const ENCODING_ARGUMENT: Encoding = T::ENCODING
const ENCODING_ARGUMENT: Encoding = T::ENCODING
The Objective-C type-encoding for this type.
Source§impl<T> EncodeReturn for Twhere
T: Encode,
impl<T> EncodeReturn for Twhere
T: Encode,
Source§const ENCODING_RETURN: Encoding = T::ENCODING
const ENCODING_RETURN: Encoding = T::ENCODING
The Objective-C type-encoding for this type.