Added in API level 3
OnErrorListener
interface OnErrorListener
android.media.MediaRecorder.OnErrorListener |
Interface definition for a callback to be invoked when an error occurs while recording.
Summary
Public methods | |
---|---|
abstract Unit |
onError(mr: MediaRecorder!, what: Int, extra: Int) Called when an error occurs while recording. |
Public methods
onError
Added in API level 3
abstract fun onError(
mr: MediaRecorder!,
what: Int,
extra: Int
): Unit
Called when an error occurs while recording.
Parameters | |
---|---|
mr |
MediaRecorder!: the MediaRecorder that encountered the error |
what |
Int: the type of error that has occurred: |
extra |
Int: an extra code, specific to the error type |