public class CameraDevice
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static int |
CAMERA_TYPE_BACK
Back camera device type.
|
static int |
CAMERA_TYPE_FRONT
Front camera device type.
|
static int |
CAMERA_TYPE_UVC
UVC camera device type.
|
| Constructor and Description |
|---|
CameraDevice(java.lang.String deviceId,
java.lang.String deviceName,
int type,
boolean selectedDevice)
Camera device information.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getCameraType()
Get camera type.
|
java.lang.String |
getDeviceId()
Get the camera ID.
|
java.lang.String |
getDeviceName()
Get the camera name.
|
boolean |
isSelectedDevice()
Query if the the current camera is selected.
|
public static int CAMERA_TYPE_FRONT
public static int CAMERA_TYPE_BACK
public static int CAMERA_TYPE_UVC
public CameraDevice(java.lang.String deviceId,
java.lang.String deviceName,
int type,
boolean selectedDevice)
deviceId - The camera ID.deviceName - The name of the camera.type - The type of camera.selectedDevice - The current selected camera.public java.lang.String getDeviceId()
public java.lang.String getDeviceName()
public boolean isSelectedDevice()
public int getCameraType()