MediaRecorder.IOnErrorListener.OnError Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
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.
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.