public interface CameraInfo
SystemCapability.Multimedia#CAMERA| 限定符和类型 | 接口 | 说明 |
|---|---|---|
static interface |
CameraInfo.DeviceLinkType |
Describes the link type of a physical camera.
|
static interface |
CameraInfo.FacingType |
Describes the facing type of the camera.
|
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
boolean |
equals(Object obj) |
Checks whether this
CameraInfo object equals a specified object. |
int |
getDeviceLinkType(String physicalId) |
Gets a physical camera link type.
|
int |
getFacingType() |
Gets the facing type of the camera.
|
String |
getLogicalId() |
Gets the logical camera ID.
|
List<String> |
getPhysicalIdList() |
Gets IDs of physical cameras belong to the logical camera.
|
int |
hashCode() |
Obtains the hash code of this
CameraInfo object. |
String |
toString() |
Returns a string representation of this
CameraInfo object. |
String getLogicalId()
int getFacingType()
All physical cameras belong to the logical camera has the same facing type.
CameraInfo.FacingTypeList<String> getPhysicalIdList()
int getDeviceLinkType(String physicalId)
physicalId - Indicates the ID of a physical camera.CameraInfo.DeviceLinkTypeboolean equals(Object obj)
CameraInfo object equals a specified object.
The two objects are equal only when all their elements are the same, including the
FacingType and LogicalId.
equals 在类中 Objectobj - Indicates the specified object to compare.true if the two objects are equal; returns false otherwise.Object.hashCode(),
HashMapint hashCode()
CameraInfo object.hashCode 在类中 ObjectCameraInfo object.Object.equals(java.lang.Object),
System.identityHashCode(java.lang.Object)String toString()
CameraInfo object.
The string format is as follows: "CameraInfo{cameraId='%s', facingType=%d, physicalIds=[%s, ...%s],
linkTypes=[%d,...%d]}".