MediaRecorder.IOnInfoListener.OnInfo(MediaRecorder, MediaRecorderInfo, Int32) Method

Definition

Called when an error occurs while recording.

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

Parameters

mr
MediaRecorder

the MediaRecorder that encountered the error

what
MediaRecorderInfo

the type of error that has occurred:

extra
Int32

an extra code, specific to the error type

Attributes

Remarks

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