pub unsafe static AVAudioSessionSpatialPlaybackCapabilitiesChangedNotification: &'static NSNotificationNameAvailable on crate feature
AVAudioSession only.Expand description
Notification sent to registered listeners when spatial playback capabilities are changed due to a change in user preference.
Check the notification’s userInfo dictionary for AVAudioSessionSpatialAudioEnabledKey to check if spatial audio is enabled.
Observers of this notification should also observe AVAudioSessionRouteChangeNotification since a route change may also result in a change in the ability for the system to play spatial audio. Use AVAudioSessionPortDescription’s isSpatialAudioEnabled property to check if the current route supports spatialized playback.
See also Apple’s documentation