A protocol that defines responses to changes in state for the audio session.
- iOS 3.0–6.0Deprecated
- UIKit for Mac 13.0–13.0Deprecated
The delegate of an
AVAudio object must adopt the
AVAudio protocol. The methods in this protocol are optional. They allow a delegate to respond to the following sorts of changes in state:
Changes to the availability of audio input
Audio session interruption, or end of audio session interruption
AVAudio delegate can respond to interruptions at the audio session level. You can use this interface along with any iOS audio technology. For example, your
AVAudio delegate can handle interruptions for OpenAL and audio unit playback.
When using the AVFoundation framework for recording or playback, you can also respond to interruptions at the individual recorder or player level. To do this, create audio recorder or audio player delegates using the protocols described in