Meeting SDK for Android API Reference
Loading...
Searching...
No Matches
CameraDevice.java
Go to the documentation of this file.
1package us.zoom.sdk;
5public class CameraDevice {
6 private String mDeviceId;
7 private String mDeviceName;
8 private boolean mSelectedDevice;
9 private int mCameraType = -1;
10 private double mHorizontalAngle = 0;
11 private double mVerticalAngle = 0;
12 private double mApertureValue = 0;
13 private double mFocalLength = 0;
14 private double mMaxZoomFactor = 0;
15
19 public static int CAMERA_TYPE_FRONT = 0;
20
24 public static int CAMERA_TYPE_BACK = 1;
25
29 public static int CAMERA_TYPE_UVC = 2;
30
38 public CameraDevice(String deviceId, String deviceName, int type, boolean selectedDevice, double horizontalAngle, double verticalAngle, double apertureValue, double focalLength, double maxZoomFactor) {
39 this.mDeviceId = deviceId;
40 this.mDeviceName = deviceName;
41 this.mSelectedDevice = selectedDevice;
42 this.mCameraType = type;
43 this.mHorizontalAngle = horizontalAngle;
44 this.mVerticalAngle = verticalAngle;
45 this.mApertureValue = apertureValue;
46 this.mFocalLength = focalLength;
47 this.mMaxZoomFactor = maxZoomFactor;
48 }
49
54 public String getDeviceId() {
55 return mDeviceId;
56 }
57
62 public String getDeviceName() {
63 return mDeviceName;
64 }
65
70 public boolean isSelectedDevice() {
71 return mSelectedDevice;
72 }
73
78 public int getCameraType() {
79 return mCameraType;
80 }
81
86 public double getFocalLength() {
87 return mFocalLength;
88 }
89
94 public double getApertureValue() {
95 return mApertureValue;
96 }
97
102 public double getHorizontalAngle() {
103 return mHorizontalAngle;
104 }
105
110 public double getVerticalAngle() {
111 return mVerticalAngle;
112 }
113
118 public double getMaxZoomFactor() {
119 return mMaxZoomFactor;
120 }
121}
Camera device class.
double getHorizontalAngle()
Get the horizontal angle of the current camera.
static int CAMERA_TYPE_UVC
UVC camera device type.
int getCameraType()
Get camera type.
double getMaxZoomFactor()
Get the max zoom factor of the current camera.
double getApertureValue()
Get the aperture value of the current camera.
CameraDevice(String deviceId, String deviceName, int type, boolean selectedDevice, double horizontalAngle, double verticalAngle, double apertureValue, double focalLength, double maxZoomFactor)
double getFocalLength()
Get the focal length of the current camera.
double getVerticalAngle()
Get the vertical angle of the current camera.
static int CAMERA_TYPE_FRONT
Front camera device type.
static int CAMERA_TYPE_BACK
Back camera device type.