MediaRecorder.IOnErrorListener.OnError Method

Definition

Called when an error occurs while recording.

[Android.Runtime.Register("onError", "(Landroid/media/MediaRecorder;II)V", "GetOnError_Landroid_media_MediaRecorder_IIHandler:Android.Media.MediaRecorder/IOnErrorListenerInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public void OnError (Android.Media.MediaRecorder? mr, Android.Media.MediaRecorderError what, int extra);
[<Android.Runtime.Register("onError", "(Landroid/media/MediaRecorder;II)V", "GetOnError_Landroid_media_MediaRecorder_IIHandler:Android.Media.MediaRecorder/IOnErrorListenerInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member OnError : Android.Media.MediaRecorder * Android.Media.MediaRecorderError * int -> unit

Parameters

mr
MediaRecorder

the MediaRecorder that encountered the error

what
MediaRecorderError

the type of error that has occurred: <ul> <li>#MEDIA_RECORDER_ERROR_UNKNOWN<li>#MEDIA_ERROR_SERVER_DIED</ul>

extra
Int32

an extra code, specific to the error type

Attributes

Remarks

Called when an error occurs while recording.

Java documentation for android.media.MediaRecorder.OnErrorListener.onError(android.media.MediaRecorder, int, int).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to