Since: API Level 1
public static interface

Camera.PreviewCallback

android.hardware.Camera.PreviewCallback

Class Overview

Callback interface used to deliver copies of preview frames as they are displayed.

Summary

Public Methods
abstract void onPreviewFrame(byte[] data, Camera camera)
Called as preview frames are displayed.

Public Methods

public abstract void onPreviewFrame (byte[] data, Camera camera)

Since: API Level 1

Called as preview frames are displayed. This callback is invoked on the event thread open(int) was called from.

Parameters
data the contents of the preview frame in the format defined by ImageFormat, which can be queried with getPreviewFormat(). If setPreviewFormat(int) is never called, the default will be the YCbCr_420_SP (NV21) format.
camera the Camera service object.