Contents

shouldResume

An option that indicates the interruption by another audio session has ended and the app can resume its audio session.

Declaration

static var shouldResume: AVAudioSession.InterruptionOptions { get }

Discussion

If the interruption type is AVAudioSession.InterruptionType.ended, check for this value in the AVAudioSessionInterruptionOptionKey key in the userInfo dictionary of the interruptionNotification notification. It serves as a hint that it’s appropriate for your app to resume audio playback without waiting for user input.

Apps that don’t require user input to begin audio playback (such as games) can ignore this flag and resume playback when an interruption ends.