Contents

kAudioSessionProperty_InterruptionType

Indicates the type of an end-interruption event.

Declaration

var kAudioSessionProperty_InterruptionType: Int { get }

Discussion

A read-only UInt32 value that is one of the constants in the AudioSessionInterruptionType enumeration.

Query this property within your interruption callback to find out whether or not it is appropriate to immediately resume the audio operation that was interrupted. Media playback apps (typically, those that have a “play” button) can use this property’s value as an indication for whether or not to resume playing after an interruption ends. Other app types (such as games) should normally resume audio playback whenever an interruption ends.

This property’s value is available within the scope of your app’s interruption listener callback function (see AudioSessionInterruptionListener), and valid only when your callback receives the kAudioSessionEndInterruption state identifier. At all other times, this property’s value is invalid.

See Also

Constants