public class EZCam
extends java.lang.Object
| Constructor and Description |
|---|
EZCam(android.content.Context context) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
android.util.SparseArray<java.lang.String> |
getCamerasList() |
void |
open(int templateType,
android.view.TextureView textureView) |
java.io.File |
saveImage(android.media.ImageReader imageReader,
java.lang.String filename) |
void |
selectCamera(int id) |
void |
setCameraCallback(EZCamCallback cameraCallback) |
void |
setCaptureSetting(android.hardware.camera2.CaptureRequest.Key<java.lang.Integer> key,
java.lang.Integer value) |
void |
startPreview() |
void |
stopPreview() |
void |
takePicture() |
public void setCameraCallback(EZCamCallback cameraCallback)
public android.util.SparseArray<java.lang.String> getCamerasList()
public void selectCamera(int id)
public void open(int templateType,
android.view.TextureView textureView)
public void setCaptureSetting(android.hardware.camera2.CaptureRequest.Key<java.lang.Integer> key,
java.lang.Integer value)
public void startPreview()
public void stopPreview()
public void close()
public void takePicture()
public java.io.File saveImage(android.media.ImageReader imageReader,
java.lang.String filename)
throws java.io.IOException
java.io.IOException