Android.Media.MediaRecorder.Stop Method
Stops recording.

Syntax

[Android.Runtime.Register("stop", "()V", "GetStopHandler")]
public virtual void Stop ()

Exceptions

TypeReason
Java.Lang.IllegalStateExceptionif it is called before start()

Remarks

Stops recording. Call this after start(). Once recording is stopped, you will have to configure it again as if it has just been constructed. Note that a RuntimeException is intentionally thrown to the application, if no valid audio/video data has been received when stop() is called. This happens if stop() is called immediately after start(). The failure lets the application take action accordingly to clean up the output file (delete the output file, for instance), since the output file is not properly constructed when this happens.

[Android Documentation]

Requirements

Namespace: Android.Media
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1