AVFoundation.AVAudioRecorder Class
Audio recording class.

See Also: AVAudioRecorder Members

Syntax

[Foundation.Register("AVAudioRecorder", true)]
public class AVAudioRecorder : Foundation.NSObject

Remarks

To create instances of this class use the factory method AVRecorder.ToUrl(Foundation.NSUrl, AVFoundation.AVAudioRecorderSettings, Foundation.NSError)

C# Example

var settings = new AVAudioRecorderSettings () {
	AudioFormat = AudioFormatType.LinearPCM,
	AudioQuality = AVAudioQuality.High,
	SampleRate = 44100f,
	NumberChannels = 1
};
var recorder = AVAudioRecorder.ToUrl (url, settings, out error);
if (recorder == null){
    Console.WriteLine (error);
    return;
}
recorder.PrepareToRecord ();            
recorder.Record ();

Related content

Requirements

Namespace: AVFoundation
Assembly: Xamarin.iOS (in Xamarin.iOS.dll)
Assembly Versions: 0.0.0.0