public override void EndInterruption(AVAudioRecorder recorder) { if (cbEndInterruption != null) { cbEndInterruption(recorder, EventArgs.Empty); } }
public override void EncoderError(AVAudioRecorder recorder, NSError error) { if (cbEncoderError != null) { cbEncoderError(recorder, new AVErrorEventArgs(error)); } }
public override void FinishedRecording(AVAudioRecorder recorder, bool flag) { if (cbFinishedRecording != null) { cbFinishedRecording(recorder, new AVStatusEventArgs(flag)); } }
public static AVAudioRecorder ToUrl(NSUrl url, NSDictionary settings, out NSError error) { unsafe { IntPtr errhandle; IntPtr ptrtohandle = (IntPtr) (&errhandle); var ap = new AVAudioRecorder (url, settings, ptrtohandle); if (ap.Handle == IntPtr.Zero){ error = (NSError) Runtime.GetNSObject (errhandle); return null; } else error = null; return ap; } }
public static AVAudioRecorder ToUrl(NSUrl url, NSDictionary settings, out NSError error) { unsafe { IntPtr errhandle; IntPtr ptrtohandle = (IntPtr)(&errhandle); var ap = new AVAudioRecorder(url, settings, ptrtohandle); if (ap.Handle == IntPtr.Zero) { error = (NSError)Runtime.GetNSObject(errhandle); return(null); } else { error = null; } return(ap); } }
public override void FinishedRecording(AVAudioRecorder recorder, bool flag) { if (cbFinishedRecording != null) cbFinishedRecording (recorder, new AVStatusEventArgs (flag)); }
public override void EndInterruption(AVAudioRecorder recorder) { if (cbEndInterruption != null) cbEndInterruption (recorder, EventArgs.Empty); }
public override void EncoderError(AVAudioRecorder recorder, NSError error) { if (cbEncoderError != null) cbEncoderError (recorder, new AVErrorEventArgs (error)); }