Posted when an audio interruption occurs.
- iOS 6.0+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
userInfo dictionary of this notification contains the
AVAudioSessionInterruptionTypeKey. If the interruption type is
AVAudioSession.InterruptionType.began, the app’s audio session has been interrupted and is no longer active. If the interruption type is
AVAudioSession.InterruptionType.ended, this dictionary also contains the
See Responding to Interruptions in Media Playback Programming Guide for more information on using this notification.
This notification is posted on the main thread.
Responding to Audio Session Notifications