Share via


Camera.SetPreviewCallback(Camera+IPreviewCallback) Method

Definition

Caution

deprecated

Installs a callback to be invoked for every preview frame in addition to displaying them on the screen.

[Android.Runtime.Register("setPreviewCallback", "(Landroid/hardware/Camera$PreviewCallback;)V", "")]
[System.Obsolete("deprecated")]
public void SetPreviewCallback (Android.Hardware.Camera.IPreviewCallback? cb);
[<Android.Runtime.Register("setPreviewCallback", "(Landroid/hardware/Camera$PreviewCallback;)V", "")>]
[<System.Obsolete("deprecated")>]
member this.SetPreviewCallback : Android.Hardware.Camera.IPreviewCallback -> unit

Parameters

cb
Camera.IPreviewCallback

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

Attributes

Remarks

Java documentation for android.hardware.Camera.setPreviewCallback(android.hardware.PreviewCallback).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

See also