Android.Hardware.Camera.SetOneShotPreviewCallback Method

Syntax

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

See Also

Android.Media.MediaActionSound

Parameters

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

Remarks

Installs a callback to be invoked for the next preview frame in addition to displaying it on the screen. After one invocation, the callback is cleared. This method can be called any time, even when 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 3