Since: API Level 1
public static interface

Camera.PreviewCallback

android.hardware.Camera.PreviewCallback

Class Overview

Used to get a copy of each preview frame.

Summary

Public Methods
abstract void onPreviewFrame(byte[] data, Camera camera)
The callback that delivers the preview frames.

Public Methods

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

Since: API Level 1

The callback that delivers the preview frames.

Parameters
data The contents of the preview frame in the format defined by PixelFormat, 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.