public final class OpenCameraInterface
extends java.lang.Object
Camera API that helps open them and return their metadata.| 限定符和类型 | 字段和说明 |
|---|---|
static int |
NO_REQUESTED_CAMERA
For
open(int), means no preference for which camera to open. |
| 限定符和类型 | 方法和说明 |
|---|---|
static OpenCamera |
open(int cameraId)
Opens the requested camera with
Camera#open(int), if one exists. |
public static OpenCamera open(int cameraId)
Camera#open(int), if one exists.cameraId - camera ID of the camera to use. A negative value
or NO_REQUESTED_CAMERA means "no preference", in which case a rear-facing
camera is returned if possible or else any cameraOpenCamera that was opened