Android.Media.MediaRecorder.SetPreviewDisplay Method
Sets a Surface to show a preview of recorded media (video).

Syntax

[Android.Runtime.Register("setPreviewDisplay", "(Landroid/view/Surface;)V", "GetSetPreviewDisplay_Landroid_view_Surface_Handler")]
public virtual void SetPreviewDisplay (Android.Views.Surface sv)

See Also

Android.Hardware.Camera.SetPreviewDisplay(Android.Views.ISurfaceHolder)

Parameters

sv
the Surface to use for the preview

Remarks

Sets a Surface to show a preview of recorded media (video). Calls this before prepare() to make sure that the desirable preview display is set. If MediaRecorder.SetCamera(Android.Hardware.Camera) is used and the surface has been already set to the camera, application do not need to call this. If this is called with non-null surface, the preview surface of the camera will be replaced by the new surface. If this method is called with null surface or not called at all, media recorder will not change the preview surface of the camera.

[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