Protocol

AVAudioRecorderDelegate

The delegate of an audio recorder object.

Declaration

@protocol AVAudioRecorderDelegate

Overview

All of the methods in this protocol are optional. They allow a delegate to respond to audio interruptions and audio decoding errors, and to the completion of a recording.

Topics

Responding to the Completion of a Recording

- audioRecorderDidFinishRecording:successfully:

Called by the system when a recording is stopped or has finished due to reaching its time limit.

Responding to an Audio Encoding Error

- audioRecorderEncodeErrorDidOccur:error:

Called when an audio recorder encounters an encoding error during recording.

Handling Audio Interruptions

- audioRecorderBeginInterruption:

Called when the audio session is interrupted during a recording, such as by an incoming phone call.

Deprecated
- audioRecorderEndInterruption:withOptions:

Called after your audio session interruption ends, with options indicating the state of the audio session.

Deprecated
- audioRecorderEndInterruption:

Called after your audio session interruption ends.

Deprecated
- audioRecorderEndInterruption:withFlags:

Called after your audio session interruption ends, with flags indicating the state of the audio session.

Deprecated

Relationships

Inherits From

See Also

Configuring and Controlling Recording

- prepareToRecord

Creates an audio file and prepares the system for recording.

- record

Starts or resumes recording.

- recordAtTime:

Starts recording at a specific time.

- recordForDuration:

Records for a specified duration of time.

- recordAtTime:forDuration:

Starts recording at a specified time for a specified duration of time.

- pause

Pauses a recording.

- stop

Stops recording and closes the audio file.

delegate

The delegate object for the audio recorder.

- deleteRecording

Deletes a recorded audio file.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software