.. | .. |
---|
52 | 52 | int getFirstFrontCameraId(); |
---|
53 | 53 | |
---|
54 | 54 | /** |
---|
| 55 | + * @return The first (lowest) ID of the external cameras or {@code NO_DEVICE} |
---|
| 56 | + * if not available. |
---|
| 57 | + */ |
---|
| 58 | + int getFirstExternalCameraId(); |
---|
| 59 | + |
---|
| 60 | + /** |
---|
55 | 61 | * Device characteristics for a single camera. |
---|
56 | 62 | */ |
---|
57 | 63 | public abstract class Characteristics { |
---|
.. | .. |
---|
68 | 74 | public abstract boolean isFacingFront(); |
---|
69 | 75 | |
---|
70 | 76 | /** |
---|
| 77 | + * @return Whether the camera faces the device's screen. |
---|
| 78 | + * */ |
---|
| 79 | + public abstract boolean isFacingExternal(); |
---|
| 80 | + |
---|
| 81 | + /** |
---|
71 | 82 | * @return The camera sensor orientation, or the counterclockwise angle |
---|
72 | 83 | * from its natural position that the device must be held at |
---|
73 | 84 | * for the sensor to be right side up (in degrees, always a |
---|