Android.Hardware.Camera.SetPreviewCallback Method

Syntax

[Android.Runtime.Register("setPreviewCallback", "(Landroid/hardware/Camera$PreviewCallback;)V", "")]
public void SetPreviewCallback (Camera.IPreviewCallback cb)

See Also

Android.Media.MediaActionSound

Parameters

cb
a callback object that receives a copy of each preview frame, or null to stop receiving callbacks.

Remarks

Installs a callback to be invoked for every preview frame in addition to displaying them on the screen. The callback will be repeatedly called for as long as preview is active. This method can be called at any time, even while preview is live. Any other preview callbacks are overridden.

If you are using the preview data to create video or still images, strongly consider using Android.Media.MediaActionSound to properly indicate image capture or recording start/stop to the user.

[Android Documentation]

Requirements

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