public interface CameraEventListener
CaptureCameraPreview
.Modifier and Type | Method and Description |
---|---|
void |
cameraPreviewFrame(byte[] frame)
Called when the camera preview has a new frame ready.
|
void |
cameraPreviewStarted(int width,
int height,
int rate,
int cameraIndex,
boolean cameraIsFrontFacing)
Called when the camera preview is started.
|
void |
cameraPreviewStopped()
Called when the capture preview is stopped.
|
void cameraPreviewStarted(int width, int height, int rate, int cameraIndex, boolean cameraIsFrontFacing)
width
- The width of the video image in pixels.height
- The height of the video image in pixels.rate
- The capture rate in frames per second.cameraIndex
- Zero-based index of the camera in use. If only one camera is present, will be 0.cameraIsFrontFacing
- false if camera is rear-facing (the default) or true if camera is facing toward the user.void cameraPreviewFrame(byte[] frame)
frame
- A byte array from the camera, in the camera's capture format.void cameraPreviewStopped()